[packages/bbe] Clean docdir before processing %files
megabajt
megabajt at pld-linux.org
Fri Feb 15 21:03:18 CET 2013
commit 0ffb89f47b9cc5bee2aa579569d5912f4a3242ce
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date: Fri Feb 15 21:02:04 2013 +0100
Clean docdir before processing %files
bbe.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/bbe.spec b/bbe.spec
index 1b5cd8d..9b752d9 100644
--- a/bbe.spec
+++ b/bbe.spec
@@ -42,12 +42,15 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT \
htmldir=%{_docdir}/%{name}-%{version}
+# clean docdir
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog
%attr(755,root,root) %{_bindir}/bbe
%{_mandir}/man1/bbe.*
%{_infodir}/bbe.*
-
-%clean
-rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bbe.git/commitdiff/0ffb89f47b9cc5bee2aa579569d5912f4a3242ce
More information about the pld-cvs-commit
mailing list