[packages/python-suds] Rel 7; python3 support in python3-suds.spec
arekm
arekm at pld-linux.org
Sun May 4 15:40:07 CEST 2025
commit f14a3b508a48d11833a0b56f5ccda134a75b7b60
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 15:00:29 2025 +0200
Rel 7; python3 support in python3-suds.spec
python-suds.spec | 51 +--------------------------------------------------
1 file changed, 1 insertion(+), 50 deletions(-)
---
diff --git a/python-suds.spec b/python-suds.spec
index 3217b4f..4b31a26 100644
--- a/python-suds.spec
+++ b/python-suds.spec
@@ -1,14 +1,12 @@
#
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Python 2 SOAP client library
Summary(pl.UTF-8): Biblioteka klienta SOAP dla Pythona 2
Name: python-suds
Version: 0.8.4
-Release: 6
+Release: 7
License: LGPL v3+
Group: Development/Languages/Python
#Source0Download: https://github.com/suds-community/suds/releases
@@ -16,17 +14,9 @@ Source0: https://github.com/suds-community/suds/archive/v%{version}/suds-%{versi
# Source0-md5: d4c47fec087d81f9a02f70bcc48c92c4
Patch0: %{name}-pytest.patch
URL: https://github.com/suds-community/suds
-%if %{with python2}
BuildRequires: python-devel >= 1:2.4
%{?with_tests:BuildRequires: python-pytest}
BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-2to3 >= 1:3.2
-BuildRequires: python3-devel >= 1:3.2
-%{?with_tests:BuildRequires: python3-pytest}
-BuildRequires: python3-setuptools
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
Requires: python-modules >= 1:2.4
@@ -39,57 +29,27 @@ Suds is a lightweight SOAP Python client for consuming Web Services.
%description -l pl.UTF-8
Suds to lekka implementacja klienta SOAP dla języka Python.
-%package -n python3-suds
-Summary: Python 3 SOAP client library
-Summary(pl.UTF-8): Biblioteka klienta SOAP dla Pythona 3
-Group: Development/Languages/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-suds
-Suds is a lightweight SOAP Python client for consuming Web Services.
-
-%description -n python3-suds -l pl.UTF-8
-Suds to lekka implementacja klienta SOAP dla języka Python.
-
%prep
%setup -q -n suds-%{version}
%patch -P 0 -p1
%build
topdir=$(pwd)
-%if %{with python2}
%py_build
PYTHONPATH=$(pwd)/build-2/lib \
%{__python} -m pytest tests
-%endif
-
-%if %{with python3}
-%py3_build
-
-# python2 version of suds (before 2to3) must not be in cwd when running python3 tests
-cd build-3
-PYTHONPATH=$(pwd)/lib \
-%{__python3} -m pytest ../tests
-%endif
%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 CHANGELOG.md README.md TODO.txt
@@ -97,12 +57,3 @@ rm -rf $RPM_BUILD_ROOT
%if "%{py_ver}" > "2.4"
%{py_sitescriptdir}/suds_community-%{version}-py*.egg-info
%endif
-%endif
-
-%if %{with python3}
-%files -n python3-suds
-%defattr(644,root,root,755)
-%doc CHANGELOG.md README.md TODO.txt
-%{py3_sitescriptdir}/suds
-%{py3_sitescriptdir}/suds_community-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-suds.git/commitdiff/f14a3b508a48d11833a0b56f5ccda134a75b7b60
More information about the pld-cvs-commit
mailing list