diff --git a/crypto-policies.spec b/crypto-policies.spec index 92640fb2b3e678473eb881f547818a9189f91774..2f4d4e6f53f1b4d62b47cd211976938e5a63b909 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -1,10 +1,11 @@ +%define anolis_release 2 %global git_date 20220314 %global git_commit 8b8e5af4e37cd7d3b12396cd2a2f7487a700680f %{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})} Name: crypto-policies Version: %{git_date} -Release: 1%{?dist} +Release: %{anolis_release}%{?dist} Summary: System-wide crypto policies License: LGPLv2+ @@ -91,6 +92,8 @@ done %py_byte_compile %{__python3} %{buildroot}%{_datadir}/crypto-policies/python +%generate_compatibility_deps + %check make test %{?_smp_mflags} @@ -131,7 +134,6 @@ end %files - %dir %{_sysconfdir}/crypto-policies/ %dir %{_sysconfdir}/crypto-policies/back-ends/ %dir %{_sysconfdir}/crypto-policies/state/ @@ -175,7 +177,9 @@ end %license COPYING.LESSER %files scripts +%dir %{abidir} %{_bindir}/update-crypto-policies +%{abidir}/update-crypto-policies-option.list %{_mandir}/man8/update-crypto-policies.8* %{_datarootdir}/crypto-policies/python @@ -186,5 +190,8 @@ end %changelog +* Tue Nov 01 2022 mgb01105731 - 20220314-2 +- optimise spec file + * Mon Mar 14 2022 forrest_ly - 20220314-1 - Init for Anolis OS 23