# # spec file for package pwtest # source from Daniel # %define binfiles pwtest Name: pwtest Version: 2025.04.06 Release: 2.41 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.tar.xz Provides: /usr/bin/pwtest BuildRequires: cracklib-dev %description PwTest is used to check pwassword on the commandline %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 -n %{name} %build export CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" sed -i '/CFLAGS/d' Makefile %make_build %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 * Sun Apr 06 2025 holgerbruenjes@gmx.net - rebuild with cracklib-2.9.11 and glibc-2.41 * Fri Apr 07 2023 holgerbruenjes@gmx.net - rebuild with cracklib-2.9.8 and glibc-2.37 * Thu Jun 03 2021 holgerbruenjes@gmx.net - rebuild with cracklib-2.9.7 and glibc-2.33 * Mon Apr 06 2020 holgerbruenjes@gmx.net - rebuild with glibc-2.31 * Fri Jun 14 2019 holgerbruenjes@gmx.net - rebuild with cracklib-2.9.6 * Tue Jan 09 2018 holgerbruenjes@gmx.net - first Version