Subpackage python2-suds has been removed
This commit is contained in:
parent
4870c6009a
commit
3e892ec683
@ -1,7 +1,5 @@
|
||||
%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 \
|
||||
@ -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\
|
||||
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}
|
||||
Name: python-suds
|
||||
Version: 0.7
|
||||
Release: 0.15.%{shortcommit}%{?dist}
|
||||
Release: 0.16.%{shortcommit}%{?dist}
|
||||
Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2
|
||||
Patch0: fix_http_test.patch
|
||||
Patch1: pytest4.patch
|
||||
@ -32,75 +23,37 @@ URL: https://bitbucket.org/jurko/suds
|
||||
|
||||
%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}
|
||||
BuildRequires: python3-devel python3-pytest python3-six
|
||||
Summary: %{sum}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
%description -n python3-%{srcname} %{desc}
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -c -q
|
||||
mv jurko-suds-%{shortcommit} %{py2_builddir}
|
||||
pushd %{py2_builddir}
|
||||
%setup -q -n jurko-suds-%{shortcommit}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
popd
|
||||
%if 0%{?with_python3}
|
||||
cp -a %{py2_builddir} %{py3_builddir}
|
||||
%endif
|
||||
|
||||
%build
|
||||
pushd %{py2_builddir}
|
||||
%py2_build
|
||||
popd
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3_builddir}
|
||||
%py3_build
|
||||
popd
|
||||
%endif
|
||||
|
||||
%install
|
||||
pushd %{py2_builddir}
|
||||
%py2_install
|
||||
popd
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3_builddir}
|
||||
%py3_install
|
||||
popd
|
||||
%endif
|
||||
|
||||
%check
|
||||
pushd %{py2_builddir}
|
||||
%{__python2} setup.py test
|
||||
popd
|
||||
%if 0%{?with_python3}
|
||||
pushd %{py3_builddir}
|
||||
%{__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}
|
||||
%{python3_sitelib}/*
|
||||
%doc %{py3_builddir}/README.rst
|
||||
%license %{py3_builddir}/LICENSE.txt
|
||||
%endif
|
||||
%{python3_sitelib}/%{srcname}*/
|
||||
%doc README.rst
|
||||
%license LICENSE.txt
|
||||
|
||||
%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
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user