2011-10-09 12:04:50 +02:00
|
|
|
#
|
2012-01-31 11:55:03 +01:00
|
|
|
# spec file for package python-pyquery
|
|
|
|
#
|
2015-05-16 14:54:00 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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
|
|
|
|
2015-07-20 08:54:23 +02:00
|
|
|
# NOTE: circular dependency between python-pyquery and python-WebTest
|
|
|
|
# enable testing with a build conditional (off by default):
|
|
|
|
%bcond_with test
|
|
|
|
|
2012-01-31 11:55:03 +01:00
|
|
|
Name: python-pyquery
|
2015-05-16 14:54:00 +02:00
|
|
|
Version: 1.2.9
|
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
|
2015-05-16 14:54:00 +02:00
|
|
|
Url: https://github.com/gawel/pyquery
|
2013-11-24 22:16:53 +01:00
|
|
|
Source: http://pypi.python.org/packages/source/p/pyquery/pyquery-%{version}.zip
|
2015-05-16 14:54:00 +02:00
|
|
|
BuildRequires: python-cssselect
|
2011-10-09 12:04:50 +02:00
|
|
|
BuildRequires: python-devel
|
2015-05-16 14:54:00 +02:00
|
|
|
BuildRequires: python-lxml >= 2.1
|
2015-07-20 08:54:23 +02:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: unzip
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: python-WebOb
|
|
|
|
BuildRequires: python-WebTest
|
|
|
|
BuildRequires: python-beautifulsoup
|
2015-05-16 14:54:00 +02:00
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-restkit
|
|
|
|
BuildRequires: python-unittest2
|
2015-07-20 08:54:23 +02:00
|
|
|
%endif
|
2015-05-16 14:54:00 +02:00
|
|
|
Requires: python-cssselect
|
|
|
|
Requires: python-lxml >= 2.1
|
2013-05-02 11:11:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-01-31 11:55:03 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2015-05-16 14:54:00 +02:00
|
|
|
BuildRequires: python-ordereddict
|
2012-01-31 11:55:03 +01:00
|
|
|
%{!?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
|
|
|
|
2015-07-20 08:54:23 +02:00
|
|
|
%if %{with test}
|
2015-05-16 14:54:00 +02:00
|
|
|
%check
|
|
|
|
nosetests -q tests
|
2015-07-20 08:54:23 +02:00
|
|
|
%endif
|
2015-05-16 14:54:00 +02: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
|