commit 4a17c6de34e258b29d8999d75aad2f63a9f1f711 Author: tigro Date: Fri Jun 30 22:34:19 2023 +0300 import python-soupsieve-2.4.1-1.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34bd9e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-soupsieve-2.4.1.tar.gz diff --git a/.python-soupsieve.metadata b/.python-soupsieve.metadata new file mode 100644 index 0000000..6900694 --- /dev/null +++ b/.python-soupsieve.metadata @@ -0,0 +1 @@ +92f00f7f4c3cdfc41c6992eac00ce95b295bde16 SOURCES/python-soupsieve-2.4.1.tar.gz diff --git a/SPECS/python-soupsieve.spec b/SPECS/python-soupsieve.spec new file mode 100644 index 0000000..6fdffe0 --- /dev/null +++ b/SPECS/python-soupsieve.spec @@ -0,0 +1,92 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%bcond_with tests + +Name: python-soupsieve +Version: 2.4.1 +Release: %autorelease +Summary: CSS selector library + +License: MIT +URL: https://github.com/facelessuser/soupsieve +Source0: https://github.com/facelessuser/soupsieve/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-beautifulsoup4 + +%global _description %{expand: +Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. +It aims to provide selecting, matching, and filtering using modern CSS +selectors. Soup Sieve currently provides selectors from the CSS level 1 +specifications up through the latest CSS level 4 drafts and beyond (though some +are not yet implemented). + +Soup Sieve was written with the intent to replace Beautiful Soup's builtin +select feature, and as of Beautiful Soup version 4.7.0, it now is. Soup Sieve +can also be imported in order to use its API directly for more controlled, +specialized parsing. + +Soup Sieve has implemented most of the CSS selectors up through the latest CSS +draft specifications, though there are a number that don't make sense in a +non-browser environment. Selectors that cannot provide meaningful functionality +simply do not match anything.} + +%description %_description + +%package -n python3-soupsieve +Summary: %{summary} + +%description -n python3-soupsieve %_description + +%prep +%autosetup -n soupsieve-%{version} + +# Do not run coverage report during check +sed -Ei 's/ ?--cov(-[^ ]+)? +[^ ]+//g' tox.ini +sed -i 's/coverage.*//' tox.ini + +# Support posargs in tox.ini +sed -i 's/\(py\.test.*\)$/\1 \{posargs\}/' tox.ini + +%generate_buildrequires +%pyproject_buildrequires -w %{?with_tests:-t} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files soupsieve + +%if %{with tests} +%check +# test_contains_cdata_html and test_contains_own_cdata_html are disabled to unblock Python 3.10 rebuild +# downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1962458 +%tox -- -- -k 'not test_namespace_xml_with_namespace and not test_contains_cdata_html and not test_contains_own_cdata_html' +%else +%pyproject_check_import +%endif + +%files -n python3-soupsieve -f %{pyproject_files} +%license LICENSE.md +%doc README.md + +%changelog +* Fri Jun 30 2023 Arkady L. Shane - 2.4.1-1 +- Rebuilt for MSVSphere 9.2 + +* Fri Apr 28 2023 jonathanspw - 2.4.1-1 +- update to 2.4.1 rhbz#2187123 + +* Mon Apr 17 2023 jonathanspw - 2.4-2 +- RPMAUTOSPEC: unresolvable merge