[packages/python-selenium] - updated binary cleanup - rel 2

baggins baggins at pld-linux.org
Tue Aug 25 15:59:51 CEST 2015


commit 4a2fc600126654c09451c5573b0524a9a796dc1a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Aug 25 22:59:23 2015 +0900

    - updated binary cleanup
    - rel 2

 python-selenium.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/python-selenium.spec b/python-selenium.spec
index 6e0cdd2..21c6dd3 100644
--- a/python-selenium.spec
+++ b/python-selenium.spec
@@ -13,7 +13,7 @@
 Summary:	Python bindings for selenium
 Name:		python-%{module}
 Version:	2.47.1
-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
@@ -99,12 +99,22 @@ unzip $RPM_BUILD_DIR/%{module}-%{version}%{_rc}/py/selenium/webdriver/firefox/we
 # remove binaries for incorrect arch
 %ifnarch %{x8664}
 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/iceweasel/browser/extensions/fxdriver at googlecode.com/platform/Linux_x86_64-gcc3
+%if %{with python2}
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/webdriver/firefox/amd64
 %endif
+%if %{with python3}
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/webdriver/firefox/amd64
+%endif
+%endif
 %ifnarch %{ix86}
 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/iceweasel/browser/extensions/fxdriver at googlecode.com/platform/Linux_x86-gcc3
+%if %{with python2}
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/webdriver/firefox/x86
 %endif
+%if %{with python3}
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/webdriver/firefox/x86
+%endif
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-selenium.git/commitdiff/4a2fc600126654c09451c5573b0524a9a796dc1a



More information about the pld-cvs-commit mailing list