# # spec file for package python-ZSI # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define skip_python3 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define tarname ZSI %define tarversion 2.0-rc3 Name: python-ZSI Version: 2.0_rc3 Release: 2.2 Url: http://pywebsvcs.sf.net Summary: Zolera SOAP Infrastructure License: Python Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/Z/ZSI/ZSI-2.0-rc3.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} Requires: python-PyXML >= 0.8.3 BuildArch: noarch %python_subpackages %description ZSI, the Zolera SOAP Infrastructure, is a pure-Python module that provides an implementation of SOAP messaging, as described in SOAP 1.1 Specification (see http://www.w3.org/TR/soap). It can also be used to build applications using SOAP Messages with Attachments (see http://www.w3.org/TR/SOAP-attachments). ZSI is intended to make it easier to write web services in Python. In particular, ZSI parses and generates SOAP messages, and converts between native Python datatypes and SOAP syntax. Simple dispatch and invocation methods are supported. There are no known bugs. Its only known limitation is that it cannot handle multi-dimensional arrays. %prep %setup -q -n %{tarname}-%{tarversion} find doc -type f -name .cvsignore -exec rm {} \; # Remove CVS files rm doc/zsi.l2h~ # Remove backup file sed -i '1d' ZSI/{auth,client,digest_auth,dispatch,fault,generate/wsdl2dispatch,__init__,parse,resolvers,schema,ServiceContainer,TCapache,TCcompound,TCnumbers,TC,TCtimes,writer,wstools/c14n,wstools/__init__}.py # Remove she-bang line chmod -x doc/guide02-wsdl2py.tex # Remove executable bit from tex file %build %python_build %install %python_install %fdupes %{buildroot}/%{_prefix} for p in wsdl2dispatch wsdl2py do %python_clone -a %{buildroot}%{_bindir}/$p done %post %python_install_alternative wsdl2dispatch wsdl2py %postun %python_uninstall_alternative wsdl2dispatch wsdl2py %clean rm -rf %{buildroot} %files %{python_files} %defattr(-,root,root,-) %doc CHANGES README doc/* samples %python_alternative %{_bindir}/wsdl2dispatch %python_alternative %{_bindir}/wsdl2py %{python_sitearch}/* %changelog * Sun Jul 3 2011 saschpe@gmx.de - Update to version 2.0-rc3 * This is the real version - Spec file cleanup: * Don't cleanup buildroot in install section * Remove %%changelog entries from spec file * Use proper SUSE version macros * Use fdupes and fix several other rpmlint warnings * Fri Sep 19 2008 dmueller@suse.de - Initial package (2.0)