# # spec file for package fax-utils # Name: fax-utils Version: 2018.07.01 Release: 2.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 %description These utilities are needed for HylaFAX aka EisFAX. %prep # get source from subversion repo %ifarch %ix86 pushd %__repodir # for i in tiff2png fax2png scan-faxno for i in scan-faxno do rm -rf $i rm -f %_sourcedir/$i.tar.xz svn up $i tar cfJ %_sourcedir/$i.tar.xz $i done popd %endif #%setup -cTq -n fax-utils -a 1 -a 2 -a 3 %setup -cTq -n fax-utils -a 3 %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="${CFLAGS}" #for i in tiff2png fax2png scan-faxno for i in scan-faxno do pushd $i make popd done %install #for i in tiff2png fax2png scan-faxno for i in 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 Jul 01 2018 holgerbruenjes@gmx.net - build with GlibC-2.22 * Sun Mar 09 2014 holgerbruenjes@gmx.net - first Version