From 673164c2b9ab8688320cb8657165d1a903f60e17 Mon Sep 17 00:00:00 2001 From: Weisson Date: Mon, 18 Jul 2022 11:44:36 +0800 Subject: [PATCH 1/2] spec: add doc sub package Signed-off-by: Weisson --- libtdb.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/libtdb.spec b/libtdb.spec index 1f47463..c5dd5e4 100644 --- a/libtdb.spec +++ b/libtdb.spec @@ -1,10 +1,11 @@ +%define anolis_release .0.1 %if 0%{?fedora} || 0%{?rhel} > 7 %global with_python3 1 %endif Name: libtdb Version: 1.4.4 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: The tdb library License: LGPLv3+ URL: http://tdb.samba.org/ @@ -26,6 +27,7 @@ BuildRequires: docbook-style-xsl BuildRequires: python3-devel %endif +Requires: glibc Provides: bundled(libreplace) Obsoletes: python2-tdb < 1.4.2-1 @@ -56,6 +58,14 @@ Requires: libtdb = %{version}-%{release} Python3 bindings for libtdb %endif +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -n tdb-%{version} -p1 @@ -77,7 +87,6 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_libdir}/libtdb.so.* %files devel -%doc docs/README %{_includedir}/tdb.h %{_libdir}/libtdb.so %{_libdir}/pkgconfig/tdb.pc @@ -101,7 +110,13 @@ make install DESTDIR=$RPM_BUILD_ROOT %ldconfig_scriptlets +%files doc +%doc docs/README + %changelog +* Fri Jul 15 2022 Weisson - 1.4.4-1.0.1 +- Add doc sub package + * Thu Nov 25 2021 Pavel Filipenský - 1.4.4-1 * resolves: rhbz#2013604 - Rebase to version 1.4.4 -- Gitee From 0c3106459ab31b5afa0a79bc3e83fb606543bd3b Mon Sep 17 00:00:00 2001 From: Weisson Date: Mon, 18 Jul 2022 18:10:24 +0800 Subject: [PATCH 2/2] spec: add requires and provides Signed-off-by: Weisson --- libtdb.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtdb.spec b/libtdb.spec index c5dd5e4..a3d451a 100644 --- a/libtdb.spec +++ b/libtdb.spec @@ -115,7 +115,7 @@ make install DESTDIR=$RPM_BUILD_ROOT %changelog * Fri Jul 15 2022 Weisson - 1.4.4-1.0.1 -- Add doc sub package +- Add requires and provides * Thu Nov 25 2021 Pavel Filipenský - 1.4.4-1 * resolves: rhbz#2013604 - Rebase to version 1.4.4 -- Gitee