From 1bc593b61a0a0d01ef0aa5bf0eaa031a7f072ef2 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sat, 8 Oct 2022 10:11:27 +0800 Subject: [PATCH] add doc package --- librepo.spec | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/librepo.spec b/librepo.spec index 96c7df2..cee0167 100644 --- a/librepo.spec +++ b/librepo.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %undefine __cmake_in_source_build @@ -24,15 +24,23 @@ BuildRequires: libcurl-devel BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libcrypto) BuildRequires: pkgconfig(openssl) -Requires: libcurl%{?_isa} +Requires: libcurl %description A library providing C and Python (libcURL like) API to downloading repository metadata. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package devel Summary: Repodata downloading library -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel Development files for librepo. @@ -45,7 +53,7 @@ BuildRequires: python3-gpg BuildRequires: python3-pyxattr BuildRequires: python3-requests BuildRequires: python3-sphinx -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} Conflicts: python3-dnf < %{dnf_conflict} %description -n python3-%{name} @@ -66,9 +74,11 @@ Python 3 bindings for the librepo library. %files %license COPYING -%doc README.md %{_libdir}/%{name}.so.* +%files doc +%doc README.md + %files devel %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc @@ -78,5 +88,8 @@ Python 3 bindings for the librepo library. %{python3_sitearch}/%{name}/ %changelog +* Sat Oct 08 2022 mgb01105731 - 1.14.2-2 +- add doc package + * Wed Mar 02 2022 Su Lifan - 1.14.2-1 - Initial packaging for Anolis OS 23 -- Gitee