From 5768ff11c416fcc26db97d7cc7c6315f84531231 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 19 Apr 2013 12:49:13 +0200 Subject: [PATCH] Make package multilib clean Signed-off-by: Adam Tkac --- ldns.spec | 21 +++++++++++++++++++-- 1 file 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 - 1.6.16-3 +- make package multilib clean + * Thu Feb 14 2013 Fedora Release Engineering - 1.6.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild