From f3be1b7b12e57ff0cd2f9d62fa828f9f4f9ff5b3 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 18 Jul 2022 13:57:05 +0800 Subject: [PATCH] Add doc sub package --- libconfig.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libconfig.spec b/libconfig.spec index 1d52c86..7c7dfc5 100644 --- a/libconfig.spec +++ b/libconfig.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Name: libconfig Summary: C/C++ configuration file library Version: 1.5 -Release: 9%{?dist} +Release: 9%{anolis_release}%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source0: http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz @@ -11,12 +12,23 @@ URL: http://www.hyperrealm.com/libconfig/ BuildRequires: texinfo-tex, tex(ecbx1095.tfm), tex(ecrm1095.tfm), tex(cm-super-t1.enc) BuildRequires: bison, flex +Requires: glibc + %description Libconfig is a simple library for manipulating structured configuration 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: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: Development files for libconfig Group: Development/Libraries @@ -61,9 +73,11 @@ if [ $1 = 0 ]; then fi %files -%doc AUTHORS ChangeLog COPYING.LIB README %{_libdir}/libconfig*.so.* +%files doc +%doc AUTHORS ChangeLog COPYING.LIB README + %files devel %doc doc/libconfig.pdf %{_includedir}/libconfig* @@ -72,6 +86,9 @@ fi %{_infodir}/libconfig.info* %changelog +* Mon Jul 17 2022 mgb01105731 - 1.5-9.0.1 +- Add doc sub package + * Wed Feb 07 2018 Fedora Release Engineering - 1.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee