From ff15750c3f8a25ca34269ed5d3c3c95ff29e1654 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 15 Jul 2022 18:03:58 +0800 Subject: [PATCH] Add doc sub package --- bc.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/bc.spec b/bc.spec index 1c071ac..09db82d 100644 --- a/bc.spec +++ b/bc.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: GNU's bc (a numeric processing language) and dc (a calculator) Name: bc Version: 1.07.1 -Release: 5%{?dist} +Release: 5%{anolis_release}%{?dist} License: GPLv2+ URL: http://www.gnu.org/software/bc/ Source: http://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz @@ -10,6 +11,8 @@ Patch2: bc-1.06.95-doc.patch Requires(post): /sbin/install-info Requires(preun): /sbin/install-info BuildRequires: readline-devel, flex, bison, texinfo, ed +Requires: glibc +Provides: /usr/bin/bc %description The bc package includes bc and dc. Bc is an arbitrary precision @@ -20,6 +23,15 @@ text mode calculator. Install the bc package if you need its number handling capabilities or if you would like to use its text mode calculator. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 @@ -49,13 +61,18 @@ fi %files %license COPYING COPYING.LIB -%doc FAQ AUTHORS NEWS README Examples/ %{_bindir}/dc %{_bindir}/bc %{_mandir}/*/* %{_infodir}/* +%files doc +%doc FAQ AUTHORS NEWS README Examples/ + %changelog +* Fri Jul 15 2022 mgb01105731 - 1.07.1-5.0.1 +- Add doc sub package + * Wed Feb 07 2018 Fedora Release Engineering - 1.07.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -- Gitee