From 284e0f1f973356590736b74491a8a223abf2fd43 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Mon, 18 Jul 2022 19:08:59 +0800 Subject: [PATCH] spec: add doc sub package --- libdvdnav.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/libdvdnav.spec b/libdvdnav.spec index baef184..4dfff64 100644 --- a/libdvdnav.spec +++ b/libdvdnav.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: libdvdnav Version: 5.0.3 -Release: 8%{?dist} +Release: 8%{anolis_release}%{?dist} Summary: A library for reading DVD video discs based on Ogle code License: GPLv2+ URL: http://dvdnav.mplayerhq.hu/ @@ -22,6 +23,15 @@ Requires: pkgconfig libdvdnav-devel contains the files necessary to build packages that use the libdvdnav library. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} + %prep %setup -q @@ -37,6 +47,7 @@ popd %{__make} install DESTDIR=%{buildroot} rm %{buildroot}%{_libdir}/libdvdnav.la rm %{buildroot}%{_pkgdocdir}/{COPYING,TODO} +rm %{buildroot}%{_pkgdocdir}/{AUTHORS,ChangeLog,README} %post -p /sbin/ldconfig @@ -44,7 +55,6 @@ rm %{buildroot}%{_pkgdocdir}/{COPYING,TODO} %files %license COPYING -%doc AUTHORS ChangeLog README %{_libdir}/libdvdnav.so.* %files devel @@ -53,7 +63,13 @@ rm %{buildroot}%{_pkgdocdir}/{COPYING,TODO} %{_includedir}/dvdnav %{_libdir}/pkgconfig/dvdnav.pc +%files doc +%doc AUTHORS ChangeLog README + %changelog +* Fri Jul 15 2022 Chang Gao - 5.0.3-8.0.1 +- Add doc sub package + * Wed Feb 07 2018 Fedora Release Engineering - 5.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee