[packages/darcs] subpackage docs

glen glen at pld-linux.org
Tue Jun 14 22:52:21 CEST 2016


commit 6d32792ef125b08461eadf315a9c772b587885d2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jun 14 23:52:12 2016 +0300

    subpackage docs

 darcs.spec | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/darcs.spec b/darcs.spec
index bd8b866..3c9af06 100644
--- a/darcs.spec
+++ b/darcs.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	tests		# build without tests
-#
+
 Summary:	David's Advanced Revision Control System - yet another replacement for CVS
 Summary(pl.UTF-8):	David's Advanced Revision Control System - jeszcze jeden zamiennik CVS-a
 Name:		darcs
@@ -43,6 +43,16 @@ Haskellu, dotychczas był używany na Linuksie, MacOS-ie X, FreeBSD,
 OpenBSD i Microsoft Windows. Darcs zawiera skrypt CGI, który może być
 używany do oglądania zawartości repozytorium.
 
+%package doc
+Summary:	Documentation for darcs
+Group:		Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description doc
+The documentation files that come with darcs.
+
 %package -n bash-completion-darcs
 Summary:	bash-completion for darcs
 Summary(pl.UTF-8):	bashowe uzupełnianie nazw dla darcsa
@@ -100,10 +110,13 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc NEWS README
-%doc %{name}-%{version}-doc/html
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
 
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/html/*
+
 %files -n bash-completion-darcs
 %defattr(644,root,root,755)
 %{_sysconfdir}/bash_completion.d/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/darcs.git/commitdiff/6d32792ef125b08461eadf315a9c772b587885d2



More information about the pld-cvs-commit mailing list