[gdcm] Exclude documentation files from base package

sebp sebp at fedoraproject.org
Mon Aug 4 17:41:49 UTC 2014


commit 5923b4b21c9fa4924c7529d121d336ebc6cc145e
Author: Sebastian Pölsterl <poelster at in.tum.de>
Date:   Mon Aug 4 13:41:43 2014 -0400

    Exclude documentation files from base package

 gdcm.spec |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/gdcm.spec b/gdcm.spec
index 58eb931..0669ad8 100644
--- a/gdcm.spec
+++ b/gdcm.spec
@@ -6,7 +6,7 @@
 
 Name:		gdcm
 Version:	2.4.3
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Grassroots DiCoM is a C++ library to parse DICOM medical files
 Group:		System Environment/Libraries
 License:	BSD
@@ -58,8 +58,8 @@ supported)
 
 %package	doc
 Summary:	Includes html documentation for gdcm
-Group:         Documentation
-BuildArch:     noarch
+Group:		Documentation
+BuildArch:	noarch
 
 %description doc
 You should install the gdcm-doc package if you would like to
@@ -75,10 +75,10 @@ Requires:	%{name}%{?_isa} = %{version}-%{release}
 You should install the gdcm-devel package if you would like to
 compile applications based on gdcm
 
-%package        examples
-Summary:        CSharp, C++, Java, PHP and Python example programs for GDCM
-Group:          Development/Languages
-Requires:       %{name}%{?_isa} = %{version}-%{release}
+%package	examples
+Summary:	CSharp, C++, Java, PHP and Python example programs for GDCM
+Group:		Development/Languages
+Requires:	%{name}%{?_isa} = %{version}-%{release}
 
 %description examples
 GDCM examples
@@ -238,17 +238,16 @@ make test -C %{_target_platform} || exit 0
 
 
 %files
-%dir %{_docdir}/%{name}
-%doc Copyright.txt
-%{_mandir}/man1/*.1*
+%doc AUTHORS Copyright.txt README.Copyright.txt README.txt
+%doc %{_mandir}/man1/*.1*
 %{_bindir}/*
 %{_libdir}/*.so.*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/XML/
+%exclude %{_docdir}/%{name}/html/
 
 %files doc
-%{_docdir}/%{name}/
-%doc AUTHORS Copyright.txt README.Copyright.txt README.txt
+%doc %{_docdir}/%{name}/html/
 
 %files devel
 %{_includedir}/%{name}/
@@ -265,6 +264,9 @@ make test -C %{_target_platform} || exit 0
 %{python3_sitearch}/*
 
 %changelog
+* Mon Aug 04 2014 Sebastian Pölsterl <sebp at k-d-w.org> - 2.4.3-2
+- Exclude documentation files from base package
+
 * Mon Aug 04 2014 Sebastian Pölsterl <sebp at k-d-w.org> - 2.4.3-1
 - Update to 2.4.3
 


More information about the scm-commits mailing list