From ddbd7e7af7b7bb97c09c34fef1c0c66ed82b07cd Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Sat, 16 Jul 2022 17:01:29 +0800 Subject: [PATCH 1/2] spec: add doc sub package --- check.spec | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/check.spec b/check.spec index a631510..fee4b3f 100644 --- a/check.spec +++ b/check.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: check Version: 0.12.0 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: A unit test framework for C Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz License: LGPLv2+ @@ -19,6 +20,8 @@ BuildRequires: texinfo Requires(post): info Requires(preun): info +Requires: glibc + %description Check is a unit test framework for C. It features a simple interface for defining unit tests, putting little in the way of the developer. Tests @@ -50,6 +53,26 @@ Requires: %{name} = %{version}-%{release} The checkmk binary translates concise versions of test suites into C programs suitable for use with the Check unit test framework. +%package checkmk-doc +Summary: Documents for checkmk +BuildArch: noarch +Requires: checkmk = %{version}-%{release} + + +%description checkmk-doc +Doc pages for checkmk + + +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} + + %prep %setup -q %if 0%{?fedora} @@ -109,7 +132,6 @@ if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then fi %files -%doc AUTHORS ChangeLog %license COPYING.LESSER %{_libdir}/libcheck.so.* %{_infodir}/check* @@ -128,12 +150,21 @@ fi %{_libdir}/libcheck.a %files checkmk -%doc checkmk/README checkmk/examples +%doc checkmk/examples %doc checkmk/test %{_bindir}/checkmk %{_mandir}/man1/checkmk.1* +%files doc +%doc AUTHORS ChangeLog + +%files checkmk-doc +%doc checkmk/README + %changelog +* Fri Jul 15 2022 Chang Gao - 0.12.0-2.0.1 +- Add doc sub package + * Mon Jun 25 2018 Petr Viktorin - 0.12.0-2 - Build without subunit support -- Gitee From 2e9a00c4f5dbe33f455128ca3e148a085438705e Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Sat, 16 Jul 2022 18:34:00 +0800 Subject: [PATCH 2/2] spec: add doc sub package --- check.spec | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/check.spec b/check.spec index fee4b3f..7768ca5 100644 --- a/check.spec +++ b/check.spec @@ -53,16 +53,6 @@ Requires: %{name} = %{version}-%{release} The checkmk binary translates concise versions of test suites into C programs suitable for use with the Check unit test framework. -%package checkmk-doc -Summary: Documents for checkmk -BuildArch: noarch -Requires: checkmk = %{version}-%{release} - - -%description checkmk-doc -Doc pages for checkmk - - %package doc Summary: Documents for %{name} BuildArch: noarch @@ -157,8 +147,6 @@ fi %files doc %doc AUTHORS ChangeLog - -%files checkmk-doc %doc checkmk/README %changelog -- Gitee