[ldns] Make package multilib clean

Adam Tkac atkac at fedoraproject.org
Fri Apr 19 10:51:19 UTC 2013


commit 5768ff11c416fcc26db97d7cc7c6315f84531231
Author: Adam Tkac <atkac at redhat.com>
Date:   Fri Apr 19 12:49:13 2013 +0200

    Make package multilib clean
    
    Signed-off-by: Adam Tkac <atkac at redhat.com>

 ldns.spec |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/ldns.spec b/ldns.spec
index 1b99ca2..d3abdf0 100644
--- a/ldns.spec
+++ b/ldns.spec
@@ -8,7 +8,7 @@
 Summary: Low-level DNS(SEC) library with API
 Name: ldns
 Version: 1.6.16
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: BSD
 Url: http://www.nlnetlabs.nl/%{name}/
 Source: http://www.nlnetlabs.nl/downloads/%{name}/%{name}-%{version}.tar.gz
@@ -45,6 +45,15 @@ Requires: %{name} = %{version}-%{release}
 Python extensions for ldns
 %endif
 
+%package doc
+Summary: Documentation for the ldns library
+Group: Development/Libraries
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+This package contains documentation for the ldns library
+
 %prep
 %setup -q 
 # To built svn snapshots
@@ -81,6 +90,8 @@ rm -rf %{buildroot}
 make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install 
 make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install-doc
 
+# don't package xml files
+rm doc/*.xml
 # don't package building script for install-doc in doc section
 rm doc/doxyparse.pl
 #remove double set of man pages
@@ -110,7 +121,7 @@ rm -rf %{buildroot}
 %{_bindir}/ldns-config
 %dir %{_includedir}/ldns
 %{_includedir}/ldns/*.h
-%doc doc Changelog README
+%doc Changelog README
 
 %if %{with_python}
 %files python
@@ -118,11 +129,17 @@ rm -rf %{buildroot}
 %{python_sitearch}/*
 %endif
 
+%files doc
+%doc doc
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %changelog
+* Fri Apr 19 2013 Adam Tkac <atkac redhat com> - 1.6.16-3
+- make package multilib clean
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.16-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list