The test must use the dictionary from the build
This commit is contained in:
parent
4b67c0c867
commit
8274cbbc56
@ -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 <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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user