Resolves: #492447. Split documentation, use bash-doc package

This commit is contained in:
Roman Rakus 2009-03-30 11:57:53 +00:00
parent 4ec2ffbd59
commit b44dc2a3b9

View File

@ -3,7 +3,7 @@
Version: 4.0 Version: 4.0
Name: bash Name: bash
Summary: The GNU Bourne Again shell Summary: The GNU Bourne Again shell
Release: 4%{?dist} Release: 5%{?dist}
Group: System Environment/Shells Group: System Environment/Shells
License: GPLv2+ License: GPLv2+
Url: http://www.gnu.org/software/bash 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 incorporates useful features from the Korn shell (ksh) and the C shell
(csh). Most sh scripts can be run by bash without modification. (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 %prep
#%setup -q -a 2 #%setup -q -a 2
@ -192,6 +202,12 @@ done
%find_lang %{name} %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 %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -244,11 +260,6 @@ fi
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %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* %config(noreplace) /etc/skel/.b*
/bin/sh /bin/sh
/bin/bash /bin/bash
@ -257,10 +268,18 @@ fi
%{_mandir}/*/* %{_mandir}/*/*
%{_mandir}/*/..1* %{_mandir}/*/..1*
%files doc
%defattr(-, root, root)
%doc %{pkgdocdir}
# For now there isn't any doc # For now there isn't any doc
#%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
%changelog %changelog
* Mon Mar 30 2009 Roman Rakus <rrakus@redhat.com> - 4.0-5
- Split documentation, use bash-doc package
Resolves: #492447
* Sat Mar 21 2009 Lubomir Rintel <lkundrak@v3.sk> - 4.0-4 * Sat Mar 21 2009 Lubomir Rintel <lkundrak@v3.sk> - 4.0-4
- Add full URLs to upstream patches - Add full URLs to upstream patches
- Don't uselessly use %%version macro - Don't uselessly use %%version macro