From 55f1ba8c31b884692a48616bb7324ecc48bacb0e Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Wed, 2 Nov 2022 11:40:24 +0800 Subject: [PATCH] optimise spec file --- chkconfig.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/chkconfig.spec b/chkconfig.spec index 8f59fb0..00c460a 100644 --- a/chkconfig.spec +++ b/chkconfig.spec @@ -1,6 +1,7 @@ +%define anolis_release 2 Name: chkconfig Version: 1.20 -Release: 1%{?dist} +Release: %{anolis_release}%{?dist} Summary: A system tool for maintaining the /etc/rc*.d hierarchy License: GPLv2 @@ -57,6 +58,8 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d %find_lang %{name} +%generate_compatibility_deps + %files -f %{name}.lang %defattr(-,root,root) %{!?_licensedir:%global license %%doc} @@ -77,15 +80,19 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d %{_mandir}/*/ntsysv.8* %files -n alternatives +%dir %{abidir} %license COPYING %dir /etc/alternatives %{_sbindir}/update-alternatives %{_sbindir}/alternatives +%{abidir}/alternatives-option.list %{_mandir}/*/update-alternatives* %{_mandir}/*/alternatives* %dir /var/lib/alternatives - %changelog +* Wed Nov 02 2022 mgb01105731 - 1.20-2 +- optimise spec file + * Thu Mar 10 2022 forrest_ly - 1.20-1 - Init for Anolis OS 23 -- Gitee