[packages/mongodb] Remove duplicate header files in %install
jajcus
jajcus at pld-linux.org
Tue Oct 9 09:40:24 CEST 2012
commit 138c04db62fb0097c78627876d74c4a02b305010
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Oct 9 09:39:52 2012 +0200
Remove duplicate header files in %install
mongodb.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/mongodb.spec b/mongodb.spec
index 63a84ef..bf7aac3 100644
--- a/mongodb.spec
+++ b/mongodb.spec
@@ -178,6 +178,11 @@ cp -p debian/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
touch $RPM_BUILD_ROOT%{_var}/log/mongo/mongod.log
+# for some reason these are installed twice, remove unwanted copies
+for f in $RPM_BUILD_ROOT%{_includedir}/mongo/* ; do
+ rm -r "$RPM_BUILD_ROOT%{_includedir}/$(basename $f)"
+done
+
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mongodb.git/commitdiff/138c04db62fb0097c78627876d74c4a02b305010
More information about the pld-cvs-commit
mailing list