From 57d5f9fced7997847fef2b728589b5ea1adafd61 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:50:04 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Text-Diff.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Text-Diff.spec b/perl-Text-Diff.spec index cd8141e..ea4187e 100644 --- a/perl-Text-Diff.spec +++ b/perl-Text-Diff.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: perl-Text-Diff Version: 1.45 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: Perform diffs on files and record sets License: (GPL+ or Artistic) and (GPLv2+ or Artistic) and MIT Group: Development/Libraries @@ -39,6 +41,14 @@ integrated with Perl and available on all platforms. It is often faster than shelling out to a system's diff executable for small files, and generally slower on larger files. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Text-Diff-%{version} @@ -55,11 +65,16 @@ make test %files %license LICENSE -%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1.45-2.0.1 +- Add doc sub package + * Fri Feb 09 2018 Fedora Release Engineering - 1.45-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee