From 761800805279a22e6b8233c5116b64d9aaf2e04c Mon Sep 17 00:00:00 2001 From: Weisson Date: Mon, 18 Jul 2022 17:55:39 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Weisson --- libidn2.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libidn2.spec b/libidn2.spec index fd811a2..c334131 100644 --- a/libidn2.spec +++ b/libidn2.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: Library to support IDNA2008 internationalized domain names Name: libidn2 Version: 2.2.0 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} License: (GPLv2+ or LGPLv3+) and GPLv3+ URL: https://www.gnu.org/software/libidn/#libidn2 @@ -14,6 +15,8 @@ BuildRequires: gettext BuildRequires: libunistring-devel Provides: bundled(gnulib) +Requires: glibc + %description Libidn2 is an implementation of the IDNA2008 specifications in RFC 5890, 5891, 5892, 5893 and TR46 for internationalized domain names @@ -36,6 +39,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The idn2 package contains the idn2 command line tool for testing IDNA2008 conversions. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch0 -p1 -b .rpath @@ -72,7 +83,7 @@ make %{?_smp_mflags} -C tests check %{_libdir}/%{name}.so.* %files devel -%doc doc/%{name}.html examples +%doc examples %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %{_includedir}/*.h @@ -84,7 +95,13 @@ make %{?_smp_mflags} -C tests check %{_mandir}/man1/idn2.1* %{_infodir}/%{name}.info* +%files doc +%doc doc/%{name}.html + %changelog +* Fri Jul 15 2022 Weisson - 2.2.0-1.0.1 +- Add doc sub package + * Mon Jun 10 2019 Miroslav Lichvar 2.2.0-1 - Update to 2.2.0 (#1674201) - Drop obsolete scriptlets -- Gitee