From 5624ce1a4c3c05669b19deb99d3d4a98cb0ee1dc Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 28 Oct 2022 14:30:23 +0800 Subject: [PATCH] optimise spec file --- file.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/file.spec b/file.spec index aec576f..a66e3b4 100644 --- a/file.spec +++ b/file.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %bcond_without python3 Summary: Utility for determining file types @@ -125,6 +125,8 @@ cd %{py3dir} %endif %{__install} -d ${RPM_BUILD_ROOT}%{_datadir}/%{name} +%generate_compatibility_deps + %ldconfig_scriptlets libs %check @@ -134,6 +136,7 @@ make -C tests check %files %license COPYING %{_bindir}/* +%{abidir}/*-option.list %{_mandir}/man1/* %config(noreplace) %{_sysconfdir}/magic @@ -141,9 +144,11 @@ make -C tests check %doc ChangeLog %files libs +%dir %{abidir} %license COPYING %doc ChangeLog %{_libdir}/*so.* +%{abidir}/*.dump %{_datadir}/magic* %{_mandir}/man5/* %{_datadir}/file @@ -169,6 +174,9 @@ make -C tests check %endif %changelog +* Fri Oct 28 2022 mgb01105731 - 5.41-3 +- optimise spec file + * Fri Sep 30 2022 mgb01105731 - 5.41-2 - add doc package -- Gitee