From b44dc2a3b9f256b6d924b86eab037a9d8d02c850 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Mon, 30 Mar 2009 11:57:53 +0000 Subject: [PATCH] Resolves: #492447. Split documentation, use bash-doc package --- bash.spec | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/bash.spec b/bash.spec index 7ede08a..998c1d7 100644 --- a/bash.spec +++ b/bash.spec @@ -3,7 +3,7 @@ Version: 4.0 Name: bash Summary: The GNU Bourne Again shell -Release: 4%{?dist} +Release: 5%{?dist} Group: System Environment/Shells License: GPLv2+ Url: http://www.gnu.org/software/bash @@ -64,6 +64,16 @@ interpreter that is compatible with the Bourne shell (sh). Bash incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification. +%package doc +Summary: Documentation files for %{name} +Group: Development/Languages +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains documentation files for %{name}. + +%define pkgdocdir %{_datadir}/doc/%{name}-%{version} + %prep #%setup -q -a 2 @@ -192,6 +202,12 @@ done %find_lang %{name} +# copy doc to /usr/share/doc +mkdir -p $RPM_BUILD_ROOT/%{pkgdocdir} +for file in CHANGES COMPAT NEWS NOTES POSIX doc examples +do + cp -r "$file" $RPM_BUILD_ROOT/%{pkgdocdir} +done %clean rm -rf $RPM_BUILD_ROOT @@ -244,11 +260,6 @@ fi %files -f %{name}.lang %defattr(-,root,root) -%doc CHANGES COMPAT NEWS NOTES POSIX -%doc doc/FAQ doc/INTRO doc/article.ms -%doc -P examples/obashdb/ examples/functions/ examples/misc/ -%doc -P examples/scripts.noah/ examples/scripts.v2/ examples/scripts/ -%doc -P examples/startup-files/ examples/complete/ %config(noreplace) /etc/skel/.b* /bin/sh /bin/bash @@ -257,10 +268,18 @@ fi %{_mandir}/*/* %{_mandir}/*/..1* +%files doc +%defattr(-, root, root) +%doc %{pkgdocdir} + # For now there isn't any doc #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Mon Mar 30 2009 Roman Rakus - 4.0-5 +- Split documentation, use bash-doc package + Resolves: #492447 + * Sat Mar 21 2009 Lubomir Rintel - 4.0-4 - Add full URLs to upstream patches - Don't uselessly use %%version macro