1 # TODO: how to run tests in %build?
2 Summary: A SOAP library for Python
3 Summary(pl.UTF-8): Biblioteka SOAP dla Pythona
8 Group: Libraries/Python
9 #Source0Download: https://github.com/kiorky/SOAPpy/releases
10 Source0: https://github.com/kiorky/SOAPpy/archive/%{version}/SOAPpy-%{version}.tar.gz
11 # Source0-md5: c93de2e7827bcbb6841a8a0ca1de5c59
12 Patch0: %{name}-urltry.patch
13 URL: https://github.com/kiorky/SOAPpy
14 BuildRequires: python-devel >= 1:2.3
15 BuildRequires: python-setuptools
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.714
18 BuildRequires: sed >= 4.0
19 Requires: python-modules
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Web services for Python programmers, both client and servers. This
25 includes SOAP, WSDL, UDDI, etc.
27 %description -l pl.UTF-8
28 Serwisy WWW dla programistów Pythona, zarówno klient i serwery. W tym
32 %setup -q -n SOAPpy-%{version}
34 rm -f src/SOAPpy/*.orig
40 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45 cp -pr bid contrib tests tools validate $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46 %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*/*.py
47 %{__sed} -i -e '1s,#!/usr/bin/python\s*$,#!%{__python},' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/testleak.py
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc CHANGES.txt LICENSE README.txt TODO old.Changelog docs/*.txt
57 %dir %{py_sitescriptdir}/SOAPpy
58 %{py_sitescriptdir}/SOAPpy/*.py[co]
59 %if "%{py_ver}" > "2.4"
60 %{py_sitescriptdir}/SOAPpy-%{version}-py2.7.egg-info
62 %{_examplesdir}/%{name}-%{version}