Update after crypto-policies packaging change

Suggested by Tomas Mraz in:
https://bugzilla.redhat.com/show_bug.cgi?id=1848649#c7
This commit is contained in:
Daiki Ueno 2020-06-22 15:21:42 +02:00
parent 27b7534706
commit 208c55f1d2

View File

@ -53,7 +53,7 @@ Requires: nss-util >= %{nss_version}
Requires: nss-softokn%{_isa} >= %{nss_version} Requires: nss-softokn%{_isa} >= %{nss_version}
Requires: nss-system-init Requires: nss-system-init
Requires: p11-kit-trust Requires: p11-kit-trust
Requires: crypto-policies Requires: /usr/bin/update-crypto-policies
BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nspr-devel >= %{nspr_version}
# for shlibsign # for shlibsign
BuildRequires: nss-softokn BuildRequires: nss-softokn
@ -631,10 +631,7 @@ install -p -m 644 %{SOURCE28} $RPM_BUILD_ROOT/%{_sysconfdir}/crypto-policies/loc
# from previous versions of nss.spec # from previous versions of nss.spec
/usr/bin/setup-nsssysinit.sh on /usr/bin/setup-nsssysinit.sh on
%post %posttrans
update-crypto-policies &> /dev/null || :
%postun
update-crypto-policies &> /dev/null || : update-crypto-policies &> /dev/null || :