From c1ddbff82c26137e7509d5053d599153a7b0ded5 Mon Sep 17 00:00:00 2001 From: fu-shanqing Date: Tue, 28 Feb 2023 10:31:16 +0800 Subject: [PATCH] move %{_bindir}/update-crypto-policies to crypto-policies-scripts --- crypto-policies.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/crypto-policies.spec b/crypto-policies.spec index 17528fc..d90dc29 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -4,7 +4,7 @@ Name: crypto-policies Version: %{git_date} -Release: 4.git%{git_commit_hash} +Release: 5.git%{git_commit_hash} Summary: Crypto policies package for Fedora License: LGPLv2+ @@ -100,8 +100,12 @@ done make check %{?_smp_mflags} %post -%{_bindir}/update-crypto-policies --no-check >/dev/null 2>/dev/null || : +for f in %{_datarootdir}/crypto-policies/DEFAULT/*.txt ; do + ln -s $f %{_sysconfdir}/crypto-policies/back-ends/$(basename $f .txt).config +done +%posttrans scripts +%{_bindir}/update-crypto-policies --no-check >/dev/null 2>/dev/null || : %files @@ -126,10 +130,9 @@ make check %{?_smp_mflags} %ghost %{_sysconfdir}/crypto-policies/back-ends/krb5.config %ghost %{_sysconfdir}/crypto-policies/back-ends/openjdk.config %ghost %{_sysconfdir}/crypto-policies/back-ends/libreswan.config +%ghost %{_sysconfdir}/crypto-policies/back-ends/libssh.config -%{_bindir}/update-crypto-policies %{_mandir}/man7/crypto-policies.7* -%{_mandir}/man8/update-crypto-policies.8* %{_datarootdir}/crypto-policies/LEGACY/* %{_datarootdir}/crypto-policies/DEFAULT/* %{_datarootdir}/crypto-policies/NEXT/* @@ -139,18 +142,23 @@ make check %{?_smp_mflags} %{_datarootdir}/crypto-policies/default-config %{_datarootdir}/crypto-policies/reload-cmds.sh %{_datarootdir}/crypto-policies/policies -%{_datarootdir}/crypto-policies/python %files scripts %{_bindir}/fips-mode-setup %{_bindir}/fips-finish-install +%{_bindir}/update-crypto-policies %{_mandir}/man8/fips-mode-setup.8* %{_mandir}/man8/fips-finish-install.8* +%{_mandir}/man8/update-crypto-policies.8* +%{_datarootdir}/crypto-policies/python %{!?_licensedir:%global license %%doc} %license COPYING.LESSER %changelog +* Tue Feb 28 2023 fushanqing - 20200619-5.git781bbd4 +- move %{_bindir}/update-crypto-policies to crypto-policies-scripts + * Mon Feb 27 2023 yixiangzhike - 20200619-4.git781bbd4 - Makefile support overriding asciidoc executable name - update Makefile for asciidoc 10 -- Gitee