2019-03-01 11:31:48 +00:00
|
|
|
#
|
2021-05-09 17:07:39 +00:00
|
|
|
# spec file for package python-soupsieve-test
|
2019-03-01 11:31:48 +00:00
|
|
|
#
|
2021-01-28 23:18:44 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-03-01 11:31:48 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-03-01 11:41:30 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2020-03-17 14:29:58 +00:00
|
|
|
%define skip_python2 1
|
2019-03-01 11:41:30 +00:00
|
|
|
Name: python-soupsieve%{psuffix}
|
2021-05-09 17:07:39 +00:00
|
|
|
Version: 2.2.1
|
2019-03-01 11:31:48 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A modern CSS selector implementation for BeautifulSoup
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Python
|
2019-07-22 12:56:27 +00:00
|
|
|
URL: https://github.com/facelessuser/soupsieve
|
2019-03-01 11:41:30 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/soupsieve/soupsieve-%{version}.tar.gz
|
2019-03-01 11:31:48 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
2019-03-01 11:41:30 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module beautifulsoup4}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
%endif
|
2019-03-01 11:31:48 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-09-10 10:13:13 +00:00
|
|
|
A modern CSS selector implementation for BeautifulSoup
|
2019-03-01 11:31:48 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n soupsieve-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2019-03-01 11:41:30 +00:00
|
|
|
%if !%{with test}
|
2019-03-01 11:31:48 +00:00
|
|
|
%python_install
|
2019-03-01 11:41:30 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if %{with test}
|
2019-07-22 12:56:27 +00:00
|
|
|
%pytest tests
|
2019-03-01 11:41:30 +00:00
|
|
|
%endif
|
2019-03-01 11:31:48 +00:00
|
|
|
|
2019-03-01 11:41:30 +00:00
|
|
|
%if !%{with test}
|
2019-03-01 11:31:48 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.md
|
2019-03-01 11:41:30 +00:00
|
|
|
%doc README.md
|
2019-03-01 11:31:48 +00:00
|
|
|
%{python_sitelib}/soupsieve*
|
2019-03-01 11:41:30 +00:00
|
|
|
%endif
|
2019-03-01 11:31:48 +00:00
|
|
|
|
2019-03-01 11:41:30 +00:00
|
|
|
%changelog
|