- drop final "." from summaries (Jef Spaleta, #225659)

- drop static library from -devel subpackage (Jef Spaleta, #225659)
- note that the most recently-added wordlist came from bugzilla (#225659)
- remove explicit dependency on gzip, as it's implicit (Jef Spaleta,
    #225659)
- convert %%triggerpostun to not use a shell as an interpreter (#225659)
This commit is contained in:
Nalin Dahyabhai 2007-02-13 01:03:26 +00:00
parent 5c473f2342
commit 51f83e3c3c
2 changed files with 26 additions and 15 deletions

View File

@ -1,12 +1,14 @@
# Reflects the values hard-coded in various Makefile.am's in the source tree.
%define dictpath %{_datadir}/cracklib/pw_dict
Summary: A password-checking library.
Summary: A password-checking library
Name: cracklib
Version: 2.8.9
Release: 8
Release: 9
Group: System Environment/Libraries
Source0: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.gz
# Retrieved at 20070213003424Z.
Source1: http://prdownloads.sourceforge.net/cracklib/cracklib-words.gz
Source10: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz
@ -36,12 +38,15 @@ Source33: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.french.gz
Source34: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz
Source35: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz
Source36: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz
# No upstream source for this; it came in as a bugzilla attachment.
Source37: pass_file.gz
Patch0: cracklib-2.8.9-suffix.patch
URL: http://sourceforge.net/projects/cracklib/
License: Artistic
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gzip, python-devel, words, automake, libtool
BuildRequires: python-devel, words, automake, libtool
Conflicts: cracklib-dicts < 2.8
%description
@ -63,7 +68,7 @@ passwords to see if they are at least minimally secure. If you install
CrackLib, you will also want to install the cracklib-dicts package.
%package devel
Summary: Development files needed for building applications which use cracklib.
Summary: Development files needed for building applications which use cracklib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
@ -72,7 +77,7 @@ The cracklib-devel package contains the header files and libraries needed
for compiling applications which use cracklib.
%package python
Summary: Python bindings for applications which use cracklib.
Summary: Python bindings for applications which use cracklib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
@ -84,6 +89,7 @@ written in the Python programming language to use cracklib.
Summary: The standard CrackLib dictionaries.
Group: System Environment/Libraries
BuildRequires: words >= 2-13
Requires: cracklib = %{version}-%{release}
%description dicts
The cracklib-dicts package includes the CrackLib dictionaries.
@ -105,16 +111,13 @@ for dict in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
%{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} \
%{SOURCE35} %{SOURCE36} %{SOURCE37} %{SOURCE1}
do
cp -fv ${dict} cracklib-dicts/
cp -fv ${dict} cracklib-dicts/
done
%build
%configure --with-pic --with-python --with-default-dict=%{dictpath}
%configure --with-pic --with-python --with-default-dict=%{dictpath} --disable-static
make
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
@ -141,12 +144,14 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
%find_lang %{name}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%triggerpostun -- cracklib < 2.7-24
/sbin/ldconfig
%triggerpostun -p /sbin/ldconfig -- cracklib < 2.7-24
%files -f %{name}.lang
%defattr(-,root,root)
@ -160,7 +165,6 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libcrack.so
%{_libdir}/libcrack.a*
%files dicts
%defattr(-,root,root)
@ -175,6 +179,13 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
%{_libdir}/python*/site-packages/cracklibmodule.so
%changelog
* Mon Feb 12 2007 Nalin Dahyabhai <nalin@redhat.com> - 2.8.9-9
- drop final "." from summaries (Jef Spaleta, #225659)
- drop static library from -devel subpackage (Jef Spaleta, #225659)
- note that the most recently-added wordlist came from bugzilla (#225659)
- remove explicit dependency on gzip, as it's implicit (Jef Spaleta, #225659)
- convert %%triggerpostun to not use a shell as an interpreter (#225659)
* Wed Jan 31 2007 Nalin Dahyabhai <nalin@redhat.com> - 2.8.9-8
- add word list from attachment #126053 (#185314)
@ -332,7 +343,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
- fix undeclared function warnings from the new compiler
- fix URL
* Fri Apr 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
* Fri Apr 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
- switched to use /usr/share/dict/words
* Tue Apr 06 1999 Preston Brown <pbrown@redhat.com>

View File

@ -25,6 +25,6 @@ f70810a2ba08f95df6787afe0eba2907 other-names.gz
a2bd31ce25a3057b61d2e5a1182d93a9 sf.gz
15ec61296de799eaa8111cfabbcbb44f shakespeare.gz
c03b38448aefcde059e6fcfb20784f2c surnames.finnish.gz
575a44add4db95b43c7abb46b307950f cracklib-words.gz
9a8c9eb26b48787c84024ac779f64bb2 cracklib-2.8.9.tar.gz
6e76a087a646ede5eba05e9259fd84d4 pass_file.gz
d18e670e5df560a8745e1b4dede8f84f cracklib-words.gz