From 81848ac8732fbe257436c62d187e9ad5341ad978 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Feb 21 2024 13:03:16 +0000 Subject: Update to 1.1.2 Related-to: https://review.rdoproject.org/r/q/I047fd9140d49f579d30dc4219a93a9aa7dae859e --- diff --git a/.python-suds.metadata b/.python-suds.metadata index b348f46..263b65f 100644 --- a/.python-suds.metadata +++ b/.python-suds.metadata @@ -1 +1 @@ -45a361ec44736d167c5e57d057f594fc53e540c7 SOURCES/94664ddd46a6.tar.bz2 +efd19e18b71b2114ee2dc94b9fb2cf3da8e5aeb1 SOURCES/suds-1.1.2.tar.gz diff --git a/SOURCES/suds-pyname.patch b/SOURCES/suds-pyname.patch new file mode 100644 index 0000000..9b5b80e --- /dev/null +++ b/SOURCES/suds-pyname.patch @@ -0,0 +1,12 @@ +diff -up suds-1.1.1/setup.py.pkg_name suds-1.1.1/setup.py +--- suds-1.1.1/setup.py.pkg_name 2022-05-02 15:35:35.000000000 -0400 ++++ suds-1.1.1/setup.py 2022-05-28 17:08:08.819608025 -0400 +@@ -645,7 +645,7 @@ licensed under LGPL (see the LICENSE.txt + distribution). + """ + +-package_name = os.environ.get('SUDS_PACKAGE', 'suds-community') ++package_name = os.environ.get('SUDS_PACKAGE', 'suds') + version_tag = safe_version(__version__) + project_url = "https://github.com/suds-community/suds" + base_download_url = project_url + "/archive" diff --git a/SPECS/python-suds.spec b/SPECS/python-suds.spec index 204e301..fb03aed 100644 --- a/SPECS/python-suds.spec +++ b/SPECS/python-suds.spec @@ -1,129 +1,141 @@ -%global commit 94664ddd46a61d06862fa8fb6ba7b9e054214f57 -%global shortcommit %(c=%{commit}; echo ${c:0:12}) -%global py2_builddir python2 -%global py3_builddir python3 %global srcname suds -%global sum A python SOAP client -%global desc \ -The suds project is a python soap web services client lib. Suds leverages\ -python meta programming to provide an intuitive API for consuming web\ -services. Objectification of types defined in the WSDL is provided\ -without class generation. Programmers rarely need to read the WSDL since\ -services and WSDL based objects can be easily inspected. - -%if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 -%global py2_deps python2-devel python2-pytest python2-six -%else -%global py2_deps python-devel pytest python-six -%endif - -%if 0%{?rhel} > 7 -%bcond_with python2 -%else -%bcond_without python2 -%endif - - -Summary: %{sum} + +Summary: A python SOAP client Name: python-suds -Version: 0.7 -Release: 0.11.%{shortcommit}%{?dist} -Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2 -Patch0: fix_http_test.patch -Patch1: bz1921920-fix-fips-issue.patch +Version: 1.1.2 +Release: 5%{?dist} +Source0: https://github.com/suds-community/suds/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz +Patch0: suds-pyname.patch License: LGPLv3+ -Group: Development/Libraries BuildArch: noarch -URL: https://bitbucket.org/jurko/suds +URL: https://github.com/suds-community/suds + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: %{py3_dist pytest six} -%description %{desc} +%global _description %{expand: +The suds project is a python soap web services client lib. Suds leverages +python meta programming to provide an intuitive API for consuming web +services. Objectification of types defined in the WSDL is provided +without class generation. Programmers rarely need to read the WSDL since +services and WSDL based objects can be easily inspected.} -%if %{with python2} -%package -n python2-%{srcname} -BuildRequires: %{py2_deps} -Summary: %{sum} -%{?python_provide:%python_provide python2-%{srcname}} -%description -n python2-%{srcname} %{desc} -%endif #{with python2} +%description %_description -%if 0%{?with_python3} %package -n python3-%{srcname} -BuildRequires: python3-devel python3-pytest python3-six -Summary: %{sum} +Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} -%description -n python3-%{srcname} %{desc} -%endif +%description -n python3-%{srcname} %_description %prep -%setup -c -q -mv jurko-suds-%{shortcommit} %{py2_builddir} -pushd %{py2_builddir} -%patch0 -p1 -%patch1 -p1 -popd -%if 0%{?with_python3} -cp -a %{py2_builddir} %{py3_builddir} -%endif +%autosetup -p1 -n %{srcname}-%{version} %build -%if %{with python2} -pushd %{py2_builddir} -%py2_build -popd -%endif #{with python2} -%if 0%{?with_python3} -pushd %{py3_builddir} -%py3_build -popd -%endif +%pyproject_wheel + +%generate_buildrequires +%pyproject_buildrequires %install -%if %{with python2} -pushd %{py2_builddir} -%py2_install -popd -%endif #{with python2} -%if 0%{?with_python3} -pushd %{py3_builddir} -%py3_install -popd -%endif +%pyproject_install +%pyproject_save_files suds %check -%if %{with python2} -pushd %{py2_builddir} -%{__python2} setup.py test -popd -%endif #{with python2} -%if 0%{?with_python3} -pushd %{py3_builddir} -%{__python3} setup.py test -popd -%endif - -%if %{with python2} -%files -n python2-%{srcname} -%{python2_sitelib}/* -%doc %{py2_builddir}/README.rst -%license %{py2_builddir}/LICENSE.txt -%endif #{with python2} - -%if 0%{?with_python3} -%files -n python3-%{srcname} -%{python3_sitelib}/* -%doc %{py3_builddir}/README.rst -%license %{py3_builddir}/LICENSE.txt -%endif +%pytest -v tests + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.md %changelog -* Tue Mar 8 2022 Oyvind Albrigtsen - 0.7-0.11.94664ddd46a6 -- Fix FIPS issue - Resolves: rhbz#1921920 +* Fri Jul 21 2023 Fedora Release Engineering - 1.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 1.1.2-4 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 09 2022 Scott Talbert - 1.1.2-1 +- Update to new upstream release 1.1.2 (#2101636) + +* Mon Jun 13 2022 Python Maint - 1.1.1-2 +- Rebuilt for Python 3.11 + +* Sat May 28 2022 Scott Talbert - 1.1.1-1 +- Update to new upstream release 1.1.1 (#2081127) +- Set python package name to suds (vs suds-community) (#2091107) + +* Wed Mar 23 2022 Scott Talbert - 1.1.0-1 +- Update to new upstream release 1.1.0 (#2064493) + +* Wed Feb 16 2022 Steve Traylen - 1.0.0-3 +- Migrate pyproject_macros + +* Fri Jan 21 2022 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Oct 29 2021 Scott Talbert - 1.0.0-1 +- Update to new upstream release 1.0.0 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.8.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 15 2021 Scott Talbert - 0.8.5-1 +- Update to new upstream release 0.8.5 + +* Fri Jun 04 2021 Python Maint - 0.8.4-6 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.8.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.8.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 26 2020 Scott Talbert - 0.8.4-3 +- Modernize Python packaging; BR setuptools + +* Tue May 26 2020 Miro Hrončok - 0.8.4-2 +- Rebuilt for Python 3.9 + +* Tue Feb 18 2020 Scott Talbert - 0.8.4-1 +- Switch to new upstream https://github.com/suds-community/suds + +* Thu Jan 30 2020 Fedora Release Engineering - 0.7-0.17.94664ddd46a6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Oct 13 2019 Miro Hrončok - 0.7-0.16.94664ddd46a6 +- Subpackage python2-suds has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Oct 03 2019 Miro Hrončok - 0.7-0.15.94664ddd46a6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.7-0.14.94664ddd46a6 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.7-0.13.94664ddd46a6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jun 11 2019 Scott Talbert - 0.7-0.12.94664ddd46a6 +- Fix FTBFS with Python 3.8 (#1719145) + +* Tue Jun 11 2019 Scott Talbert - 0.7-0.11.94664ddd46a6 +- Adapt to support pytest4 (#1706285) + +* Sat Feb 02 2019 Fedora Release Engineering - 0.7-0.10.94664ddd46a6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.7-0.9.94664ddd46a6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -* Mon Jul 09 2018 Petr Viktorin - 0.7-0.8.94664ddd46a6 -- Don't build the python2 subpackage in rhel>7 - https://bugzilla.redhat.com/show_bug.cgi?id=1567165 +* Tue Jun 19 2018 Miro Hrončok - 0.7-0.8.94664ddd46a6 +- Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.7-0.7.94664ddd46a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild