From 204fa5ed7d5c1b2ff11802e5b14220f142611190 Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Tue, 19 Jul 2022 11:24:40 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- librepo.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/librepo.spec b/librepo.spec index e2c0caf..18b048f 100644 --- a/librepo.spec +++ b/librepo.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %global libcurl_version 7.52.0 %undefine __cmake_in_source_build @@ -12,7 +14,7 @@ Name: librepo Version: 1.14.2 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Repodata downloading library License: LGPLv2+ @@ -62,6 +64,14 @@ Conflicts: python3-dnf < %{dnf_conflict} %description -n python3-%{name} Python 3 bindings for the librepo library. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 @@ -84,7 +94,6 @@ Python 3 bindings for the librepo library. %files %license COPYING -%doc README.md %{_libdir}/%{name}.so.* %files devel @@ -95,7 +104,13 @@ Python 3 bindings for the librepo library. %files -n python3-%{name} %{python3_sitearch}/%{name}/ +%files doc +%doc README.md + %changelog +* Tue Jul 19 2022 DengXiewei - 1.14.2-1.0.1 +- Add doc sub package + * Tue Nov 09 2021 Pavla Kratochvilova - 1.14.2-1 - Update to 1.14.2 - Reduce time to load metadata -- Gitee