%define snapshot r36 Name: fspc Version: 1.0.1 Release: %mkrel 0.%{snapshot}.1 Summary: Utility to configure sentelic touchpad devices License: BSD Group: System/Configuration/Hardware URL: http://fsp-lnxdrv.sourceforge.net # checkout from https://fsp-lnxdrv.svn.sourceforge.net/svnroot/fsp-lnxdrv Source: fspc-1.0.1-r36.tar.lzma Patch: fspc-format-security.patch Patch1: fspc-1.0.1-r36-DSO.patch BuildRequires: cmake BuildRequires: wxgtku-devel %description fspc is an utility to configure features of sentelic touchpad devices. %prep %setup -q -n %{name}-%{version}-%{snapshot} %patch -p1 -b .format-security %patch1 -p1 -b .dso~ %build pushd src/libfsp %make popd pushd src/fspc cmake . %make popd %install %__rm -rf %{buildroot} %__mkdir_p %{buildroot}{%{_bindir},%{_datadir}/fspc} pushd src/fspc %__cp fspcui{,_zh_CN,_zh_TW}.xrc %{buildroot}%{_datadir}/fspc %__cp -R pic %{buildroot}%{_datadir}/fspc %__cp fspc %{buildroot}%{_bindir} popd %files %defattr(0755,root,root,0755) %{_bindir}/fspc %defattr(0644,root,root,0755) %{_datadir}/fspc %changelog * Thu Jan 19 2012 Andrey Bondrov <abondrov@mandriva.org> 1.0.1-0.r36.1mdv2012.0 + Revision: 762369 - Add patch 1 to fix linkage - Rebuild against utf8 wxGTK2.8 * Thu Aug 06 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.0.1-0.r36mdv2011.0 + Revision: 410921 - import fspc