Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 24586a9297fba33802388c6bfffb6561 > files > 2

python-spynner-2.2-1.src.rpm

%define	module	spynner
%define name	python-%{module}
%define version 2.2
%define release 1

Summary:	Programmatic web browsing module with AJAX support for Python
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.zip
Patch0:		manual-example-install-2.1.patch
License:	GPLv3+
Group:		Development/Python
Url:		https://github.com/makinacorpus/spynner
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:	noarch
Requires:	python-beautifulsoup, python-pyquery
Requires:	python-qt4 >= 4.4.3
BuildRequires:	python-setuptools
BuildRequires:	python-beautifulsoup, python-pyquery
BuildRequires:	python-qt4 >= 4.4.3

%description
Spynner is a stateful programmatic web browser module for Python.
Based upon PyQT and WebKit, it supports Javascript, AJAX, and every
other technology that browsers other than WebKit are able to handle
(Flash, SVG, ...). Spynner takes advantage of jQuery, a powerful
Javascript library that makes the interaction with pages and event
simulation really easy.

Using Spynner, one can simulate a web browser with no GUI (although a
browsing window can be opened for debugging purposes); it therefore
may be used to implement web crawlers or acceptance testing tools.

%prep
%setup -q -n %{module}-%{version}
%patch0 -p0 

%install
%__rm -rf %{buildroot}
for f in `find src/ -name "*.py"`; do
	[ `head -1 $f` == '#!/usr/bin/python' ] && sed -si 's,#!/usr/bin/python,,g' $f;
done
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES.rst COPYING README.rst examples/
%py_sitedir/%{module}*


%changelog
* Sun Sep 23 2012 Lev Givon <lev@mandriva.org> 2.2-1
+ Revision: 817369
- Update to 2.2.
- Update to 2.1.
- imported package python-spynner