From 316bfb6ede68f5e94b884193706a321c95afc959 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 6 Apr 2012 17:04:22 +0200 Subject: [PATCH] cracklib: Fix setting password issue on x86_64 (#10074). This was caused by a wrong path configuration. Also moves libs to /usr and fixes a typo in the package description. --- cracklib/cracklib.nm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/cracklib/cracklib.nm b/cracklib/cracklib.nm index dcb90034b..93a3464a3 100644 --- a/cracklib/cracklib.nm +++ b/cracklib/cracklib.nm @@ -5,7 +5,7 @@ name = cracklib version = 2.8.18 -release = 1 +release = 2 groups = Security/Password url = http://sourceforge.net/projects/cracklib/ @@ -37,7 +37,7 @@ build dictpath = %{dictdir}/pw_dict configure_options += \ - --with-default-dict=/lib/cracklib/pw_dict \ + --with-default-dict=%{dictpath} \ --with-python \ --disable-static @@ -67,10 +67,6 @@ build # 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} @@ -121,10 +117,13 @@ packages # 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 -- 2.39.2