OBS User unknown 2008-09-05 18:15:29 +00:00 committed by Git OBS Bridge
parent 6533d1cccc
commit 84b644efe9
2 changed files with 29 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 1 17:21:20 CEST 2008 - mc@suse.de
- do not zip the dict by default. A check takes too long.
The support for zip'ed dicts is still available
-------------------------------------------------------------------
Fri Jun 20 16:46:23 CEST 2008 - mc@suse.de

View File

@ -2,9 +2,16 @@
# spec file for package cracklib (Version 2.8.12)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@ -18,7 +25,7 @@ License: Artistic License
Group: System/Libraries
AutoReqProv: on
Version: 2.8.12
Release: 27
Release: 46
Requires: cracklib-dict
Summary: Full Dictionary for cracklib
Source: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.bz2
@ -88,6 +95,7 @@ make -C po update-po
rm -rf $RPM_BUILD_ROOT
%install
mkdir -p $RPM_BUILD_ROOT/usr/lib
make install DESTDIR=$RPM_BUILD_ROOT
# libtool is broken by design, remove this *.la files ...
rm $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
@ -97,14 +105,18 @@ chmod 755 ./util/cracklib-format
sed "s,/usr/lib/cracklib_dict,%{_datadir}/cracklib/pw_dict,g" lib/crack.h > $RPM_BUILD_ROOT/%{_includedir}/crack.h
./util/cracklib-format ./dicts/cracklib-small | \
./util/cracklib-packer $RPM_BUILD_ROOT/%{_datadir}/cracklib/pw_dict
gzip $RPM_BUILD_ROOT/%{_datadir}/cracklib/pw_dict.pwd
ln -s cracklib-format $RPM_BUILD_ROOT/%{_sbindir}/mkdict
ln -s cracklib-packer $RPM_BUILD_ROOT/%{_sbindir}/packer
rm -f $RPM_BUILD_ROOT/%{_datadir}/cracklib/cracklib-small
mkdir -p $RPM_BUILD_ROOT/usr/lib
ln -sf %{_datadir}/cracklib/pw_dict.hwm $RPM_BUILD_ROOT/usr/lib/cracklib_dict.hwm
ln -sf %{_datadir}/cracklib/pw_dict.pwd.gz $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwd.gz
ln -sf %{_datadir}/cracklib/pw_dict.pwd $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwd
ln -sf %{_datadir}/cracklib/pw_dict.pwi $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwi
#
# using zip'ed dict takes too long for a check. But the support
# for this is still in the lib.
#
#gzip $RPM_BUILD_ROOT/%{_datadir}/cracklib/pw_dict.pwd
#ln -sf %{_datadir}/cracklib/pw_dict.pwd.gz $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwd.gz
%{find_lang} %{name}
%post -p /sbin/ldconfig
@ -126,7 +138,7 @@ ln -sf %{_datadir}/cracklib/pw_dict.pwi $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pw
%dir %{_datadir}/cracklib
%{_datadir}/cracklib/cracklib.magic
/usr/lib/cracklib_dict.hwm
/usr/lib/cracklib_dict.pwd.gz
/usr/lib/cracklib_dict.pwd
/usr/lib/cracklib_dict.pwi
%files devel
@ -139,10 +151,13 @@ ln -sf %{_datadir}/cracklib/pw_dict.pwi $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pw
%files dict-small
%defattr(-,root,root)
%{_datadir}/cracklib/pw_dict.hwm
%{_datadir}/cracklib/pw_dict.pwd.gz
%{_datadir}/cracklib/pw_dict.pwd
%{_datadir}/cracklib/pw_dict.pwi
%changelog
* Mon Sep 01 2008 mc@suse.de
- do not zip the dict by default. A check takes too long.
The support for zip'ed dicts is still available
* Fri Jun 20 2008 mc@suse.de
- implement reading compressed password databases
(FATE#303536)