2011-10-09 10:04:50 +00:00
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
%global real_name pyquery
|
|
|
|
|
|
|
|
Name: python-%{real_name}
|
|
|
|
Version: 1.0
|
|
|
|
Release: 1
|
|
|
|
License: BSD
|
|
|
|
Summary: A jQuery-like library for python
|
|
|
|
Url: http://pypi.python.org/pypi/pyquery
|
|
|
|
Group: Development/Libraries
|
|
|
|
Source: http://pypi.python.org/packages/source/p/%{real_name}/%{real_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-lxml
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
Requires: python-lxml
|
|
|
|
BuildArch: noarch
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%description
|
2011-10-09 10:04:50 +00:00
|
|
|
python-pyquery allows you to make jQuery queries on XML documents. The API is
|
|
|
|
as much as possible the similar to jQuery. python-pyquery uses lxml for fast
|
|
|
|
XML and HTML manipulation.
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%prep
|
2011-10-09 10:04:50 +00:00
|
|
|
%setup -q -n %{real_name}-%{version}
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%build
|
2011-10-09 10:04:50 +00:00
|
|
|
python setup.py build
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%install
|
2011-10-09 10:04:50 +00:00
|
|
|
python setup.py install -O1 --skip-build --root %{buildroot}
|
2011-03-05 07:03:08 +00:00
|
|
|
|
2011-10-09 10:04:50 +00:00
|
|
|
%check
|
|
|
|
python setup.py test
|
2011-03-05 07:03:08 +00:00
|
|
|
|
2011-10-09 10:04:50 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES.txt README.txt
|
|
|
|
%{python_sitelib}/pyquery/
|
|
|
|
%{python_sitelib}/pyquery*.egg-info/
|
2011-03-05 07:03:08 +00:00
|
|
|
|
2011-10-09 10:04:50 +00:00
|
|
|
%changelog
|