# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171695 -7200 # Node ID 37c544fc0159e9ceabb91e89666c3fc5efc00194 # Parent 97e49dc59b234df0f85e3dfaf451341f6ed9c74b Correct building on SVR4 using final POSIX.1c conformant getpwnam(3) signatures. diff -r 97e49dc59b23 -r 37c544fc0159 cracklib/cracklib.spec --- a/cracklib/cracklib.spec Tue Aug 28 18:34:50 2012 +0200 +++ b/cracklib/cracklib.spec Tue Aug 28 18:34:55 2012 +0200 @@ -32,7 +32,7 @@ Group: Security License: Artistic Version: 2.8.19 -Release: 20120519 +Release: 20120800 # list of sources Source0: http://switch.dl.sourceforge.net/cracklib/cracklib-%{version}.tar.gz @@ -67,6 +67,7 @@ # configure library CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags} -D_POSIX_PTHREAD_SEMANTICS" \ ./configure \ --prefix=%{l_prefix} \ --with-default-dict=%{l_prefix}/lib/cracklib/pw_dict \ @@ -75,7 +76,7 @@ --disable-nls # build library - %{l_make} %{l_mflags} + %{l_make} %{l_mflags -O} %install # install library @@ -115,8 +116,8 @@ %clean %post - # (re-)generate run-time password dictionary - ( echo "(Re-)Generating run-time password dictionary" + # (re)generate runtime password dictionary + ( echo "(Re)Generating runtime password dictionary" ) | %{l_rpmtool} msg -b -t warn ( cd $RPM_INSTALL_PREFIX/share/cracklib && \ $RPM_INSTALL_PREFIX/bin/make