[packages/python-soupsieve] - rel 3, python3 moved to python3-soupsieve
baggins
baggins at pld-linux.org
Tue Mar 11 20:59:21 CET 2025
commit ceb41faa6910cd5add6c9dfac52de1c26a9103fc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Mar 11 21:48:12 2025 +0100
- rel 3, python3 moved to python3-soupsieve
python-soupsieve.spec | 64 +--------------------------------------------------
1 file changed, 1 insertion(+), 63 deletions(-)
---
diff --git a/python-soupsieve.spec b/python-soupsieve.spec
index f466e06..5fd6d8b 100644
--- a/python-soupsieve.spec
+++ b/python-soupsieve.spec
@@ -3,22 +3,19 @@
# Conditional build:
%bcond_with doc # API documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Modern CSS selector implementation for Beautiful Soup
Summary(pl.UTF-8): Współczesna implementacja wybierania CSS dla Beautiful Soup
Name: python-soupsieve
# keep 1.x here for python2 support
Version: 1.9.6
-Release: 2
+Release: 3
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/soupsieve/
Source0: https://files.pythonhosted.org/packages/source/s/soupsieve/soupsieve-%{version}.tar.gz
# Source0-md5: 056fc893f7e6d4df64c136e07c426342
URL: https://pypi.org/project/soupsieve/
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
%if %{with tests}
@@ -28,17 +25,6 @@ BuildRequires: python-html5lib
BuildRequires: python-lxml
BuildRequires: python-pytest
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-bs4 >= 4.9
-BuildRequires: python3-html5lib
-BuildRequires: python3-lxml
-BuildRequires: python3-pytest
-%endif
-%endif
%if %{with doc}
BuildRequires: python-backports.functools_lru_cache
BuildRequires: python-mkdocs-material >= 2.2.5
@@ -64,27 +50,6 @@ Soup Sieve obecnie zawiera wybieranie ze specyfikacji od CSS poziomu 1
do najnowszych szkiców CSS poziomu 4 i nowszych (ale nie wszystkie są
zaimplementowane).
-%package -n python3-soupsieve
-Summary: Modern CSS selector implementation for Beautiful Soup
-Summary(pl.UTF-8): Współczesna implementacja wybierania CSS dla Beautiful Soup
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-soupsieve
-Soup Sieve is a CSS selector library designed to be used with
-Beautiful Soup 4 (bs4). 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).
-
-%description -n python3-soupsieve -l pl.UTF-8
-Soup Sieve to biblioteka wybierania CSS zaprojektowana z myślą o
-używaniu w Beautiful Soup 4 (bs4). Celem jest zapewnienie wyboru,
-dopasowywania i filtrowania przy użyciu współczesnego wybierania CSS.
-Soup Sieve obecnie zawiera wybieranie ze specyfikacji od CSS poziomu 1
-do najnowszych szkiców CSS poziomu 4 i nowszych (ale nie wszystkie są
-zaimplementowane).
-
%package apidocs
Summary: API documentation for Python soupsieve module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona soupsieve
@@ -100,23 +65,12 @@ Dokumentacja API modułu Pythona soupsieve.
%setup -q -n soupsieve-%{version}
%build
-%if %{with python2}
%py_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python} -m pytest tests
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
%if %{with doc}
mkdocs build --clean --verbose --strict
@@ -125,34 +79,18 @@ mkdocs build --clean --verbose --strict
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc LICENSE.md README.md
%{py_sitescriptdir}/soupsieve
%{py_sitescriptdir}/soupsieve-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-soupsieve
-%defattr(644,root,root,755)
-%doc LICENSE.md README.md
-%{py3_sitescriptdir}/soupsieve
-%{py3_sitescriptdir}/soupsieve-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-soupsieve.git/commitdiff/ceb41faa6910cd5add6c9dfac52de1c26a9103fc
More information about the pld-cvs-commit
mailing list