rdobuilder 6e8f37
## START: Set by rpmautospec
rdobuilder 6e8f37
## (rpmautospec version 0.2.5)
rdobuilder 6e8f37
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
rdobuilder 6e8f37
    release_number = 1;
rdobuilder 6e8f37
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
rdobuilder 6e8f37
    print(release_number + base_release_number - 1);
rdobuilder 6e8f37
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
rdobuilder 6e8f37
## END: Set by rpmautospec
rdobuilder 6e8f37
rdobuilder 6e8f37
%bcond_without tests
rdobuilder 6e8f37
rdobuilder 6e8f37
Name:           python-soupsieve
rdobuilder 6e8f37
Version:        2.3.2.post1
rdobuilder 6e8f37
Release:        %autorelease
rdobuilder 6e8f37
Summary:        CSS selector library
rdobuilder 6e8f37
rdobuilder 6e8f37
License:        MIT
rdobuilder 6e8f37
URL:            https://github.com/facelessuser/soupsieve
rdobuilder 6e8f37
Source0:        https://github.com/facelessuser/soupsieve/archive/%{version}/%{name}-%{version}.tar.gz
rdobuilder 6e8f37
rdobuilder 6e8f37
BuildArch:      noarch
rdobuilder 6e8f37
rdobuilder 6e8f37
BuildRequires:  python3-devel
rdobuilder 6e8f37
BuildRequires:  pyproject-rpm-macros
rdobuilder 6e8f37
rdobuilder 6e8f37
%global _description %{expand:
rdobuilder 6e8f37
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
rdobuilder 6e8f37
It aims to provide selecting, matching, and filtering using modern CSS
rdobuilder 6e8f37
selectors. Soup Sieve currently provides selectors from the CSS level 1
rdobuilder 6e8f37
specifications up through the latest CSS level 4 drafts and beyond (though some
rdobuilder 6e8f37
are not yet implemented).
rdobuilder 6e8f37
rdobuilder 6e8f37
Soup Sieve was written with the intent to replace Beautiful Soup's builtin
rdobuilder 6e8f37
select feature, and as of Beautiful Soup version 4.7.0, it now is. Soup Sieve
rdobuilder 6e8f37
can also be imported in order to use its API directly for more controlled,
rdobuilder 6e8f37
specialized parsing.
rdobuilder 6e8f37
rdobuilder 6e8f37
Soup Sieve has implemented most of the CSS selectors up through the latest CSS
rdobuilder 6e8f37
draft specifications, though there are a number that don't make sense in a
rdobuilder 6e8f37
non-browser environment. Selectors that cannot provide meaningful functionality
rdobuilder 6e8f37
simply do not match anything.}
rdobuilder 6e8f37
rdobuilder 6e8f37
%description %_description
rdobuilder 6e8f37
rdobuilder 6e8f37
%package -n python3-soupsieve
rdobuilder 6e8f37
Summary:        %{summary}
rdobuilder 6e8f37
rdobuilder 6e8f37
%description -n python3-soupsieve %_description
rdobuilder 6e8f37
rdobuilder 6e8f37
%prep
rdobuilder 6e8f37
%autosetup -n soupsieve-%{version}
rdobuilder 6e8f37
rdobuilder 6e8f37
# Do not run mypy tests during check
rdobuilder 6e8f37
sed -i '/mypy/d' tox.ini
rdobuilder 6e8f37
rdobuilder 6e8f37
# Do not run coverage report during check
rdobuilder 6e8f37
sed -Ei 's/ ?--cov(-[^ ]+)? +[^ ]+//g' tox.ini
rdobuilder 6e8f37
sed -i 's/coverage.*//' tox.ini
rdobuilder 6e8f37
rdobuilder 6e8f37
# Support posargs in tox.ini
rdobuilder 6e8f37
sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini
rdobuilder 6e8f37
rdobuilder 6e8f37
%generate_buildrequires
rdobuilder 6e8f37
# pyproject_buildrequires.py fails with
rdobuilder 6e8f37
# ValueError: build backend cannot provide build metadata (incl. runtime requirements) before build.
rdobuilder 6e8f37
%pyproject_buildrequires %{?with_tests:-t} || :
rdobuilder 6e8f37
rdobuilder 6e8f37
%build
rdobuilder 6e8f37
%pyproject_wheel
rdobuilder 6e8f37
rdobuilder 6e8f37
%install
rdobuilder 6e8f37
%pyproject_install
rdobuilder 6e8f37
%pyproject_save_files soupsieve
rdobuilder 6e8f37
rdobuilder 6e8f37
%if %{with tests}
rdobuilder 6e8f37
%check
rdobuilder 6e8f37
# test_contains_cdata_html and test_contains_own_cdata_html are disabled to unblock Python 3.10 rebuild
rdobuilder 6e8f37
# downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1962458
rdobuilder 6e8f37
%tox -- -- -k 'not test_namespace_xml_with_namespace and not test_contains_cdata_html and not test_contains_own_cdata_html'
rdobuilder 6e8f37
%endif
rdobuilder 6e8f37
rdobuilder 6e8f37
%files -n python3-soupsieve -f %{pyproject_files}
rdobuilder 6e8f37
%doc README.md
rdobuilder 6e8f37
%{python3_sitelib}/soupsieve-%{version}.dist-info/license_files/
rdobuilder 6e8f37
rdobuilder 6e8f37
%changelog
rdobuilder 6e8f37
* Fri Apr 22 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 2.3.2.post1-1
rdobuilder 6e8f37
- Version 2.3.2.post1 (rhbz#2072609)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Tue Feb 08 2022 Miro Hrončok <miro@hroncok.cz> 2.3.1-4
rdobuilder 6e8f37
- Remove deprecated and redundant %python_provide call
rdobuilder 6e8f37
rdobuilder 6e8f37
* Tue Feb 08 2022 Steve Traylen <steve.traylen@cern.ch> 2.3.1-3
rdobuilder 6e8f37
- Convert to pyproject macros
rdobuilder 6e8f37
rdobuilder 6e8f37
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 2.3.1-2
rdobuilder 6e8f37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 6e8f37
rdobuilder 6e8f37
* Sat Nov 13 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 2.3.1-1
rdobuilder 6e8f37
- Version 2.3.1 (fixes #2022380)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Sun Nov 07 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 2.3-1
rdobuilder 6e8f37
- Version 2.3 (fixes #2019960)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
rdobuilder 6e8f37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 6e8f37
rdobuilder 6e8f37
* Wed Jun  9 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.1-1
rdobuilder 6e8f37
- Update to latest bugfix version
rdobuilder 6e8f37
rdobuilder 6e8f37
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.2-3
rdobuilder 6e8f37
- Rebuilt for Python 3.10
rdobuilder 6e8f37
rdobuilder 6e8f37
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.2-2
rdobuilder 6e8f37
- Bootstrap for Python 3.10
rdobuilder 6e8f37
rdobuilder 6e8f37
* Sat Feb 13 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-1
rdobuilder 6e8f37
- Latest version (#1927002)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
rdobuilder 6e8f37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 6e8f37
rdobuilder 6e8f37
* Thu Jan 07 2021 Joel Capitao <jcapitao@redhat.com> - 2.1.0-1
rdobuilder 6e8f37
- Update to 2.1.0 (#1906625)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
rdobuilder 6e8f37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 6e8f37
rdobuilder 6e8f37
* Fri Jun 26 2020 Charalampos Stratakis <cstratak@redhat.com> - 2.0.1-1
rdobuilder 6e8f37
- Update to 2.0.1 (#1814999)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-6
rdobuilder 6e8f37
- Rebuilt for Python 3.9
rdobuilder 6e8f37
rdobuilder 6e8f37
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-5
rdobuilder 6e8f37
- Bootstrap for Python 3.9
rdobuilder 6e8f37
rdobuilder 6e8f37
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
rdobuilder 6e8f37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 6e8f37
rdobuilder 6e8f37
* Tue Sep 03 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-3
rdobuilder 6e8f37
- Subpackage python2-soupsieve has been removed (#1748298)
rdobuilder 6e8f37
rdobuilder 6e8f37
* Mon Aug 19 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-2
rdobuilder 6e8f37
- Rebuilt for Python 3.8
rdobuilder 6e8f37
rdobuilder 6e8f37
* Mon Jun 10 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-1
rdobuilder 6e8f37
- Initial packaging
rdobuilder 6e8f37