changeset 207:2d8690ba9693

more changes for packaging, %doc seems to remove the doc directory before copying the files
author Carl Byington <carl@five-ten-sg.com>
date Wed, 05 Mar 2008 00:12:00 -0800
parents e9c05e8460b0
children ec5cb59a7368
files dnsbl.spec.in
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dnsbl.spec.in	Tue Mar 04 23:51:01 2008 -0800
+++ b/dnsbl.spec.in	Wed Mar 05 00:12:00 2008 -0800
@@ -54,8 +54,10 @@
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d
-mkdir -p %{buildroot}/var/run/%{name}
+mv -f AUTHORS COPYING ChangeLog NEWS README         $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autowhite
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/.spamassassin
 
@@ -87,9 +89,7 @@
 %{_sbindir}/*
 %{_mandir}/man1/*
 %{_mandir}/man5/*
-%doc AUTHORS COPYING ChangeLog NEWS README
 %docdir %{_datadir}/doc/%{name}-%{version}
-%doc %{_datadir}/doc/%{name}-%{version}/*
 %config(noreplace) %attr(0750,%{name},root) %{_sysconfdir}/%{name}
 /etc/rc.d/init.d/%{name}
 %dir %attr(0750,%{name},root) /var/run/%{name}