From 60d1ae0512351b5529b3944f70ca3dd37c785541 Mon Sep 17 00:00:00 2001 From: Zhao Hang Date: Tue, 19 Jul 2022 15:32:55 +0800 Subject: [PATCH] spec: add doc sub package Signed-off-by: Zhao Hang --- libldb.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/libldb.spec b/libldb.spec index ac0c707..dbb8f60 100644 --- a/libldb.spec +++ b/libldb.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %if ((0%{?fedora} || 0%{?rhel} > 7 || 0%{?epel} > 6)) # lmdb is not supported on 32 bit architectures @@ -25,7 +27,7 @@ Name: libldb Version: 2.4.1 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: A schema-less, ldap like, API and database Requires: libtalloc%{?_isa} >= %{talloc_version} Requires: libtdb%{?_isa} >= %{tdb_version} @@ -123,6 +125,14 @@ Development files for the Python bindings for the LDB library #endif with python %endif +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} - %autosetup -n ldb-%{version} -p1 @@ -221,7 +231,13 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* #endif with python %endif +%files doc +%doc README_gcov.txt + %changelog +* Tue Jul 19 2022 Zhao Hang - 2.4.1-1.0.1 +- Add doc sub package + * Thu Nov 25 2021 Pavel Filipenský - 2.4.1-1 - resolves: rhbz#2013605 - Rebase to version 2.4.1 -- Gitee