From e114452284ffca436707771890a73b96c2bd4482 Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Sun, 17 Jul 2022 16:24:25 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- gcab.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/gcab.spec b/gcab.spec index 26d0400..a67e09e 100644 --- a/gcab.spec +++ b/gcab.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: gcab Version: 1.1 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Cabinet file library and tool License: LGPLv2+ @@ -22,6 +24,14 @@ Requires: libgcab1%{?_isa} = %{version}-%{release} %description gcab is a tool to manipulate Cabinet archive. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %package -n libgcab1 Summary: Library to create Cabinet archives @@ -57,10 +67,12 @@ Libraries, includes, etc. to compile with the gcab library. %ldconfig_scriptlets -n libgcab1 %files -%doc COPYING NEWS %{_bindir}/gcab %{_mandir}/man1/gcab.1* +%files doc +%doc COPYING NEWS + %files -n libgcab1 -f %{name}.lang %doc COPYING NEWS %{_libdir}/girepository-1.0/GCab-1.0.typelib @@ -76,6 +88,9 @@ Libraries, includes, etc. to compile with the gcab library. %{_libdir}/pkgconfig/libgcab-1.0.pc %changelog +* Sun Jul 17 2022 DengXiewei - 1.1-1.0.1 +- Add doc sub package + * Fri Feb 09 2018 Richard Hughes - 1.1-1 - New upstream release - Add git version in --version -- Gitee