rpms/bash/devel bash.spec,1.178,1.179

Roman Rakus rrakus at fedoraproject.org
Mon Mar 30 11:58:25 UTC 2009


Author: rrakus

Update of /cvs/extras/rpms/bash/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21448

Modified Files:
	bash.spec 
Log Message:
Resolves: #492447. Split documentation, use bash-doc package


Index: bash.spec
===================================================================
RCS file: /cvs/extras/rpms/bash/devel/bash.spec,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -r1.178 -r1.179
--- bash.spec	21 Mar 2009 16:34:23 -0000	1.178
+++ bash.spec	30 Mar 2009 11:57:53 -0000	1.179
@@ -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 @@
 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 @@
 
 %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 @@
 
 %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 @@
 %{_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 <rrakus at redhat.com> - 4.0-5
+- Split documentation, use bash-doc package
+  Resolves: #492447
+
 * Sat Mar 21 2009 Lubomir Rintel <lkundrak at v3.sk> - 4.0-4
 - Add full URLs to upstream patches
 - Don't uselessly use %%version macro




More information about the fedora-extras-commits mailing list