d536e6
%global commit 94664ddd46a61d06862fa8fb6ba7b9e054214f57
d536e6
%global shortcommit %(c=%{commit}; echo ${c:0:12})
d536e6
%global py2_builddir python2
d536e6
%global py3_builddir python3
d536e6
%global srcname suds
d536e6
%global sum A python SOAP client
d536e6
%global desc \
d536e6
The suds project is a python soap web services client lib.  Suds leverages\
d536e6
python meta programming to provide an intuitive API for consuming web\
d536e6
services.  Objectification of types defined in the WSDL is provided\
d536e6
without class generation.  Programmers rarely need to read the WSDL since\
d536e6
services and WSDL based objects can be easily inspected.
d536e6
d536e6
%if 0%{?fedora} || 0%{?rhel} > 7
d536e6
%global with_python3 1
d536e6
%global py2_deps python2-devel python2-pytest python2-six
d536e6
%else
d536e6
%global py2_deps python-devel pytest python-six
d536e6
%endif
d536e6
d536e6
%if 0%{?rhel} > 7
d536e6
%bcond_with python2
d536e6
%else
d536e6
%bcond_without python2
d536e6
%endif
d536e6
d536e6
d536e6
Summary: %{sum}
d536e6
Name:  python-suds
d536e6
Version: 0.7
ead25f
Release: 0.11.%{shortcommit}%{?dist}
d536e6
Source0: https://bitbucket.org/jurko/suds/get/%{shortcommit}.tar.bz2
d536e6
Patch0: fix_http_test.patch
ead25f
Patch1: bz1921920-fix-fips-issue.patch
d536e6
License: LGPLv3+
d536e6
Group: Development/Libraries
d536e6
BuildArch: noarch
d536e6
URL: https://bitbucket.org/jurko/suds
d536e6
d536e6
%description %{desc}
d536e6
d536e6
%if %{with python2}
d536e6
%package -n python2-%{srcname}
d536e6
BuildRequires: %{py2_deps}
d536e6
Summary:        %{sum}
d536e6
%{?python_provide:%python_provide python2-%{srcname}}
d536e6
%description -n python2-%{srcname} %{desc}
d536e6
%endif #{with python2}
d536e6
d536e6
%if 0%{?with_python3}
d536e6
%package -n python3-%{srcname}
d536e6
BuildRequires: python3-devel python3-pytest python3-six
d536e6
Summary:        %{sum}
d536e6
%{?python_provide:%python_provide python3-%{srcname}}
d536e6
%description -n python3-%{srcname} %{desc}
d536e6
%endif
d536e6
d536e6
%prep
d536e6
%setup -c -q
d536e6
mv jurko-suds-%{shortcommit} %{py2_builddir}
d536e6
pushd %{py2_builddir}
d536e6
%patch0 -p1
335200
%patch1 -p1
d536e6
popd
d536e6
%if 0%{?with_python3}
d536e6
cp -a %{py2_builddir} %{py3_builddir}
d536e6
%endif
d536e6
d536e6
%build
d536e6
%if %{with python2}
d536e6
pushd %{py2_builddir}
d536e6
%py2_build
d536e6
popd
d536e6
%endif #{with python2}
d536e6
%if 0%{?with_python3}
d536e6
pushd %{py3_builddir}
d536e6
%py3_build
d536e6
popd
d536e6
%endif
d536e6
d536e6
%install
d536e6
%if %{with python2}
d536e6
pushd %{py2_builddir}
d536e6
%py2_install
d536e6
popd
d536e6
%endif #{with python2}
d536e6
%if 0%{?with_python3}
d536e6
pushd %{py3_builddir}
d536e6
%py3_install
d536e6
popd
d536e6
%endif
d536e6
d536e6
%check
d536e6
%if %{with python2}
d536e6
pushd %{py2_builddir}
d536e6
%{__python2} setup.py test
d536e6
popd
d536e6
%endif #{with python2}
d536e6
%if 0%{?with_python3}
d536e6
pushd %{py3_builddir}
d536e6
%{__python3} setup.py test
d536e6
popd
d536e6
%endif
d536e6
d536e6
%if %{with python2}
d536e6
%files -n python2-%{srcname}
d536e6
%{python2_sitelib}/*
d536e6
%doc %{py2_builddir}/README.rst
d536e6
%license %{py2_builddir}/LICENSE.txt
d536e6
%endif #{with python2}
d536e6
d536e6
%if 0%{?with_python3}
d536e6
%files -n python3-%{srcname}
d536e6
%{python3_sitelib}/*
d536e6
%doc %{py3_builddir}/README.rst
d536e6
%license %{py3_builddir}/LICENSE.txt
d536e6
%endif
d536e6
d536e6
%changelog
ead25f
* Tue Mar  8 2022 Oyvind Albrigtsen <oalbrigt@redhat.com> - 0.7-0.11.94664ddd46a6
335200
- Fix FIPS issue
ead25f
  Resolves: rhbz#1921920
335200
d536e6
* Mon Jul 09 2018 Petr Viktorin <pviktori@redhat.com> - 0.7-0.8.94664ddd46a6
d536e6
- Don't build the python2 subpackage in rhel>7
d536e6
  https://bugzilla.redhat.com/show_bug.cgi?id=1567165
d536e6
d536e6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-0.7.94664ddd46a6
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d536e6
d536e6
* Fri Dec 08 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.7-0.6.94664ddd46a6
d536e6
- Cleanup spec file conditionals
d536e6
d536e6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-0.5.94664ddd46a6
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d536e6
d536e6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-0.4.94664ddd46a6
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d536e6
d536e6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7-0.3.94664ddd46a6
d536e6
- Rebuild for Python 3.6
d536e6
d536e6
* Sat Feb 06 2016 Scott Talbert <swt@techie.net> - 0.7-0.2.94664ddd46a6
d536e6
- Applied patch from Haikel Guemar to support building on CentOS w/o Python 3
d536e6
- Move BRs to subpackages, support python- vs python2- BRs on non-Fedora
d536e6
d536e6
* Fri Jan 01 2016 Scott Talbert <swt@techie.net> - 0.7-0.1.94664ddd46a6
d536e6
- Switched to Jurko fork of suds
d536e6
- Modernize python packaging, build python3 package
d536e6
- Fixed bogus changelog dates
d536e6
d536e6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-8
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d536e6
d536e6
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.1-7
d536e6
- Replace python-setuptools-devel BR with python-setuptools
d536e6
d536e6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-6
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d536e6
d536e6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d536e6
d536e6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d536e6
d536e6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d536e6
d536e6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d536e6
d536e6
* Fri Oct 15 2010 jortel <jortel@redhat.com> - 0.4.1-1
d536e6
- 0.4.1
d536e6
d536e6
* Wed Sep 8 2010 jortel <jortel@redhat.com> - 0.4-1
d536e6
- Fix spelling errors in spec description.
d536e6
- Fix source0 URL warning.
d536e6
- Updated caching to not cache intermediate wsdls.
d536e6
- Added DocumentCache which caches verified XML documents as text. User can choose.
d536e6
- Added cachingpolicy option to allow user to specify whether to cache XML documents or the WSDL object.
d536e6
- Provided for repeating values in reply for message parts consistent with way handled in nested objects.
d536e6
- Added charset=utf-8 to stock content-type http header.
d536e6
- Added  to outgoing SOAP messages.
d536e6
- Detection of faults in successful (http=200) replies and raise WebFault. Search for <soapenv:Fault/>.
d536e6
- Add plugins facility. 
d536e6
- Fixed Tickets: #251, #313, #314, #334
d536e6
d536e6
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.9-2
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
d536e6
d536e6
* Thu Dec 17 2009 jortel <jortel@redhat.com> - 0.3.9-1
d536e6
- Bumped python requires to 2.4
d536e6
- Replaced stream-based caching in the transport package with document-based caching.
d536e6
- Caches pickled Document objects instead of XML text. 2x Faster!
d536e6
- No more SAX parsing exceptions on damaged or incomplete cached files. 
d536e6
- Cached WSDL objects. Entire Definitions object including contained Schema object cached via pickle.
d536e6
- Copy of soap encoding schema packaged with suds.
d536e6
- Refactor Transports to use ProxyHandler instead of urllib2.Request.set_proxy().
d536e6
- Added WSSE enhancements <Timestamp/> and <Expires/> support. See: Timestamp token. 
d536e6
- Fixed Tickets: #256, #291, #294, #295, #296
d536e6
d536e6
* Wed Dec 9 2009 jortel <jortel@redhat.com> - 0.3.8-1
d536e6
- Includeds Windows NTLM Transport.
d536e6
- Add missing self.messages in Client.clone().
d536e6
- Changed default behavior for WSDL PartElement to be optional.
d536e6
- Add support for services/ports defined without <address/> element in WSDL.
d536e6
- Fix sax.attribute.Element.attrib() to find by name only when ns is not specified; renamed to Element.getAttribute().
d536e6
- Update HttpTransport to pass timeout parameter to urllib2 open() methods when supported by urllib2.
d536e6
- Add null class to pass explicit NULL values for parameters and optional elements.
d536e6
- Soap encoded array (soap-enc:Array) enhancement for rpc/encoded.
d536e6
  Arrays passed as python arrays - works like document/literal now.
d536e6
  No more using the factory to create the Array.
d536e6
  Automatically includes arrayType attribute.  Eg: soap-enc:arrayType="Array[2]".
d536e6
  Reintroduced ability to pass complex (objects) using python dict instead of suds object via factory.
d536e6
- Fixed tickets: #84, #261, #262, #263, #265, #266, #278, #280, #282.
d536e6
d536e6
* Fri Oct 16 2009 jortel <jortel@redhat.com> - 0.3.7-1
d536e6
- Better soap header support
d536e6
- Added new transport HttpAuthenticated for active (not passive) basic authentication.
d536e6
- New options (prefixes, timeout, retxml)
d536e6
- WSDL processing enhancements.
d536e6
- Expanded builtin XSD type support.
d536e6
- Fixed <xs:iniclude/>
d536e6
- Better XML date/datetime conversion.
d536e6
- Client.clone() method added for lightweight copy of client object.
d536e6
- XSD processing fixes/enhancements.
d536e6
- Better <simpleType/> by <xs:restriction/> support.
d536e6
- Performance enhancements. 
d536e6
- Fixed tickets: #65, #232, #233, #235, #241, #242, #244, #247, #254, #254, #256, #257, #258
d536e6
d536e6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
d536e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d536e6
d536e6
* Fri May 1 2009 jortel <jortel@redhat.com> - 0.3.6-1
d536e6
- Change hard coded /tmp/suds to tempfile.gettempdir() and create suds/ on demand.
d536e6
- Fix return type for Any.get_attribute().
d536e6
- Update http caching to ignore file:// urls.
d536e6
- Better logging of messages when only the reply is injected.
d536e6
- Fix XInteger and XFloat types to translate returned arrays properly.
d536e6
- Fix xs:import schema with same namespace.
d536e6
- Update parser to not load external references and add Import.bind() for XMLSchema.xsd location.
d536e6
- Add schema doctor - used to patch XSDs at runtime.  (See Options.doctor)
d536e6
- Fix deprecation warnings in python 2.6.
d536e6
- Add behavior for @default defined on <element/>.
d536e6
- Change @xsi:type value to always be qualified for doc/literal.
d536e6
- Add Option.xstq option to control when @xsi:type is qualified.
d536e6
- Fixed Tickets: #64, #129, #205, #206, #217, #221, #222, #224, #225, #228, #229, #230
d536e6
d536e6
* Wed Feb 25 2009 jortel <jortel@redhat.com> - 0.3.5-1
d536e6
- Adds http caching.  Default is (1) day.
d536e6
- Removed checking fc version in spec since no longer building < fc9.
d536e6
- Updated makefile to roll tarball with tar.sh.
d536e6
- Moved bare/wrapped determination to wsdl for document/literal.
d536e6
- Refactored Transport to provide better visibility into http headers.
d536e6
- Fixed Tickets: #207, #207, #209, #210, #212, #214, #215
d536e6
d536e6
* Mon Dec 08 2008 jortel <jortel@redhat.com> - 0.3.4-1
d536e6
- Static (automatic) Import.bind('http://schemas.xmlsoap.org/soap/encoding/')
d536e6
- Basic ws-security with {{{UsernameToken}}} and clear-text password only.
d536e6
- Add support for ''sparse'' soap headers via passing dictionary
d536e6
- Add support for arbitrary user defined soap headers
d536e6
- Fixes service operations with multiple soap header entries.
d536e6
- Schema loading and dereferencing algorithm enhancements.
d536e6
- Nested soap multirefs fixed.
d536e6
- Better (true) support for elementFormDefault="unqualified" provides more accurate namespaing.
d536e6
- WSDL part types no longer default to WSDL targetNamespace.
d536e6
- Fixed Tickets: #4, #6, #21, #32, #62, #66, #71, #72, #114, #155, #201.
d536e6
d536e6
* Thu Dec 04 2008 jortel <jortel@redhat.com> - 0.3.3-2
d536e6
- Rebuild for Python 2.6
d536e6
d536e6
* Thu Dec 04 2008 jortel <jortel@redhat.com> - 0.3.3-1
d536e6
- No longer installs (tests) package.
d536e6
- Implements API-3 proposal
d536e6
    Pluggable transport
d536e6
    Keyword method arguments
d536e6
    Baisc http authentication in default transport
d536e6
- Add namespace prefix normalization in soap message.
d536e6
- Better soap message pruning of empty nodes.
d536e6
- Fixed Tickets: #51 - #60.
d536e6
d536e6
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.3.2-2
d536e6
- Rebuild for Python 2.6
d536e6
d536e6
* Thu Nov 06 2008 jortel <jortel@redhat.com> - 0.3.2-1
d536e6
- Add SOAP MultiRef support
d536e6
- Add support for new schema tags:
d536e6
    <xs:include/>
d536e6
    <xs:simpleContent/>
d536e6
    <xs:group/>
d536e6
    <xs:attributeGroup/>
d536e6
- Added support for new xs <--> python type conversions:
d536e6
    xs:int
d536e6
    xs:long
d536e6
    xs:float
d536e6
    xs:double
d536e6
- Revise marshaller and binding to further sharpen the namespacing of nodes produced.
d536e6
- Infinite recursion fixed in ''xsd'' package dereference() during schema loading.
d536e6
- Add support for <wsdl:import/> of schema files into the wsdl root <definitions/>.
d536e6
- Fix double encoding of (&)
d536e6
- Add Client API:
d536e6
    setheaders()  - Same as keyword but works for all invocations.
d536e6
    addprefix()   - Mapping of namespace prefixes.
d536e6
    setlocation() - Override the location in the wsdl.
d536e6
    setproxy()    - Same as proxy keyword but for all invocations.
d536e6
- Add proper namespace prefix for soap headers.
d536e6
- Fixed Tickets: #5, #12, #34, #37, #40, #44, #45, #46, #48, #49, #50, #51
d536e6
d536e6
* Mon Nov 03 2008 jortel <jortel@redhat.com> - 0.3.1-5
d536e6
- Add LICENSE to %%doc.
d536e6
d536e6
* Tue Oct 28 2008 jortel <jortel@redhat.com> - 0.3.1-4
d536e6
- Changes acc. #466496 Comment #8
d536e6
d536e6
* Mon Oct 27 2008 jortel <jortel@redhat.com> - 0.3.1-3
d536e6
- Add "rm -rf $RPM_BUILD_ROOT" to install
d536e6
d536e6
* Thu Oct 16 2008 jortel <jortel@redhat.com> - 0.3.1-2
d536e6
- Changes acc. #466496 Comment #1
d536e6
d536e6
* Fri Oct 10 2008 jortel <jortel@redhat.com> - 0.3.1-1
d536e6
- Extends the support for multi-port services introduced earlier. This addition, 
d536e6
  provides for multiple services to define the *same* method and suds will
d536e6
  handle it properly.  See section 'SERVICES WITH MULTIPLE PORTS:'
d536e6
- Add support for multi-document document/literal soap binding style.
d536e6
  See section 'MULTI-DOCUMENT Docuemnt/Literal:'
d536e6
- Add support for (xs:group, xs:attributeGroup) tags.
d536e6
- Add Client.last_sent() and Client.last_received().