From 704c19421d84eb29755a08a43c631d3070b68013 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Tue, 25 Oct 2022 11:44:28 +0800 Subject: [PATCH] optimise spec file --- libconfig.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/libconfig.spec b/libconfig.spec index 64b7a7a..70c36ee 100644 --- a/libconfig.spec +++ b/libconfig.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_without check Name: libconfig @@ -20,10 +20,17 @@ files. This file format is more compact and more readable than XML. And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Development files for libconfig -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel Development libraries and headers for developing software against @@ -49,6 +56,7 @@ make %{?_smp_mflags} rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT%{_infodir}/dir +%generate_compatibility_deps %if %{with check} %check @@ -59,10 +67,13 @@ make check %ldconfig_scriptlets %files +%dir %{abidir} %license COPYING.LIB -%doc AUTHORS ChangeLog README %{_libdir}/libconfig*.so.11* +%{abidir}/libconfig*.dump +%files doc +%doc AUTHORS ChangeLog README %files devel %{_includedir}/libconfig* @@ -74,6 +85,9 @@ make check %changelog +* Tue Oct 25 2022 mgb01105731 - 1.7.3-2 +- optimise spec file & add doc package + * Thu Apr 21 2022 mgb01105731 - 1.7.3-1 - Init from upstream version 1.7.3 -- Gitee