# # spec file for package eischk %define binfiles eischk %define binver 15043 Name: eischk Version: 2018.04.28 Release: 2.31 Summary: eisfair eischk License: GPL-2.0+ and LGPL-2.1+ Source: eischk.tar.xz Provides: /usr/bin/eischk BuildRoot: %{_tmppath}/%{name}-%{version}-build %description eisfair eischk %prep %ifarch %ix86 # get source from subversion repo pushd %__eisler_repodir for i in %{binfiles} do rm -rf $i/mkfli4l/%{binver} rm -f %_sourcedir/$i.tar.xz svn up $i/mkfli4l/%{binver} tar cfJ %_sourcedir/$i.tar.xz $i/mkfli4l/%{binver} done popd %endif %setup -q -n %{name} %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export DATE="$(/usr/bin/date +%Y-%m-%d)" for i in %{binfiles} do pushd mkfli4l/%{binver}/unix make eischk popd done %install folder=$RPM_BUILD_ROOT/usr/bin mkdir -p $folder for i in %{binfiles} do pushd mkfli4l/%{binver}/unix cp eischk $folder popd done %files %defattr(-,root,root) %{_bindir}/eischk %changelog * Sat Apr 28 2018 holgerbruenjes@gmx.net - eischk first Version