The test must use the dictionary from the build

This commit is contained in:
Tomas Mraz 2018-07-13 13:59:23 +02:00
parent 4b67c0c867
commit 8274cbbc56

View File

@ -5,7 +5,7 @@
Summary: A password-checking library Summary: A password-checking library
Name: cracklib Name: cracklib
Version: 2.9.6 Version: 2.9.6
Release: 14%{?dist} Release: 15%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
Source0: https://github.com/cracklib/cracklib/releases/download/cracklib-%{version}/cracklib-%{version}.tar.gz 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 Source1: https://github.com/cracklib/cracklib/releases/download/cracklib-%{version}/cracklib-words-%{version}.gz
@ -119,6 +119,8 @@ done
chmod +x util/cracklib-format chmod +x util/cracklib-format
%build %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 \ %configure --with-pic \
%if 0%{?rhel} == 0 %if 0%{?rhel} == 0
--with-python \ --with-python \
@ -169,7 +171,7 @@ fi
%find_lang %{name} %find_lang %{name}
%check %check
make test make test DESTDIR=$RPM_BUILD_ROOT
%if 0%{?rhel} == 0 %if 0%{?rhel} == 0
# We want to check that the new library is able to open the new dictionaries, # We want to check that the new library is able to open the new dictionaries,
# using the new python module. # using the new python module.
@ -231,6 +233,9 @@ EOF
%endif %endif
%changelog %changelog
* Fri Jul 13 2018 Tomáš Mráz <tmraz@redhat.com> - 2.9.6-15
- The test must use the dictionary from the build
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.6-14 * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.6-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild