14
0
Files
python-selenium/python-selenium.spec

42 lines
1.0 KiB
RPMSpec
Raw Normal View History

# 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}
# 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);")
%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
%{__python} setup.py install --install-lib=%python_sitearch --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)