From 12bf724d960b50e6fef845fe73ed46f3ff7e880d Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Tue, 19 Jul 2022 11:41:33 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- libshout.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libshout.spec b/libshout.spec index 498ea08..7f5769c 100644 --- a/libshout.spec +++ b/libshout.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: libshout Version: 2.2.2 -Release: 19%{?dist} +Release: 19%{anolis_release}%{?dist} Summary: Icecast source streaming library Group: System Environment/Libraries @@ -37,6 +39,14 @@ The libshout-devel package contains the header files needed for developing applications that send data to an icecast server. Install libshout-devel if you want to develop applications using libshout. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch0 -p1 -b .fix_speex @@ -67,7 +77,6 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc COPYING NEWS README %{_libdir}/libshout.so.* %files devel @@ -79,7 +88,13 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/shout/shout.h %{_datadir}/aclocal/shout.m4 +%files doc +%doc COPYING NEWS README + %changelog +* Tue Jul 19 2022 DengXiewei - 2.2.2-19.0.1 +- Add doc sub package + * Fri Jul 27 2018 Jaroslav Škarvada - 2.2.2-19 - Dropped unused libshout.autotools patch -- Gitee