# # 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. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: cracklib Url: http://sourceforge.net/projects/cracklib License: Artistic License Group: System/Libraries AutoReqProv: on Version: 2.8.12 Release: 8 Requires: cracklib-dict Summary: Full Dictionary for cracklib Source: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.bz2 Source1: cracklib-po.tar.gz Patch: cracklib-magic.diff Patch1: cracklib-trans.diff Patch2: datarootdir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description CrackLib tests passwords to determine whether they match certainsecurity-oriented characteristics. You can use CrackLib to stopusers from choosing passwords that are too simple.This package contains a full dictionary file used by cracklib. %package devel Summary: Header files and libraries for developing apps which will use CrackLib Group: Development/Libraries/C and C++ Provides: cracklib:/usr/include/crack.h Requires: cracklib = %{version} glibc-devel AutoReqProv: on %description devel The cracklib-devel package contains the header files and libraries needed to develop programs that use the CrackLib functions to to determine whether passwords match certain security-oriented characteristics. %package dict-small Summary: Small dictionary for cracklib - A Password-Checking Library Group: System/Libraries Provides: cracklib-dict Conflicts: cracklib-dict-full %description dict-small CrackLib tests passwords to determine whether they match certain security-oriented characteristics. You can use CrackLib to stop users from choosing passwords that are easy to guess. This package contains a small dictionay file used by cracklib. %prep %setup -q %setup -a 1 -T -D %patch %patch1 %patch2 %build AUTOPOINT=true autoreconf -fi CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ --libdir=%{_libdir} --libexecdir=%{_libdir} --datadir=%{_datadir} make make -C po update-po %clean rm -rf $RPM_BUILD_ROOT %install make install DESTDIR=$RPM_BUILD_ROOT # libtool is broken by design, remove this *.la files ... rm $RPM_BUILD_ROOT/%{_libdir}/libcrack.la # set executable chmod 755 ./util/cracklib-format # Adjust path in comment 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 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 $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwd ln -sf %{_datadir}/cracklib/pw_dict.pwi $RPM_BUILD_ROOT/usr/lib/cracklib_dict.pwi %{find_lang} %{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %doc README README-WORDS NEWS README-LICENSE README-DAWG AUTHORS COPYING %{_libdir}/libcrack.so.2 %{_libdir}/libcrack.so.2.8.0 /usr/sbin/create-cracklib-dict /usr/sbin/mkdict /usr/sbin/packer /usr/sbin/cracklib-check /usr/sbin/cracklib-format /usr/sbin/cracklib-packer /usr/sbin/cracklib-unpacker %dir %{_datadir}/cracklib %{_datadir}/cracklib/cracklib.magic /usr/lib/cracklib_dict.hwm /usr/lib/cracklib_dict.pwd /usr/lib/cracklib_dict.pwi %files devel %defattr(644,root,root,755) %{_includedir}/crack.h %{_includedir}/packer.h %{_libdir}/libcrack.a %{_libdir}/libcrack.so %files dict-small %defattr(-,root,root) %{_datadir}/cracklib/pw_dict.hwm %{_datadir}/cracklib/pw_dict.pwd %{_datadir}/cracklib/pw_dict.pwi %changelog * Tue Mar 18 2008 schwab@suse.de - Don't use autopoint. * Tue Feb 12 2008 mc@suse.de - update to version 2.8.12 * minor bugfixes - update localization files * Fri Sep 21 2007 mc@suse.de - update localization files * Fri Aug 31 2007 mc@suse.de - update localization files * Mon Aug 20 2007 mc@suse.de - update localization files * Tue Jun 05 2007 mc@suse.de - update i18n * Thu May 03 2007 mc@suse.de - add translations from Novell * Mon Apr 23 2007 mc@suse.de - added cracklib-dict-small and splitted the full dictionary into a seperate package. [#265733] - cracklib requires cracklib-dict * Mon Apr 16 2007 mc@suse.de - update to version 2.8.10 * better hanlding of cracklist dictionary paths in python binding. * Wed Aug 02 2006 mc@suse.de - update to version 2.8.9 - ChangeLog, configure.in: bump version numbers, skipped a couple due to packaging/disting issues with sf - lib/packlib.c: also close wfp fd if it was opened * Wed Jul 05 2006 aj@suse.de - Fix build. * Mon Jun 12 2006 kukuk@suse.de - Update sl_SI translation * Mon Mar 27 2006 kukuk@suse.de - Update pl and fi translations * Mon Mar 06 2006 kukuk@suse.de - Add km and uk translations, update fi translation * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Fri Nov 18 2005 kukuk@suse.de - Update to 2.8.6 (merge locale and compile fixes) * Wed Oct 05 2005 kukuk@suse.de - Fix installing of translations * Thu Sep 29 2005 kukuk@suse.de - Update to official 2.8.5 - Fix warnings about undeclared functions * Mon Aug 29 2005 kukuk@suse.de - Add translations for fi, sl_SI and el * Thu Aug 25 2005 kukuk@suse.de - Add pl translation * Tue Aug 23 2005 kukuk@suse.de - Remove support for broken 64bit indexes from magic entry [Bug #106007] * Fri Aug 19 2005 kukuk@suse.de - Add Novell Tier1 translations * Wed Aug 17 2005 kukuk@suse.de - Add translations for da, lt, nb, pa and pt - Fixes #105413 * Tue Jul 26 2005 kukuk@suse.de - Update to internal version 2.8.3.0.2 (based on CVS) * Thu Jun 23 2005 kukuk@suse.de - Update to internal version 2.8.3.0.1 (based on CVS) * Fri Jun 03 2005 kukuk@suse.de - Update to version 2.8.3 - Fix compiler warnings * Sat Apr 02 2005 kukuk@suse.de - Remove words from neededforbuild * Fri Apr 01 2005 kukuk@suse.de - Update to version 2.8.2 * Tue Feb 15 2005 ro@suse.de - fix Makefile (no need to add Makefile to ar archive) * Mon Jan 26 2004 kukuk@suse.de - Use reentrant getpwuid function - Revert last change * Sun Jan 18 2004 meissner@suse.de - Compile with -fPIC. * Fri Jan 16 2004 kukuk@suse.de - Add italian translation * Wed Jan 07 2004 kukuk@suse.de - Add translation for hu * Mon Dec 15 2003 kukuk@suse.de - Add translation for nl * Tue Dec 09 2003 kukuk@suse.de - Add translations for es and fr * Mon Dec 01 2003 kukuk@suse.de - Fix all compiler warnings - Add german translation * Fri Nov 21 2003 kukuk@suse.de - Compile with no execstack - Build as normal user * Fri Sep 19 2003 kukuk@suse.de - Add czech translation * Mon Aug 25 2003 kukuk@suse.de - Add slovak translation * Mon Jul 28 2003 kukuk@suse.de - Make similar error messages unique * Tue May 27 2003 kukuk@suse.de - Make crack.h header C++ conform - Build static library - Create cracklib-devel sub package * Mon May 12 2003 kukuk@suse.de - Add defattr * Thu May 08 2003 kukuk@suse.de - Add patch which allows translation of cracklib messages * Tue Aug 13 2002 ademar@conectiva.com.br - Added several en wordlists and pt_BR and es dictionaries * Fri May 11 2001 schwab@suse.de - Fix portability bugs. * Tue Oct 03 2000 kukuk@suse.de - Use gcc for creating shared library - Add support for 32/64bit library path * Wed May 31 2000 kukuk@suse.de - Use new URL, add Group tag * Mon Nov 15 1999 kukuk@suse.de - Remove ldconfig calls * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Tue May 04 1999 kukuk@suse.de - initial version of cracklib