OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyquery?expand=0&rev=3
45 lines
1.1 KiB
RPMSpec
45 lines
1.1 KiB
RPMSpec
#
|
|
# 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/Languages/Python
|
|
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
|
|
%if 0%{?suse_version}
|
|
%{py_requires}
|
|
%endif
|
|
|
|
%description
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n %{real_name}-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGES.txt README.txt
|
|
%{python_sitelib}/%{real_name}/
|
|
%{python_sitelib}/%{real_name}*.egg-info/
|
|
|
|
%changelog
|