From 4457dca261d63107116336be4249c326c49c3b82 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:28:11 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Socket.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Socket.spec b/perl-Socket.spec index 276e6c3..ce82562 100644 --- a/perl-Socket.spec +++ b/perl-Socket.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Name: perl-Socket Epoch: 4 Version: 2.027 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Networking constants and support functions License: GPL+ or Artistic URL: http://search.cpan.org/dist/Socket/ @@ -42,6 +44,14 @@ socket(), setsockopt() and bind(). It also provides several other support functions, mostly for dealing with conversions of network addresses between human-readable and native binary forms, and for hostname resolver operations. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Socket-%{version} %patch0 -p1 @@ -60,12 +70,17 @@ make test %files %license Artistic Copying LICENSE -%doc Changes %{perl_vendorarch}/auto/* %{perl_vendorarch}/Socket* %{_mandir}/man3/* +%files doc +%doc Changes + %changelog +* Tue Jul 19 2022 Liwei Ge - 4:2.027-3.0.1 +- Add doc sub package + * Mon Apr 15 2019 Petr Pisar - 4:2.027-3 - Make Socket::inet_aton() thread safe (bug #1699793) -- Gitee