# # spec file for package pwtest # source from Daniel # %define binfiles pwtest Name: pwtest Version: 2018.01.09 Release: 2.22 Summary: PwTest License: ? GPL-2.0+ and LGPL-2.1+ Url: http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/x86_64/final-system/multiarch_wrapper.html Source: pwtest-%{version}.tar.xz Provides: /usr/bin/pwtest BuildRequires: cracklib-dev BuildRoot: %{_tmppath}/%{name}-%{version}-build %description PwTest is used to check pwassword on the commandline %prep # get source from subversion repo #pushd %__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 %setup -n %{name} %build export CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" sed -i '/CFLAGS/d' Makefile make %install mkdir -p $RPM_BUILD_ROOT%{_bindir} install -m 0755 pwtest $RPM_BUILD_ROOT%{_bindir} # strip files/binarys for filename in $(find $RPM_BUILD_ROOT%{_bindir}* -type f) do %{__strip} -R .note -R .comment "$filename" done %files %defattr(-,root,root) %{_bindir} %changelog * Thu Jan 09 2018 holgerbruenjes@gmx.net - first Version