[packages/gnuradio] remove installed py files when any of py[co] is also available
gotar
gotar at pld-linux.org
Thu Jan 9 09:08:08 CET 2014
commit 400a761397b2b0b3b6084298b866cf77297bda0a
Author: Tomasz Pala <gotar at pld-linux.org>
Date: Thu Jan 9 09:07:34 2014 +0100
remove installed py files when any of py[co] is also available
gnuradio.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gnuradio.spec b/gnuradio.spec
index 646f8e1..a8cdcac 100644
--- a/gnuradio.spec
+++ b/gnuradio.spec
@@ -134,6 +134,8 @@ rm -rf inst-doc
install -d inst-doc
mv $RPM_BUILD_ROOT%{_docdir}/gnuradio-*/* inst-doc
+find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -execdir sh -c '[ -f {}c -o -f {}o ] && %{__rm} -f {}' \;
+
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnuradio.git/commitdiff/400a761397b2b0b3b6084298b866cf77297bda0a
More information about the pld-cvs-commit
mailing list