From 3f9f6eabfb0e2cac316af4f78465b2039e82cbf8 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sat, 16 Jul 2022 09:48:01 +0800 Subject: [PATCH] Add doc sub package --- bison.spec | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/bison.spec b/bison.spec index 87b1c82..4876cbb 100644 --- a/bison.spec +++ b/bison.spec @@ -1,7 +1,8 @@ +%define anolis_release .0.1 Summary: A GNU general-purpose parser generator Name: bison Version: 3.0.4 -Release: 10%{?dist} +Release: 10%{anolis_release}%{?dist} License: GPLv3+ Group: Development/Tools Source: ftp://ftp.gnu.org/pub/gnu/bison/bison-%{version}.tar.xz @@ -30,6 +31,9 @@ Requires(preun): /sbin/install-info # https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Exceptions Provides: bundled(gnulib) +Requires: glibc +Provides: /usr/bin/bison + %description Bison is a general purpose parser generator that converts a grammar description for an LALR(1) context-free grammar into a C program to @@ -45,6 +49,15 @@ development. If your system will be used for C development, you should install Bison. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: -ly library for development using Bison-generated parsers Group: Development/Libraries @@ -124,7 +137,6 @@ fi # when the target parser file is generated. %files -f %{name}.lang %defattr(-,root,root) -%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING %{_mandir}/*/bison* %{_datadir}/bison %{_infodir}/bison.info* @@ -139,10 +151,16 @@ fi %defattr(-,root,root) %{_libdir}/liby.a +%files doc +%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING + %clean rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jul 15 2022 mgb01105731 - 3.0.4-10.0.1 +- Add doc sub package + * Sun Aug 05 2018 Patsy Griffin Franklin - 3.0.4-10 - Add changes needed to gnulib fseterr.c since libio.h has been removed. -- Gitee