From dee77a51c4f1a83d3d622341f8fd059599893c82 Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Tue, 19 Jul 2022 14:33:27 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Zhao Hang --- libvisual.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/libvisual.spec b/libvisual.spec index f149527..d75a48c 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + %global smallversion 0.4 Name: libvisual Version: 0.4.0 -Release: 25%{?dist} +Release: 25%{anolis_release}%{?dist} Epoch: 1 Summary: Abstraction library for audio visualisation plugins Group: Applications/Multimedia @@ -39,6 +41,15 @@ audio visualisation plugins. This package contains the files needed to build an application with libvisual. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch0 -p1 -b .altivec-detection @@ -101,18 +112,22 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' %postun -p /sbin/ldconfig %files -f %{name}-%{smallversion}.lang -%doc AUTHORS ChangeLog NEWS README TODO %license COPYING %{_libdir}/*.so.* %files devel -%doc README NEWS TODO AUTHORS %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/%{name}-%{smallversion} +%files doc +%doc AUTHORS ChangeLog NEWS README TODO + %changelog +* Tue Jul 19 2022 Zhao Hang - 1:0.4.0-25.0.1 +- Add doc sub package + * Fri Jan 15 2021 Kalev Lember - 1:0.4.0-25 - Fix multilib conflicts in lvconfig.h - Resolves: #1853155 -- Gitee