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