[packages/python-selenium] - remove unneeded binaries - rel 2
baggins
baggins at pld-linux.org
Wed Apr 17 11:55:08 CEST 2013
commit de91504e2c0750265494aaf145ee3090b89561dd
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Apr 17 11:54:54 2013 +0200
- remove unneeded binaries
- rel 2
python-selenium.spec | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/python-selenium.spec b/python-selenium.spec
index 2462b42..3e4cd19 100644
--- a/python-selenium.spec
+++ b/python-selenium.spec
@@ -6,7 +6,7 @@
Summary: Python bindings for selenium
Name: python-%{module}
Version: 2.31.0
-Release: 1
+Release: 2
License: BSD-like
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}%{_rc}.tar.gz
@@ -51,6 +51,18 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}/iceweasel/extensions/fxdriver at googlecode.com
unzip $RPM_BUILD_DIR/%{module}-%{version}%{_rc}/py/selenium/webdriver/firefox/webdriver.xpi -d $RPM_BUILD_ROOT%{_libdir}/iceweasel/extensions/fxdriver at googlecode.com
+# remove windows binaries
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/iceweasel/extensions/fxdriver at googlecode.com/platform/WINNT_x86-msvc
+# remove binaries for incorrect arch
+%ifnarch %{x8664}
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/iceweasel/extensions/fxdriver at googlecode.com/platform/Linux_x86_64-gcc3
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/webdriver/firefox/amd64
+%endif
+%ifnarch %{ix86}
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/iceweasel/extensions/fxdriver at googlecode.com/platform/Linux_x86-gcc3
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/webdriver/firefox/x86
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-selenium.git/commitdiff/de91504e2c0750265494aaf145ee3090b89561dd
More information about the pld-cvs-commit
mailing list