From 5ff3820b54500d93de7a316fa0574e319c1ffa34 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Sat, 16 Jul 2022 09:31:49 +0800 Subject: [PATCH] spec: add doc sub package --- yelp.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/yelp.spec b/yelp.spec index 65e98f8..3b75e36 100644 --- a/yelp.spec +++ b/yelp.spec @@ -1,9 +1,10 @@ +%define anolis_release .0.1 %global _changelog_trimtime %(date +%s -d "1 year ago") Name: yelp Epoch: 2 Version: 3.28.1 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Help browser for the GNOME desktop Group: Applications/System @@ -52,6 +53,8 @@ BuildRequires: intltool BuildRequires: itstool Requires: yelp-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: yelp-xsl +Requires: glibc +Provides: /usr/bin/yelp %description @@ -76,6 +79,13 @@ Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} This package contains header files and documentation for the libraries in the yelp-libs package. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description doc +Doc pages for %{name}. %prep %autosetup -p1 @@ -102,7 +112,6 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/yelp.desktop %ldconfig_scriptlets libs %files -f %{name}.lang -%doc AUTHORS NEWS README %license COPYING %{_bindir}/* %{_datadir}/applications/yelp.desktop @@ -122,8 +131,13 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/yelp.desktop %{_includedir}/libyelp %{_datadir}/gtk-doc +%files doc +%doc AUTHORS NEWS README %changelog +* Fri Jul 15 2022 Liwei Ge - 2:3.28.1-3.0.1 +- Add doc sub package + * Mon Oct 15 2018 Tomas Popela - 2:3.28.1-3 - Add the Quit entry to the app menu - Handle Ctrl+Q shortcut for quitting the application -- Gitee