+%include /usr/lib/rpm/macros.python
Summary: A SOAP library for Python
+Summary(pl): Biblioteka SOAP dla Pythona
Name: python-SOAP
Version: 0.9.7
-Release: 1
-License: Python License
+Release: 5
+License: Python
+Group: Libraries/Python
Source0: http://prdownloads.sourceforge.net/pywebsvcs/SOAPpy097.tgz
URL: http://sourceforge.net/projects/pywebsvcs/
-Group: Development/Languages/Python
-Group(de): Entwicklung/Sprachen/Python
-Group(pl): Programowanie/Jêzyki/Python
-Requires: python >= 2.1
-BuildRequires: python-devel >= 2.1
+%pyrequires_eq python
+BuildRequires: python-devel >= 2.2.1
+BuildRequires: rpm-pythonprov
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define python_prefix %(echo `python -c "import sys; print sys.prefix"`)
-%define python_version %(echo `python -c "import sys; print sys.version[:3]"`)
-%define python_libdir %{python_prefix}/lib/python%{python_version}
-%define python_sitedir %{python_libdir}/site-packages
-
%description
-Web services for Python programmers, both client and servers.
-This includes SOAP, WSDL, UDDI, etc.
+Web services for Python programmers, both client and servers. This
+includes SOAP, WSDL, UDDI, etc.
+
+%description -l pl
+Serwisy WWW dla programistów Pythona, zarówno klient i serwery. W tym
+SOAP, WSDL, UDDI itp.
%prep
%setup -q -n SOAPpy097
-%build
-python -c 'import py_compile; py_compile.compile("SOAP.py");'
-python -O -c 'import py_compile; py_compile.compile("SOAP.py");'
-
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{python_sitedir}
+install -d $RPM_BUILD_ROOT%{py_sitedir}
-install SOAP.py? $RPM_BUILD_ROOT%{python_sitedir}
+install SOAP.py $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-gzip -9nf README CHANGELOG docs/*.txt
+gzip -9nf README CHANGELOG docs/*.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc *.gz docs/*.gz validate tests tools contrib bid *.py
-%{python_sitedir}/*.py?
+%{py_sitedir}/*.py?