From 46bb05d5779437116462fa12fe69ea8c0a8e462aa0819fc3e2178e16bc52b112 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 2 Apr 2012 12:33:41 +0000 Subject: [PATCH] - Use upstream tarball - Simplified macro usage - Remove unused Windows DLL files - The package is noarch, it contains binary Firefox modules for x86_64 and i586 - Therefore add ExclusiveArch: %x86 x86_64 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-selenium?expand=0&rev=25 --- python-selenium.changes | 10 ++++++++++ python-selenium.spec | 20 ++++++++++---------- selenium-2.20.0.tar.bz2 | 3 --- selenium-2.20.0.tar.gz | 3 +++ 4 files changed, 23 insertions(+), 13 deletions(-) delete mode 100644 selenium-2.20.0.tar.bz2 create mode 100644 selenium-2.20.0.tar.gz diff --git a/python-selenium.changes b/python-selenium.changes index d361a2c..0398d28 100644 --- a/python-selenium.changes +++ b/python-selenium.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Apr 2 12:29:00 UTC 2012 - saschpe@suse.de + +- Use upstream tarball +- Simplified macro usage +- Remove unused Windows DLL files +- The package is noarch, it contains binary Firefox modules for x86_64 + and i586 +- Therefore add ExclusiveArch: %x86 x86_64 + ------------------------------------------------------------------- Mon Feb 27 23:17:45 UTC 2012 - alexandre@exatati.com.br diff --git a/python-selenium.spec b/python-selenium.spec index 134e0bc..6ee9e01 100644 --- a/python-selenium.spec +++ b/python-selenium.spec @@ -11,13 +11,10 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - Name: python-selenium Version: 2.20.0 Release: 0 @@ -25,16 +22,17 @@ Url: http://code.google.com/p/selenium/ Summary: Python bindings for Selenium License: Apache-2.0 Group: Development/Languages/Python -Source: selenium-%{version}.tar.bz2 +Source: http://pypi.python.org/packages/source/s/selenium/selenium-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute Requires: python-rdflib -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch -%endif +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +# Contains pre-build Firefox plugins for x86_64 and i586, thus not noarch: +#%%else +#BuildArch: noarch +ExclusiveArch: %ix86 x86_64 %endif @@ -54,9 +52,11 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +rm -r %{buildroot}%{python_sitelib}/selenium/webdriver/ie/{win32,x64}/IEDriver.dll # Remove unused Windows DLLs %files %defattr(-,root,root,-) +%doc COPYING README.md %{python_sitelib}/* %changelog diff --git a/selenium-2.20.0.tar.bz2 b/selenium-2.20.0.tar.bz2 deleted file mode 100644 index 9057fc5..0000000 --- a/selenium-2.20.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e4b09a542aaa2ace131ffd63daaca7150129f674e3744cc22063f94e4016689 -size 4048117 diff --git a/selenium-2.20.0.tar.gz b/selenium-2.20.0.tar.gz new file mode 100644 index 0000000..24aebbb --- /dev/null +++ b/selenium-2.20.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9808c5dfdd9f028d0361ba5a0ea717743849f4dee3eefc397a0b65e6cb3f06fd +size 4200623