diff --git a/python-suds2.spec b/python-suds2.spec index e118078..3b09dea 100644 --- a/python-suds2.spec +++ b/python-suds2.spec @@ -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 - 1.1.2-1 +- Update package to version 1.1.2 + * Tue Aug 23 2022 renliang16 - 1.1.1-4 - Fixed bug where python3-suds-community is not provided diff --git a/suds-1.1.1.tar.gz b/suds-1.1.1.tar.gz deleted file mode 100644 index 4b46a1b..0000000 Binary files a/suds-1.1.1.tar.gz and /dev/null differ diff --git a/suds-1.1.2.tar.gz b/suds-1.1.2.tar.gz new file mode 100644 index 0000000..e007acf Binary files /dev/null and b/suds-1.1.2.tar.gz differ