|
rdobuilder |
99bc1e |
## START: Set by rpmautospec
|
|
rdobuilder |
99bc1e |
## (rpmautospec version 0.2.5)
|
|
rdobuilder |
99bc1e |
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
|
|
rdobuilder |
99bc1e |
release_number = 2;
|
|
rdobuilder |
99bc1e |
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
rdobuilder |
99bc1e |
print(release_number + base_release_number - 1);
|
|
rdobuilder |
99bc1e |
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
|
|
rdobuilder |
99bc1e |
## END: Set by rpmautospec
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%bcond_without tests
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
Name: python-soupsieve
|
|
rdobuilder |
99bc1e |
Version: 2.3.1
|
|
rdobuilder |
99bc1e |
Release: %autorelease
|
|
rdobuilder |
99bc1e |
Summary: CSS selector library
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
License: MIT
|
|
rdobuilder |
99bc1e |
URL: https://github.com/facelessuser/soupsieve
|
|
rdobuilder |
99bc1e |
Source0: https://github.com/facelessuser/soupsieve/archive/%{version}/%{name}-%{version}.tar.gz
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
BuildArch: noarch
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
BuildRequires: python3-devel
|
|
rdobuilder |
99bc1e |
BuildRequires: python3dist(setuptools)
|
|
rdobuilder |
99bc1e |
%if %{with tests}
|
|
rdobuilder |
99bc1e |
BuildRequires: python3-pytest
|
|
rdobuilder |
99bc1e |
BuildRequires: python3dist(lxml)
|
|
rdobuilder |
99bc1e |
BuildRequires: python3dist(html5lib)
|
|
rdobuilder |
99bc1e |
BuildRequires: python3dist(beautifulsoup4)
|
|
rdobuilder |
99bc1e |
%endif
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%global _description %{expand:
|
|
rdobuilder |
99bc1e |
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4.
|
|
rdobuilder |
99bc1e |
It aims to provide selecting, matching, and filtering using modern CSS
|
|
rdobuilder |
99bc1e |
selectors. Soup Sieve currently provides selectors from the CSS level 1
|
|
rdobuilder |
99bc1e |
specifications up through the latest CSS level 4 drafts and beyond (though some
|
|
rdobuilder |
99bc1e |
are not yet implemented).
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
Soup Sieve was written with the intent to replace Beautiful Soup's builtin
|
|
rdobuilder |
99bc1e |
select feature, and as of Beautiful Soup version 4.7.0, it now is. Soup Sieve
|
|
rdobuilder |
99bc1e |
can also be imported in order to use its API directly for more controlled,
|
|
rdobuilder |
99bc1e |
specialized parsing.
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
Soup Sieve has implemented most of the CSS selectors up through the latest CSS
|
|
rdobuilder |
99bc1e |
draft specifications, though there are a number that don't make sense in a
|
|
rdobuilder |
99bc1e |
non-browser environment. Selectors that cannot provide meaningful functionality
|
|
rdobuilder |
99bc1e |
simply do not match anything.}
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%description %_description
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%package -n python3-soupsieve
|
|
rdobuilder |
99bc1e |
Summary: %{summary}
|
|
rdobuilder |
99bc1e |
%{?python_provide:%python_provide python3-soupsieve}
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%description -n python3-soupsieve %_description
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%prep
|
|
rdobuilder |
99bc1e |
%autosetup -n soupsieve-%{version}
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%build
|
|
rdobuilder |
99bc1e |
%py3_build
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%install
|
|
rdobuilder |
99bc1e |
%py3_install
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%if %{with tests}
|
|
rdobuilder |
99bc1e |
%check
|
|
rdobuilder |
99bc1e |
# test_contains_cdata_html and test_contains_own_cdata_html are disabled to unblock Python 3.10 rebuild
|
|
rdobuilder |
99bc1e |
# downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1962458
|
|
rdobuilder |
99bc1e |
pytest-3 -v tests -k 'not test_namespace_xml_with_namespace and not test_contains_cdata_html and not test_contains_own_cdata_html'
|
|
rdobuilder |
99bc1e |
%endif
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%files -n python3-soupsieve
|
|
rdobuilder |
99bc1e |
%{python3_sitelib}/soupsieve/
|
|
rdobuilder |
99bc1e |
%{python3_sitelib}/soupsieve*.egg-info/
|
|
rdobuilder |
99bc1e |
%doc README.md
|
|
rdobuilder |
99bc1e |
%license LICENSE.md
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
%changelog
|
|
rdobuilder |
99bc1e |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 2.3.1-2
|
|
rdobuilder |
99bc1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Sat Nov 13 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 2.3.1-1
|
|
rdobuilder |
99bc1e |
- Version 2.3.1 (fixes #2022380)
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Sun Nov 07 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 2.3-1
|
|
rdobuilder |
99bc1e |
- Version 2.3 (fixes #2019960)
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
|
|
rdobuilder |
99bc1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Wed Jun 9 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.1-1
|
|
rdobuilder |
99bc1e |
- Update to latest bugfix version
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.2-3
|
|
rdobuilder |
99bc1e |
- Rebuilt for Python 3.10
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 2.2-2
|
|
rdobuilder |
99bc1e |
- Bootstrap for Python 3.10
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Sat Feb 13 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-1
|
|
rdobuilder |
99bc1e |
- Latest version (#1927002)
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
rdobuilder |
99bc1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Thu Jan 07 2021 Joel Capitao <jcapitao@redhat.com> - 2.1.0-1
|
|
rdobuilder |
99bc1e |
- Update to 2.1.0 (#1906625)
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
|
rdobuilder |
99bc1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Fri Jun 26 2020 Charalampos Stratakis <cstratak@redhat.com> - 2.0.1-1
|
|
rdobuilder |
99bc1e |
- Update to 2.0.1 (#1814999)
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-6
|
|
rdobuilder |
99bc1e |
- Rebuilt for Python 3.9
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-5
|
|
rdobuilder |
99bc1e |
- Bootstrap for Python 3.9
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
|
|
rdobuilder |
99bc1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Tue Sep 03 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-3
|
|
rdobuilder |
99bc1e |
- Subpackage python2-soupsieve has been removed (#1748298)
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Mon Aug 19 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-2
|
|
rdobuilder |
99bc1e |
- Rebuilt for Python 3.8
|
|
rdobuilder |
99bc1e |
|
|
rdobuilder |
99bc1e |
* Mon Jun 10 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-1
|
|
rdobuilder |
99bc1e |
- Initial packaging
|
|
rdobuilder |
99bc1e |
|