Subpackage python2-suds has been removed

This commit is contained in:
Miro Hrončok 2019-10-13 22:12:19 +02:00
parent 4870c6009a
commit 3e892ec683

View File

@ -1,7 +1,5 @@
%global commit 94664ddd46a61d06862fa8fb6ba7b9e054214f57 %global commit 94664ddd46a61d06862fa8fb6ba7b9e054214f57
%global shortcommit %(c=%{commit}; echo ${c:0:12}) %global shortcommit %(c=%{commit}; echo ${c:0:12})
%global py2_builddir python2
%global py3_builddir python3
%global srcname suds %global srcname suds
%global sum A python SOAP client %global sum A python SOAP client
%global desc \ %global desc \
@ -11,17 +9,10 @@ services. Objectification of types defined in the WSDL is provided\
without class generation. Programmers rarely need to read the WSDL since\ without class generation. Programmers rarely need to read the WSDL since\
services and WSDL based objects can be easily inspected. 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
Summary: %{sum} Summary: %{sum}
Name: python-suds Name: python-suds
Version: 0.7 Version: 0.7
Release: 0.15.%{shortcommit}%{?dist} Release: 0.16.%{shortcommit}%{?dist}
Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2 Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2
Patch0: fix_http_test.patch Patch0: fix_http_test.patch
Patch1: pytest4.patch Patch1: pytest4.patch
@ -32,75 +23,37 @@ URL: https://bitbucket.org/jurko/suds
%description %{desc} %description %{desc}
%package -n python2-%{srcname}
BuildRequires: %{py2_deps}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname} %{desc}
%if 0%{?with_python3}
%package -n python3-%{srcname} %package -n python3-%{srcname}
BuildRequires: python3-devel python3-pytest python3-six BuildRequires: python3-devel python3-pytest python3-six
Summary: %{sum} Summary: %{sum}
%{?python_provide:%python_provide python3-%{srcname}} %{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname} %{desc} %description -n python3-%{srcname} %{desc}
%endif
%prep %prep
%setup -c -q %setup -q -n jurko-suds-%{shortcommit}
mv jurko-suds-%{shortcommit} %{py2_builddir}
pushd %{py2_builddir}
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
popd
%if 0%{?with_python3}
cp -a %{py2_builddir} %{py3_builddir}
%endif
%build %build
pushd %{py2_builddir}
%py2_build
popd
%if 0%{?with_python3}
pushd %{py3_builddir}
%py3_build %py3_build
popd
%endif
%install %install
pushd %{py2_builddir}
%py2_install
popd
%if 0%{?with_python3}
pushd %{py3_builddir}
%py3_install %py3_install
popd
%endif
%check %check
pushd %{py2_builddir}
%{__python2} setup.py test
popd
%if 0%{?with_python3}
pushd %{py3_builddir}
%{__python3} setup.py test %{__python3} setup.py test
popd
%endif
%files -n python2-%{srcname}
%{python2_sitelib}/*
%doc %{py2_builddir}/README.rst
%license %{py2_builddir}/LICENSE.txt
%if 0%{?with_python3}
%files -n python3-%{srcname} %files -n python3-%{srcname}
%{python3_sitelib}/* %{python3_sitelib}/%{srcname}*/
%doc %{py3_builddir}/README.rst %doc README.rst
%license %{py3_builddir}/LICENSE.txt %license LICENSE.txt
%endif
%changelog %changelog
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 0.7-0.15.94664ddd46a6 * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7-0.15.94664ddd46a6
- Rebuilt for Python 3.8.0rc1 (#1748018) - Rebuilt for Python 3.8.0rc1 (#1748018)