2011-10-09 10:04:50 +00:00
|
|
|
#
|
2012-01-31 10:55:03 +00:00
|
|
|
# spec file for package python-pyquery
|
|
|
|
#
|
2018-08-13 13:19:04 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-01-31 10:55:03 +00: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 08:00:03 +00:00
|
|
|
|
2011-10-09 10:04:50 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-03-26 08:00:03 +00:00
|
|
|
|
2018-08-13 13:19:04 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-07-20 06:54:23 +00: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 10:55:03 +00:00
|
|
|
Name: python-pyquery
|
2018-08-13 13:19:04 +00:00
|
|
|
Version: 1.4.0
|
2012-01-31 10:55:03 +00:00
|
|
|
Release: 0
|
2011-10-09 10:04:50 +00:00
|
|
|
Summary: A jQuery-like library for python
|
2013-03-26 08:00:03 +00:00
|
|
|
License: BSD-3-Clause
|
2011-10-09 10:15:43 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-13 13:19:04 +00:00
|
|
|
URL: http://pypi.python.org/pypi/pyquery
|
2017-05-01 15:36:08 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyquery/pyquery-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module cssselect}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module lxml >= 2.1}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-08-13 13:19:04 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-cssselect
|
|
|
|
Requires: python-lxml >= 2.1
|
|
|
|
BuildArch: noarch
|
2015-07-20 06:54:23 +00:00
|
|
|
%if %{with test}
|
2017-05-01 15:36:08 +00:00
|
|
|
BuildRequires: %{python_module WebOb}
|
|
|
|
BuildRequires: %{python_module WebTest}
|
|
|
|
BuildRequires: %{python_module beautifulsoup}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module restkit}
|
2015-07-20 06:54:23 +00:00
|
|
|
%endif
|
2017-05-01 15:36:08 +00:00
|
|
|
%python_subpackages
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%description
|
2012-01-31 10:55:03 +00: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 10:04:50 +00:00
|
|
|
XML and HTML manipulation.
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%prep
|
2012-01-31 10:55:03 +00:00
|
|
|
%setup -q -n pyquery-%{version}
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-01 15:36:08 +00:00
|
|
|
%python_build
|
2011-03-05 07:03:08 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-01 15:36:08 +00:00
|
|
|
%python_install
|
2018-08-13 13:19:04 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-03-05 07:03:08 +00:00
|
|
|
|
2015-07-20 06:54:23 +00:00
|
|
|
%if %{with test}
|
2015-05-16 12:54:00 +00:00
|
|
|
%check
|
|
|
|
nosetests -q tests
|
2015-07-20 06:54:23 +00:00
|
|
|
%endif
|
2015-05-16 12:54:00 +00:00
|
|
|
|
2017-05-01 15:36:08 +00:00
|
|
|
%files %{python_files}
|
2013-03-26 08:00:03 +00:00
|
|
|
%doc CHANGES.rst README.rst
|
2012-01-31 10:55:03 +00:00
|
|
|
%{python_sitelib}/*
|
2011-03-05 07:03:08 +00:00
|
|
|
|
2011-10-09 10:04:50 +00:00
|
|
|
%changelog
|