From c9568cc25a265972b85bb695c6470ea5bc7298c8 Mon Sep 17 00:00:00 2001 From: HangBo Fan Date: Mon, 18 Jul 2022 14:21:55 +0800 Subject: [PATCH] spec: add doc sub package --- trousers.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/trousers.spec b/trousers.spec index f3502d4..b8ecea0 100644 --- a/trousers.spec +++ b/trousers.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Name: trousers Summary: TCG's Software Stack v1.2 Version: 0.3.15 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} License: BSD Group: System Environment/Libraries Url: http://trousers.sourceforge.net @@ -21,6 +22,9 @@ Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Requires: %{name}-lib%{?_isa} = %{version}-%{release} +Requires: glibc + +Provides: /usr/sbin/tcsd %description TrouSerS is an implementation of the Trusted Computing Group's Software Stack @@ -58,6 +62,14 @@ Requires: %{name}-lib%{?_isa} = %{version}-%{release} Header files and man pages for use in creating Trusted Computing enabled applications. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 # fix man page paths @@ -101,7 +113,6 @@ exit 0 %postun lib -p /sbin/ldconfig %files -%doc README ChangeLog %{_sbindir}/tcsd %config(noreplace) %attr(0640, root, tss) %{_sysconfdir}/tcsd.conf %{_mandir}/man5/* @@ -126,7 +137,13 @@ exit 0 # The only static library shipped by trousers, the TDDL %{_libdir}/libtddl.a +%files doc +%doc README ChangeLog + %changelog +* Mon Jul 18 2022 Hangbo Fan - 0.3.15-1.0.1 +- Add doc sub package + * Fri Nov 06 2020 Jerry Snitselaar - 0.3.15-1 - Rebase to 0.3.15 - Fix CVE-2020-24330 CVE-2020-24331 CVE-2020-24332 -- Gitee