!22 Update package

From: @Wangjunqi123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2022-12-03 08:28:58 +00:00 committed by Gitee
commit 04748cc8db
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 58 additions and 19 deletions

View File

@ -1,48 +1,87 @@
%global _empty_manifest_terminate_build 0
%global srcname suds
Name: python-suds2
Version: 1.1.1
Release: 4
Summary: A python SOAP client
License: LGPL-3.0
URL: https://github.com/suds-community/suds
Source0: https://github.com/suds-community/suds/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
Provides: python-suds = %{version}-%{release}
Obsoletes: python-suds < %{version}-%{release}
Name: python-suds2
Version: 1.1.2
Release: 1
Summary: A python SOAP client
License: LGPL-3.0-only
URL: https://github.com/suds-community/suds
Source0: https://files.pythonhosted.org/packages/35/e5/d9571b3f8757573ba0fd1ad56c20ca24c1f339db8731914fee6f657b7170/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
"Suds" is a lightweight SOAP-based web service client
for Python licensed under LGPL.
%package -n python3-suds2
%{?python_provide:%python_provide python3-suds2}
Summary: A python SOAP client
BuildRequires: python3-devel python3-pytest python3-six
Provides: python3-suds = %{version}-%{release} python3-suds-community = %{version}-%{release}
Obsoletes: python3-suds < %{version}-%{release}
Summary: A python SOAP client
Provides: python-suds2 = %{version}-%{release} python3-suds-community = %{version}-%{release}
Obsoletes: python-suds < %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-six
%description -n python3-suds2
"Suds" is a lightweight SOAP-based web service client
for Python licensed under LGPL.
%package help
Summary: Development documents and examples for suds
Provides: python3-suds2-doc
%description help
"Suds" is a lightweight SOAP-based web service client
for Python licensed under LGPL.
%prep
%autosetup -n %{srcname}-%{version} -p1
%autosetup -n suds-%{version}
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
%files -n python3-suds2
%files -n python3-suds2 -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%license LICENSE.txt
%{python3_sitelib}/*
%changelog
* Thu Dec 01 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.1.2-1
- Update package to version 1.1.2
* Tue Aug 23 2022 renliang16 <renliang@uniontech.com> - 1.1.1-4
- Fixed bug where python3-suds-community is not provided

Binary file not shown.

BIN
suds-1.1.2.tar.gz Normal file

Binary file not shown.