From 5c40df9005f9f2717929597799fbb3c04fb033ec7aae5f6e8591b7649b4188b7 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 2 Feb 2014 06:35:06 +0000 Subject: [PATCH] Accepting request 220443 from devel:tools:scm - Put additional documentation formats (~8 MB) into a separate subpackage (forwarded request 220426 from jengelh) OBS-URL: https://build.opensuse.org/request/show/220443 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=129 --- git.changes | 6 ++++++ git.spec | 30 +++++++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/git.changes b/git.changes index c3d6691..d7387c6 100644 --- a/git.changes +++ b/git.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 30 15:03:34 UTC 2014 - jengelh@inai.de + +- Put additional documentation formats (~8 MB) into a separate + subpackage + ------------------------------------------------------------------- Tue Jan 14 15:19:17 UTC 2014 - iartarisi@suse.com diff --git a/git.spec b/git.spec index fdeccd6..4d3725a 100644 --- a/git.spec +++ b/git.spec @@ -90,6 +90,21 @@ full access to internals. These are the core tools with minimal dependencies. +%package doc +Summary: Documentation for the Git version control system +Group: Documentation/HTML +%if 0%{?suse_version} >= 1210 +BuildArch: noarch +%endif + +%description doc +Git is a fast, scalable, distributed revision control system with an +unusually rich command set that provides both high-level operations and +full access to internals. + +This subpackage contains Git's documentation in text/plain and +text/html formats. (The manpages are in the main package.) + %package svn Summary: Git tools for importing Subversion repositories Group: Development/Tools/Version Control @@ -281,6 +296,11 @@ if ! test -f $RPM_BUILD_ROOT%{gitexecdir}/git-add; then echo "git-add is not a regular file, apparmor profile won't work!" >&2 exit 1 fi + +mkdir -p "%buildroot/%_docdir/git" +cp -a README COPYING Documentation/*.txt "%buildroot/%_docdir/git/" +%{!?_without_docs: cp -a Documentation/*.html "%buildroot/%_docdir/git/"} + %find_lang %{name} cat %{name}.lang >>bin-man-doc-files # use symlinks instead of hardlinks in sub-commands @@ -306,7 +326,13 @@ fi %files %defattr(-,root,root) -%doc README +%dir %_docdir/%name +%_docdir/%name/README + +%files doc +%defattr(-,root,root) +%_docdir/%name/ +%exclude %_docdir/%name/README %files svn %defattr(-,root,root) @@ -378,8 +404,6 @@ fi %{_datadir}/git-core/ %dir %{gitexecdir} %dir %{gitexecdir}/mergetools -%doc README COPYING Documentation/*.txt -%{!?_without_docs: %doc Documentation/*.html } %if 0%{?suse_version} < 1140 /var/adm/perl-modules/%{name} %endif