2009-09-21 21:16:00 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: python-selenium
|
|
|
|
Version: 1.0.1
|
|
|
|
Release: 1
|
|
|
|
Summary: A Python language binding for Selenium RC
|
|
|
|
License: Apache 2.0
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Source: selenium-%{version}.tar.gz
|
|
|
|
Patch: data_files.patch
|
|
|
|
URL: http://www.openqa.org
|
|
|
|
BuildRequires: python-devel, python-setuptools
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{py_requires}
|
|
|
|
|
2010-03-04 12:07:23 +00:00
|
|
|
# This code is taken from /etc/rpm/macros.python on openSUSE 11.2
|
|
|
|
%define python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True);")
|
2009-09-21 21:16:00 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Selenium Python Client Driver is a Python language binding for Selenium Remote Control.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
--------
|
|
|
|
Maik Roeder <roeder@berg.net>
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n selenium-%{version}
|
|
|
|
%patch
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2010-03-04 12:07:23 +00:00
|
|
|
%{__python} setup.py install --install-lib=%python_sitearch --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
2009-09-21 21:16:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root)
|