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