diff --git a/libidn2.spec b/libidn2.spec index fd811a27c7a0520c2d5080e815768eb4f3041413..c334131e75d76af6c3e1ba7e3067a7fa5eb4f176 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