File python-ZSI.spec of Package python-ZSI

#
# 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/
#

Name:           python-ZSI
Version:        2.0_rc3
Release:        0
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1010
BuildRequires:  fdupes
%endif
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%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 ZSI-2.0-rc3
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 setup.py build
%if 0%{?suse_version} > 1010
%fdupes -s doc
%endif

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGES README doc/* samples
%{_bindir}/wsdl2dispatch
%{_bindir}/wsdl2py
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by