File python-soappy.spec of Package python-soappy
#
# spec file for package python-soappy
#
# Copyright (c) 2014 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/
#
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%define modname SOAPpy
Name: python-soappy
Version: 0.12.5
Release: 0
Summary: Simple to Use SOAP Library for Python
License: BSD-3-Clause
Group: Development/Libraries/Python
Url: https://github.com/kiorky/SOAPpy
Source: https://pypi.python.org/packages/source/S/SOAPpy/%{modname}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-fpconst
BuildRequires: python-setuptools
BuildRequires: python-wstools
BuildRequires: pyxml
Requires: python-fpconst
Requires: python-wstools
Requires: pyxml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%{py_requires}
%description
The goal of the SOAPpy team is to provide a full-featured SOAP library for
Python that is very simple to use and that fully supports dynamic interaction
between clients and servers.
%prep
%setup -q -n %{modname}-%{version}
# Remove spurious-executable-perm
find . -type f -exec chmod a-x {} \;
find . -type f -name .cvsignore -print0 | xargs -0 rm
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc CHANGES.txt ChangeLog LICENSE README.txt TODO bid contrib docs tools
%{python_sitelib}
%changelog