###############################################################################
name = cracklib
-version = 2.8.18
-release = 1
+version = 2.9.5
+release = 2
groups = Security/Password
url = http://sourceforge.net/projects/cracklib/
build
requires
- autoconf
- automake
- gettext-devel
python-devel
end
dictdir = %{datadir}/cracklib
dictpath = %{dictdir}/pw_dict
+ export LD_LIBRARY_PATH = %{DIR_APP}/lib/.libs
+
configure_options += \
- --with-default-dict=/lib/cracklib/pw_dict \
+ --with-default-dict=%{dictpath} \
--with-python \
--disable-static
cp lib/packer.h lib/packer.h.in
chmod +x util/cracklib-format
- # Apply all patches.
- %{MACRO_PATCHES}
-
- #autoreconf -fi
-
mkdir cracklib-dicts
cp -vf %{DIR_DL}/cracklib-words-20080507.gz cracklib-dicts
# Install python bindings
make install DESTDIR=%{BUILDROOT} INSTALL="install -c -p" -C python
- mkdir -pv %{BUILDROOT}/{,usr/}%{lib}
- mv -v %{BUILDROOT}%{libdir}/libcrack.so.2* %{BUILDROOT}/%{lib}
- ln -vsf ../../%{lib}/libcrack.so.2.8.1 %{BUILDROOT}%{libdir}/libcrack.so
-
mkdir -pv %{BUILDROOT}{%{dictdir},%{dictpath}}
util/cracklib-format cracklib-dicts/* | \
util/cracklib-packer %{BUILDROOT}%{dictpath}
# We build an extra python package with the bindings for it.
package python-cracklib
- summary = Python bindings for ${thisapp}.
+ summary = Python bindings for %{thisapp}.
description = %{summary}
- files = /usr/lib*/python*
+ files
+ /usr/lib/python*
+ %{libdir}/python*
+ end
end
package %{name}-debuginfo