%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: SOAPpy Version: 0.12.0 Release: dev%{?dist} Summary: Full-featured SOAP library for Python Group: Development/Languages License: Python Software Foundation License URL: http://pywebsvcs.sourceforge.net Source0: http://dl.sourceforge.net/pywebsvcs/%{name}-%{version}-dev.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-fpconst >= 0.6.0 Requires: python-fpconst >= 0.6.0 Requires: PyXML >= 0.8.3 Obsoletes: python-SOAPpy Provides: python-SOAPpy = %{version}-%{release} Packager: Infiscape Corporation %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 # remove shell bangs pushd %{name}/wstools for file in $(find . -type f -name "*.py"); do cp $file $file.orig grep -v "\#\! \/usr\/bin" $file.orig > $file rm -f $file.orig done popd # remove executable flag from example scripts chmod -x bid/* contrib/* docs/* tools/* validate/* %build CFLAGS="%{optflags}" %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %check # testTime is meant to pass, testArray is a known failure. # ERROR: testTime (__main__.SOAPTestCase) # FAIL: testArray (__main__.SOAPTestCase) PYTHONPATH="%{buildroot}%{python_sitelib}" %{__python} tests/SOAPtest.py || : %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc ChangeLog LICENSE README RELEASE_INFO TODO docs/ contrib/ validate/ bid/ tools/ %dir %{python_sitelib}/%{name} %{python_sitelib}/%{name}/*.py %{python_sitelib}/%{name}/*.pyc %{python_sitelib}/%{name}/*.pyo %dir %{python_sitelib}/%{name}/wstools %{python_sitelib}/%{name}/wstools/*.py %{python_sitelib}/%{name}/wstools/*.pyc %{python_sitelib}/%{name}/wstools/*.pyo %changelog * Wed Sep 06 2006 Christopher Stone 0.11.6-5 - No longer %%ghost pyo files bug #205436 * Wed Aug 30 2006 Christopher Stone 0.11.6-4 - FC6 Rebuild * Sat May 06 2006 Christopher Stone 0.11.6-3 - Add Provides/Obsolete for python-SOAPpy * Mon Apr 17 2006 Christopher Stone 0.11.6-2 - Add docs directory to %%doc - Remove PyXML BR - Removed executable bits from doc files - Added call to run test script in %%check - Added examples to %%doc * Sat Apr 11 2006 Christopher Stone 0.11.6-1 - Initial RPM release