# # spec file for package eis tools %define binfiles xmlsplit netcalc netcalc6 #sortidx Name: eis-tools Version: 2018.04.28 Release: 2.31 Summary: eisfair tool progs License: GPL-2.0+ and LGPL-2.1+ Source1: xmlsplit.tar.xz Source2: netcalc.tar.xz Source3: netcalc6.tar.xz #Source4: sortidx.tar.xz BuildRequires: libowfat-dev BuildRoot: %{_tmppath}/%{name}-%{version}-build %description eisfair tools %prep %ifarch %ix86 # get source from subversion repo pushd %__eisler_repodir for i in %{binfiles} 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 %{name} -a 1 -a 2 -a 3 #-a 4 %build export CFLAGS="$RPM_OPT_FLAGS" for i in %{binfiles} do pushd $i make popd done %install mkdir -p $RPM_BUILD_ROOT%{_bindir} for i in %{binfiles} do pushd $i if [ $i = sortidx ] then mkdir -p $RPM_BUILD_ROOT/var/install/bin cp $i $RPM_BUILD_ROOT/var/install/bin else cp $i $RPM_BUILD_ROOT%{_bindir} fi popd done %files %defattr(-,root,root) %{_bindir}/ #/var/install/bin %changelog * Sat Apr 28 2018 holgerbruenjes@gmx.net - eis-tools first Version