From d1aea3f345d469ed01dfd48683616ee8524c9f43 Mon Sep 17 00:00:00 2001 From: Weisson Date: Mon, 18 Jul 2022 14:07:16 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Weisson --- libtheora.spec | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/libtheora.spec b/libtheora.spec index 3df8af7..a1032f0 100644 --- a/libtheora.spec +++ b/libtheora.spec @@ -1,11 +1,12 @@ # enable bootstrap mode (e.g. disables doc generation) #global bootstrap 1 +%define anolis_release .0.1 Name: libtheora Epoch: 1 Version: 1.1.1 -Release: 21%{?dist} +Release: 21%{anolis_release}%{?dist} Summary: Theora Video Compression Codec License: BSD URL: http://www.theora.org @@ -26,6 +27,9 @@ BuildRequires: doxygen BuildRequires: tetex-latex transfig %endif +Requires: libogg +Requires: glibc + %description Theora is Xiph.Org's first publicly released video codec, intended for use within the Ogg's project's Ogg multimedia streaming system. @@ -68,6 +72,13 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} The theora-tools package contains simple command line tools for use with theora bitstreams. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description doc +Doc pages for %{name}. %prep %setup -q @@ -111,7 +122,6 @@ install -m 755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora %files -%doc README COPYING %{_libdir}/*.so.* %files devel @@ -121,15 +131,20 @@ install -m 755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora %if ! 0%{?bootstrap} %files devel-docs -%doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf -%doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt %endif %files -n theora-tools %{_bindir}/* +%files doc +%doc README COPYING +%doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf +%doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt %changelog +* Fri Jul 15 2022 Weisson - 1:1.1.1-21.0.1 +- Add requires and provides + * Wed Feb 07 2018 Fedora Release Engineering - 1:1.1.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee