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