]>
Commit | Line | Data |
---|---|---|
3fb43a1a | 1 | # TODO: how to run tests in %build? |
dd4ee293 | 2 | Summary: A SOAP library for Python |
34e4e606 | 3 | Summary(pl.UTF-8): Biblioteka SOAP dla Pythona |
dd4ee293 | 4 | Name: python-SOAP |
3fb43a1a JB |
5 | Version: 0.12.22 |
6 | Release: 1 | |
7 | License: BSD | |
5f40c204 | 8 | Group: Libraries/Python |
3fb43a1a JB |
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 | |
f168b4e0 | 12 | Patch0: %{name}-urltry.patch |
3fb43a1a | 13 | URL: https://github.com/kiorky/SOAPpy |
b1078dd7 | 14 | BuildRequires: python-devel >= 1:2.3 |
3fb43a1a | 15 | BuildRequires: python-setuptools |
51e7fe5d | 16 | BuildRequires: rpm-pythonprov |
3fb43a1a JB |
17 | BuildRequires: rpmbuild(macros) >= 1.714 |
18 | BuildRequires: sed >= 4.0 | |
19 | Requires: python-modules | |
dd4ee293 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
dd4ee293 | 23 | %description |
35ca3d0b | 24 | Web services for Python programmers, both client and servers. This |
25 | includes SOAP, WSDL, UDDI, etc. | |
dd4ee293 | 26 | |
b6eefdd3 JR |
27 | %description -l pl.UTF-8 |
28 | Serwisy WWW dla programistów Pythona, zarówno klient i serwery. W tym | |
35ca3d0b | 29 | SOAP, WSDL, UDDI itp. |
31aa0424 | 30 | |
dd4ee293 | 31 | %prep |
dabb9b71 | 32 | %setup -q -n SOAPpy-%{version} |
f168b4e0 | 33 | %patch0 -p1 |
3fb43a1a | 34 | rm -f src/SOAPpy/*.orig |
dabb9b71 AF |
35 | |
36 | %build | |
71171add | 37 | %py_build |
dd4ee293 | 38 | |
dd4ee293 | 39 | %install |
40 | rm -rf $RPM_BUILD_ROOT | |
5696cc07 | 41 | |
71171add | 42 | %py_install |
5696cc07 | 43 | |
3fb43a1a JB |
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 | |
48 | ||
49 | %py_postclean | |
e57d0fdb | 50 | |
dd4ee293 | 51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
3fb43a1a | 56 | %doc CHANGES.txt LICENSE README.txt TODO old.Changelog docs/*.txt |
002a8f5f | 57 | %dir %{py_sitescriptdir}/SOAPpy |
3fb43a1a | 58 | %{py_sitescriptdir}/SOAPpy/*.py[co] |
3f72a829 JR |
59 | %if "%{py_ver}" > "2.4" |
60 | %{py_sitescriptdir}/SOAPpy-%{version}-py2.7.egg-info | |
61 | %endif | |
3fb43a1a | 62 | %{_examplesdir}/%{name}-%{version} |