# # spec file for package capi-utils # Name: fax-utils Version: 2011.8.29 Release: 1.2 Summary: FAX Utils for HylaFAX License: GPL-2.0+ and LGPL-2.1+ Source1: tiff2png.tar.xz Source2: fax2png.tar.xz Source3: scan-faxno.tar.xz Provides: /usr/bin/tiff2png Provides: /usr/bin/fax2png Provides: /usr/bin/scan-faxno BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: i486 %description These utilities are needed for HylaFAX aka EisFAX. %prep # get source from subversion repo pushd %__repodir for i in tiff2png fax2png scan-faxno do rm -rf $i rm -f %_sourcedir/$i.tar.xz svn up $i tar cfJ %_sourcedir/$i.tar.xz $i done popd %setup -cTq -n fax-utils -a 1 -a 2 -a 3 %build #export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" for i in tiff2png fax2png scan-faxno do pushd $i make popd done %install for i in tiff2png fax2png scan-faxno do pushd $i make DESTDIR=$RPM_BUILD_ROOT install popd done # strip files/binarys #for filename in $(find $RPM_BUILD_ROOT/usr/{sbin,bin}/* -type f) #do # strip -R .note -R .comment "$filename" #done %files %defattr(-,root,root) /usr/bin %changelog * Sun Mar 09 2014 holgerbruenjes@gmx.net - first Version