From 2b6676083c67967a12a6476e1437385a7cc4085a Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 13 Oct 2022 13:46:22 +0800 Subject: [PATCH] optimise spec file --- quota.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/quota.spec b/quota.spec index ad40eaa..bc05240 100644 --- a/quota.spec +++ b/quota.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # Scan ext file systems directly to increase the performace of a quota # initialization and check %bcond_without quota_enables_extdirect @@ -53,6 +53,7 @@ BuildRequires: systemd-rpm-macros BuildRequires: tcp_wrappers-devel %endif %endif + Requires: quota-nls = %{epoch}:%{version}-%{release} Conflicts: kernel < 2.4 @@ -204,6 +205,7 @@ install -p -m644 -D %{SOURCE4} \ %find_lang %{name} +%generate_compatibility_deps %check make check @@ -232,10 +234,11 @@ make check %systemd_postun_with_restart rpc-rquotad.service %endif - %files +%dir %{abidir} %{_bindir}/* %{_sbindir}/* +%{abidir}/*-option.list %exclude %{_sbindir}/quota_nld %if %{with quota_enables_rpc} %exclude %{_sbindir}/rpc.rquotad @@ -295,5 +298,8 @@ make check %changelog +* Thu Oct 13 2022 mgb01105731 - 4.06-2 +- optimise spec file + * Fri Mar 11 2022 mgb01105731 - 4.06-1 - Init from upstream version 4.06 -- Gitee