From 8274cbbc56e478a99f29a231a094529426852b05 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Fri, 13 Jul 2018 13:59:23 +0200 Subject: [PATCH] The test must use the dictionary from the build --- cracklib.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cracklib.spec b/cracklib.spec index 4d6591d..7935ceb 100644 --- a/cracklib.spec +++ b/cracklib.spec @@ -5,7 +5,7 @@ Summary: A password-checking library Name: cracklib Version: 2.9.6 -Release: 14%{?dist} +Release: 15%{?dist} Group: System Environment/Libraries Source0: https://github.com/cracklib/cracklib/releases/download/cracklib-%{version}/cracklib-%{version}.tar.gz Source1: https://github.com/cracklib/cracklib/releases/download/cracklib-%{version}/cracklib-words-%{version}.gz @@ -119,6 +119,8 @@ done chmod +x util/cracklib-format %build +# Use the dictionary from the build to test +sed -i 's,util/cracklib-check <,util/cracklib-check $(DESTDIR)/$(DEFAULT_CRACKLIB_DICT) <,' Makefile.in %configure --with-pic \ %if 0%{?rhel} == 0 --with-python \ @@ -169,7 +171,7 @@ fi %find_lang %{name} %check -make test +make test DESTDIR=$RPM_BUILD_ROOT %if 0%{?rhel} == 0 # We want to check that the new library is able to open the new dictionaries, # using the new python module. @@ -231,6 +233,9 @@ EOF %endif %changelog +* Fri Jul 13 2018 Tomáš Mráz - 2.9.6-15 +- The test must use the dictionary from the build + * Thu Jul 12 2018 Fedora Release Engineering - 2.9.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild