From cdeaf9396544a8bd327fea56e18c0cadabf2291f Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 27 Oct 2022 16:48:57 +0800 Subject: [PATCH] optimise spec file --- gc.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/gc.spec b/gc.spec index 7c7621b..d507cdd 100644 --- a/gc.spec +++ b/gc.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Summary: Garbage collector for C and C++ Name: gc Version: 8.2.0 @@ -24,7 +24,7 @@ used as a garbage collecting replacement for C malloc or C++ new. %package devel Summary: Libraries and header files for %{name} development -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} Obsoletes: libgc-devel < %{version}-%{release} Provides: libgc-devel = %{version}-%{release} %description devel @@ -60,6 +60,7 @@ install -p -D -m644 doc/gc.man %{buildroot}%{_mandir}/man3/gc.3 rm -rfv %{buildroot}%{_datadir}/gc/ rm -fv %{buildroot}%{_libdir}/lib*.la +%generate_compatibility_deps %check %ifnarch aarch64 @@ -70,10 +71,15 @@ make check %{?arch_ignore} %ldconfig_scriptlets %files +%dir %{abidir} %{_libdir}/libcord.so.1* %{_libdir}/libgc.so.1* %{_libdir}/libgccpp.so.1* %{_libdir}/libgctba.so* +%{abidir}/libcord.dump +%{abidir}/libgc.dump +%{abidir}/libgccpp.dump +%{abidir}/libgctba.dump %files devel %doc doc/README.environment doc/README.linux @@ -90,8 +96,11 @@ make check %{?arch_ignore} %changelog -* Wed Apr 21 2022 Zhongling He 8.2.0-2 +* Thu Oct 27 2022 mgb01105731 - 8.2.0-3 +- optimise spec file + +* Wed Apr 21 2022 Zhongling He - 8.2.0-2 - Backport c876dc2 from upstream to fix some headers not installed. -* Wed Apr 13 2022 Zhongling He 8.2.0-1 +* Wed Apr 13 2022 Zhongling He - 8.2.0-1 - Init package from upstream v8.2.0 -- Gitee