From 213f88459392b18ae148cc5b7354f7cb0ef61512 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Jan 18 2016 12:38:19 +0000 Subject: update to 2.49.0 add python2 subpackage --- diff --git a/.gitignore b/.gitignore index 2ed3bb9..0d44122 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /selenium-2.44.0.tar.gz /selenium-2.45.0.tar.gz /selenium-2.48.0.tar.gz +/selenium-2.49.0.tar.gz diff --git a/python-selenium.spec b/python-selenium.spec index 84266f5..05b47e8 100644 --- a/python-selenium.spec +++ b/python-selenium.spec @@ -5,23 +5,42 @@ %global upstream_name selenium Name: python-%{upstream_name} -Version: 2.48.0 -Release: 2%{?dist} +Version: 2.49.0 +Release: 1%{?dist} Summary: Python bindings for Selenium License: ASL 2.0 URL: http://docs.seleniumhq.org/ Source0: https://pypi.python.org/packages/source/s/%{upstream_name}/%{upstream_name}-%{version}.tar.gz +BuildArch: noarch + +Patch1: selenium-use-without-bundled-libs.patch + +%description +The selenium package is used automate web browser interaction from Python. + +Several browsers/drivers are supported (Firefox, Chrome, Internet Explorer, +PhantomJS), as well as the Remote protocol. + +%package -n python2-%{upstream_name} +Summary: Python bindings for Selenium + +%{?python_provide:%python_provide python2-%{upstream_name}} BuildRequires: python2-devel BuildRequires: python-setuptools Requires: python-rdflib -BuildArch: noarch -Patch1: selenium-use-without-bundled-libs.patch +%description -n python2-%{upstream_name} +The selenium package is used automate web browser interaction from Python. + +Several browsers/drivers are supported (Firefox, Chrome, Internet Explorer, +PhantomJS), as well as the Remote protocol. + %if 0%{?with_python3} %package -n python3-%{upstream_name} Summary: Python bindings for Selenium +%{?python_provide:%python_provide python3-%{upstream_name}} BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -36,12 +55,6 @@ PhantomJS), as well as the Remote protocol. %endif # if with_python3 -%description -The selenium package is used automate web browser interaction from Python. - -Several browsers/drivers are supported (Firefox, Chrome, Internet Explorer, -PhantomJS), as well as the Remote protocol. - %prep %setup -qn %{upstream_name}-%{version} rm -r %{upstream_name}.egg-info @@ -50,7 +63,7 @@ find . -type f -name "*.py" -exec sed -i '1{/^#!/d;}' {} \; %patch1 -p1 -%if %{with python3} +%if %{?with_python3} > 0 rm -rf %{py3dir} cp -a . %{py3dir} %endif @@ -58,7 +71,7 @@ cp -a . %{py3dir} %build %{__python2} setup.py build -%if %{with python3} +%if %{?with_python3} > 0 pushd %{py3dir} %{__python3} setup.py build popd @@ -70,7 +83,7 @@ popd rm -f %{buildroot}%{python2_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so rm -f %{buildroot}%{python2_sitelib}/selenium/webdriver/firefox/x86/x_ignore_nofocus.so -%if %{with python3} +%if %{?with_python3} > 0 pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} popd @@ -78,17 +91,21 @@ rm -f %{buildroot}%{python3_sitelib}/selenium/webdriver/firefox/amd64/x_ignore_n rm -f %{buildroot}%{python3_sitelib}/selenium/webdriver/firefox/x86/x_ignore_nofocus.so %endif -%files +%files -n python2-%{upstream_name} %{python2_sitelib}/* %doc py/README -%if %{with python3} +%if %{?with_python3} > 0 %files -n python3-%{upstream_name} %{python3_sitelib}/* %doc py/README %endif %changelog +* Mon Jan 18 2016 Matthias Runge - 2.49.0-1 +- update to 2.49.0 (rhbz#1298407) +- spec cleanup, add py2 subpackage + * Wed Nov 04 2015 Robert Kuska - 2.48.0-2 - Rebuilt for Python3.5 rebuild diff --git a/sources b/sources index 1f0d97e..c846c9e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d1e0635b427151d86457170825b96cf8 selenium-2.48.0.tar.gz +b1159b53312109b75fd9cd896c379a63 selenium-2.49.0.tar.gz