[pam_passwdqc/f12/master] - Fixed issues as per bz 226226, patch by Parag (panemade at gmail.com). - Added explanation for extra

avesh agarwal avesh at fedoraproject.org
Tue Sep 7 17:39:23 UTC 2010


commit c8ed8aa50fa111229face856feed0215fcdb4c62
Author: Avesh Agarwal <avagarwa at redhat.com>
Date:   Tue Sep 7 13:39:26 2010 -0400

    - Fixed issues as per bz 226226, patch by Parag (panemade at gmail.com).
    - Added explanation for extra C flags as per fedora guidelines.
    - Modified %files section to include "-" as per guidelines.
    - Added explanation for adding extra flags.
    - Removed buildroot tag.
    - Fixed license, and source urls.
    - Fixed following rpmlint errors on src rpm:
      pam_passwdqc.src: W: summary-ended-with-dot Pluggable
      password quality-control module.,
      pam_passwdqc.src:11: E: buildprereq-use pam-devel

 pam_passwdqc.spec |   38 ++++++++++++++++++++++++--------------
 1 files changed, 24 insertions(+), 14 deletions(-)
---
diff --git a/pam_passwdqc.spec b/pam_passwdqc.spec
index 694a1db..38520de 100644
--- a/pam_passwdqc.spec
+++ b/pam_passwdqc.spec
@@ -1,16 +1,15 @@
-Summary: Pluggable password quality-control module.
+Summary: Pluggable password quality-control module
 Name: pam_passwdqc
 Version: 1.0.5
-Release: 4%{?dist}
-# License of man page is BSD, rest is Copyright only
-License: BSD and Copyright only
+Release: 5%{?dist}
+# License of man page is BSD, wordset_4k.c is public domain 
+# and rest is Copyright only
+License: BSD and Public Domain and Copyright only
 Group: System Environment/Base
 URL: http://www.openwall.com/passwdqc/
-Source0: ftp://ftp.openwall.com/pub/projects/pam/modules/%name/%name-%version.tar.gz
-Source1: ftp://ftp.openwall.com/pub/projects/pam/modules/%name/%name-%version.tar.gz.sign
-BuildPrereq: pam-devel
-BuildRoot: %{_tmppath}/%name-%version
-
+Source0: ftp://ftp.openwall.com/pub/projects/pam/modules/%{name}/%{name}-%{version}.tar.gz
+Source1: ftp://ftp.openwall.com/pub/projects/pam/modules/%{name}/%{name}-%{version}.tar.gz.sign
+BuildRequires: pam-devel
 Patch1: patch-219201.patch 
 
 %description
@@ -22,26 +21,37 @@ and can be (re-)configured without rebuilding.
 
 %prep
 %setup -q
-
 %patch1 -p1
 
 %build
-make CFLAGS="-Wall -fPIC -DHAVE_SHADOW -DLINUX_PAM $RPM_OPT_FLAGS" LDFLAGS_LINUX='--shared -Wl,--version-script,$(MAP)'
+#extra C flags (in addition to RPM_OPT_FLAGS) are for creating pam_passwdqc as a shared library, and for enabling all warnings
+make CFLAGS="-Wall -fPIC -DHAVE_SHADOW -DLINUX_PAM $RPM_OPT_FLAGS" LDFLAGS_LINUX='--shared -Wl,--version-script,$(MAP)' %{?_smp_mflags}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} SECUREDIR=/%{_lib}/security
+make install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} SECUREDIR=/%{_lib}/security INSTALL="install -p"
 
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %doc LICENSE README
 /%{_lib}/security/pam_passwdqc.so
 %{_mandir}/man*/*
 
 %changelog
+* Tue Sep 7 2010 Avesh Agarwal <avagarwa at redhat.com> - 1.0.5-5
+- Fixed issues as per bz 226226, patch by Parag (panemade at gmail.com).
+- Added explanation for extra C flags as per fedora guidelines.
+- Modified %files section to include "-" as per guidelines.
+- Added explanation for adding extra flags.
+- Removed buildroot tag.
+- Fixed license, and source urls.
+- Fixed following rpmlint errors on src rpm:
+  pam_passwdqc.src: W: summary-ended-with-dot Pluggable
+  password quality-control module.,
+  pam_passwdqc.src:11: E: buildprereq-use pam-devel
+
 * Tue Sep 29 2009 Avesh Agarwal <avagarwa at redhat.com> - 1.0.5-4
 - Patch for new configurable options(rhbz# 219201): 
   disable first upper and last digit check, passwords 


More information about the scm-commits mailing list