2011-10-09 12:04:50 +02:00
|
|
|
#
|
2012-01-31 11:55:03 +01:00
|
|
|
# spec file for package python-pyquery
|
|
|
|
#
|
2013-03-26 09:00:03 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-31 11:55:03 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2013-03-26 09:00:03 +01:00
|
|
|
|
2011-10-09 12:04:50 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-03-26 09:00:03 +01:00
|
|
|
|
2012-01-31 11:55:03 +01:00
|
|
|
Name: python-pyquery
|
2013-03-26 09:00:03 +01:00
|
|
|
Version: 1.2.4
|
2012-01-31 11:55:03 +01:00
|
|
|
Release: 0
|
2011-10-09 12:04:50 +02:00
|
|
|
Summary: A jQuery-like library for python
|
2013-03-26 09:00:03 +01:00
|
|
|
License: BSD-3-Clause
|
2011-10-09 12:15:43 +02:00
|
|
|
Group: Development/Languages/Python
|
2013-03-26 09:00:03 +01:00
|
|
|
Url: http://pypi.python.org/pypi/pyquery
|
2012-01-31 11:55:03 +01:00
|
|
|
Source: http://pypi.python.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz
|
2011-10-09 12:04:50 +02:00
|
|
|
BuildRequires: python-devel
|
2012-01-31 11:55:03 +01:00
|
|
|
BuildRequires: python-distribute
|
2013-03-26 09:00:03 +01:00
|
|
|
BuildRequires: python-lxml
|
2011-10-09 12:04:50 +02:00
|
|
|
Requires: python-lxml
|
2012-01-31 11:55:03 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2011-10-09 12:04:50 +02:00
|
|
|
BuildArch: noarch
|
2011-10-09 12:15:43 +02:00
|
|
|
%endif
|
2011-03-05 08:03:08 +01:00
|
|
|
|
|
|
|
%description
|
2012-01-31 11:55:03 +01:00
|
|
|
Pyquery allows you to make jQuery queries on XML documents. The API is
|
|
|
|
as much as possible the similar to jQuery. Pyquery uses lxml for fast
|
2011-10-09 12:04:50 +02:00
|
|
|
XML and HTML manipulation.
|
2011-03-05 08:03:08 +01:00
|
|
|
|
|
|
|
%prep
|
2012-01-31 11:55:03 +01:00
|
|
|
%setup -q -n pyquery-%{version}
|
2011-03-05 08:03:08 +01:00
|
|
|
|
|
|
|
%build
|
2011-10-09 12:04:50 +02:00
|
|
|
python setup.py build
|
2011-03-05 08:03:08 +01:00
|
|
|
|
|
|
|
%install
|
2011-10-09 12:15:43 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2011-03-05 08:03:08 +01:00
|
|
|
|
2011-10-09 12:04:50 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-03-26 09:00:03 +01:00
|
|
|
%doc CHANGES.rst README.rst
|
2012-01-31 11:55:03 +01:00
|
|
|
%{python_sitelib}/*
|
2011-03-05 08:03:08 +01:00
|
|
|
|
2011-10-09 12:04:50 +02:00
|
|
|
%changelog
|