adding
This commit is contained in:
parent
7cbf20baaa
commit
c3e1899d97
4 changed files with 370 additions and 1 deletions
|
|
@ -1,4 +1,11 @@
|
|||
rpmbuild
|
||||
========
|
||||
|
||||
rpmbuild
|
||||
Copyright (c) 2013 troyengel
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
|
|
|||
85
SOAPpy-0.12.0-python25.patch
Normal file
85
SOAPpy-0.12.0-python25.patch
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
--- SOAPpy/Client.py.orig 2005-02-21 14:27:09.000000000 -0600
|
||||
+++ SOAPpy/Client.py 2013-03-07 17:03:34.505592966 -0600
|
||||
@@ -1,3 +1,5 @@
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
"""
|
||||
################################################################################
|
||||
#
|
||||
@@ -43,8 +45,6 @@
|
||||
ident = '$Id: Client.py,v 1.27 2005/02/21 20:27:09 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
#import xml.sax
|
||||
import urllib
|
||||
from types import *
|
||||
--- SOAPpy/GSIServer.py.orig 2005-02-15 10:32:22.000000000 -0600
|
||||
+++ SOAPpy/GSIServer.py 2013-03-07 17:03:53.873769340 -0600
|
||||
@@ -1,3 +1,5 @@
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
"""
|
||||
GSIServer - Contributed by Ivan R. Judson <judson@mcs.anl.gov>
|
||||
|
||||
@@ -46,8 +48,6 @@
|
||||
ident = '$Id: GSIServer.py,v 1.5 2005/02/15 16:32:22 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
#import xml.sax
|
||||
import re
|
||||
import socket
|
||||
--- SOAPpy/NS.py.orig 2005-02-15 10:32:22.000000000 -0600
|
||||
+++ SOAPpy/NS.py 2013-03-07 17:04:10.274918735 -0600
|
||||
@@ -1,3 +1,5 @@
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
"""
|
||||
################################################################################
|
||||
#
|
||||
@@ -40,8 +42,6 @@
|
||||
################################################################################
|
||||
"""
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
ident = '$Id: NS.py,v 1.4 2005/02/15 16:32:22 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
--- SOAPpy/Server.py.orig 2005-02-15 10:32:22.000000000 -0600
|
||||
+++ SOAPpy/Server.py 2013-03-07 17:04:29.155090633 -0600
|
||||
@@ -1,3 +1,5 @@
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
"""
|
||||
################################################################################
|
||||
#
|
||||
@@ -43,8 +45,6 @@
|
||||
ident = '$Id: Server.py,v 1.21 2005/02/15 16:32:22 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
#import xml.sax
|
||||
import re
|
||||
import socket
|
||||
--- SOAPpy/Types.py.orig 2005-02-21 22:29:43.000000000 -0600
|
||||
+++ SOAPpy/Types.py 2013-03-07 17:04:47.938261690 -0600
|
||||
@@ -1,3 +1,5 @@
|
||||
+from __future__ import nested_scopes
|
||||
+
|
||||
"""
|
||||
################################################################################
|
||||
# Copyright (c) 2003, Pfizer
|
||||
@@ -36,8 +38,6 @@
|
||||
ident = '$Id: Types.py,v 1.19 2005/02/22 04:29:43 warnes Exp $'
|
||||
from version import __version__
|
||||
|
||||
-from __future__ import nested_scopes
|
||||
-
|
||||
import UserList
|
||||
import base64
|
||||
import cgi
|
||||
141
SOAPpy-0.12.0.spec
Normal file
141
SOAPpy-0.12.0.spec
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
%if !(0%{?rhel} > 6 || 0%{?fedora} >= 13)
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%endif
|
||||
|
||||
Name: SOAPpy
|
||||
Version: 0.12.0
|
||||
Release: 1.te
|
||||
Summary: Full-featured SOAP library for Python
|
||||
|
||||
Group: Development/Languages
|
||||
# The entire source is licensed under the 3 clause BSD except for the following
|
||||
# files which are under the ZPLv2.0:
|
||||
# SOAPpy/wstools/Utility.py
|
||||
# SOAPpy/wstools/XMLSchema.py
|
||||
# SOAPpy/wstools/WSDLTools.py
|
||||
License: BSD and ZPLv2.0
|
||||
URL: http://pywebsvcs.sourceforge.net
|
||||
Source0: http://dl.sourceforge.net/pywebsvcs/SOAP.py/%{version}/%{name}-%{version}.tar.gz
|
||||
# from __future__ imports need to be at the beginning of files
|
||||
Patch0: %{name}-%{version}-python25.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-fpconst >= 0.6.0
|
||||
Requires: python-fpconst >= 0.6.0
|
||||
Requires: m2crypto
|
||||
|
||||
%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
|
||||
%patch0 -p0 -b .python25
|
||||
|
||||
# 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/*
|
||||
|
||||
# fix file encodings
|
||||
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
|
||||
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
# testTime is meant to pass, testArray is a known failure.
|
||||
# ERROR: testTime (__main__.SOAPTestCase)
|
||||
# FAIL: testArray (__main__.SOAPTestCase)
|
||||
PYTHONPATH="$RPM_BUILD_ROOT%{python_sitelib}" %{__python} tests/SOAPtest.py || :
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog LICENSE README RELEASE_INFO TODO docs/ contrib/ validate/ bid/ tools/
|
||||
%{python_sitelib}/%{name}*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 07 2013 Troy Engel <tengel@sonic.net> - 0.12.0-1.te
|
||||
- version bump to 0.12.0
|
||||
- regenerate __future__ patch
|
||||
|
||||
* Wed Jul 25 2012 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.11.6-15
|
||||
- Remove the Requires to PyXML
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Sat Jul 01 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.11.6-12
|
||||
- Add m2crypto as R
|
||||
- Change License
|
||||
- Update spec
|
||||
- All these changes comes from Toshio's patch BZRH #602932
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.6-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.6-8
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
* Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 0.11.6-7
|
||||
- Simplify %%files
|
||||
- Remove no longer needed Obsoletes/Provides
|
||||
- Update %%license tag
|
||||
|
||||
* Fri Dec 08 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-6
|
||||
- Readd python-devel to BR
|
||||
- Add patch to build with python 2.5
|
||||
- Add versioned Obsoletes
|
||||
- python(abi) = 0:2.5 rebuild
|
||||
|
||||
* Wed Sep 06 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-5
|
||||
- No longer %%ghost pyo files bug #205436
|
||||
|
||||
* Wed Aug 30 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-4
|
||||
- FC6 Rebuild
|
||||
|
||||
* Sat May 06 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-3
|
||||
- Add Provides/Obsolete for python-SOAPpy
|
||||
|
||||
* Mon Apr 17 2006 Christopher Stone <chris.stone@gmail.com> 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 <chris.stone@gmail.com> 0.11.6-1
|
||||
- Initial RPM release
|
||||
136
SOAPpy-0.12.5.spec
Normal file
136
SOAPpy-0.12.5.spec
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
%if !(0%{?rhel} > 6 || 0%{?fedora} >= 13)
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%endif
|
||||
|
||||
Name: SOAPpy
|
||||
Version: 0.12.5
|
||||
Release: 1.te
|
||||
Summary: Full-featured SOAP library for Python
|
||||
|
||||
Group: Development/Languages
|
||||
# The entire source is licensed under the 3 clause BSD except for the following
|
||||
# files which are under the ZPLv2.0:
|
||||
# SOAPpy/wstools/Utility.py
|
||||
# SOAPpy/wstools/XMLSchema.py
|
||||
# SOAPpy/wstools/WSDLTools.py
|
||||
License: BSD and ZPLv2.0
|
||||
URL: https://pypi.python.org/pypi/SOAPpy
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-fpconst >= 0.6.0
|
||||
Requires: python-fpconst >= 0.6.0
|
||||
Requires: m2crypto
|
||||
|
||||
%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 executable flag from example scripts
|
||||
chmod -x bid/* contrib/* docs/* tools/* validate/*
|
||||
|
||||
# fix file encodings
|
||||
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
|
||||
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
# testTime is meant to pass, testArray is a known failure.
|
||||
# ERROR: testTime (__main__.SOAPTestCase)
|
||||
# FAIL: testArray (__main__.SOAPTestCase)
|
||||
PYTHONPATH="$RPM_BUILD_ROOT%{python_sitelib}" %{__python} tests/SOAPtest.py || :
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog LICENSE CHANGES.txt README.txt PKG-INFO TODO docs/ contrib/ validate/ bid/ tools/
|
||||
%{python_sitelib}/%{name}*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 07 2013 Troy Engel <tengel@sonic.net> - 0.12.5-1.te
|
||||
- version bump to 0.12.5
|
||||
- code from https://pypi.python.org/pypi/SOAPpy
|
||||
- drop __future__ patch, fixed upstream in 0.12.1
|
||||
- shebang fix no longer needed in SPEC (wstools moved to ZSI)
|
||||
- updated docs section
|
||||
|
||||
* Thu Mar 07 2013 Troy Engel <tengel@sonic.net> - 0.12.0-1.te
|
||||
- version bump to 0.12.0
|
||||
- regenerate __future__ patch
|
||||
|
||||
* Wed Jul 25 2012 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.11.6-15
|
||||
- Remove the Requires to PyXML
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Sat Jul 01 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.11.6-12
|
||||
- Add m2crypto as R
|
||||
- Change License
|
||||
- Update spec
|
||||
- All these changes comes from Toshio's patch BZRH #602932
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.6-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.6-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.11.6-8
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
* Thu May 22 2008 Christopher Stone <chris.stone@gmail.com> 0.11.6-7
|
||||
- Simplify %%files
|
||||
- Remove no longer needed Obsoletes/Provides
|
||||
- Update %%license tag
|
||||
|
||||
* Fri Dec 08 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-6
|
||||
- Readd python-devel to BR
|
||||
- Add patch to build with python 2.5
|
||||
- Add versioned Obsoletes
|
||||
- python(abi) = 0:2.5 rebuild
|
||||
|
||||
* Wed Sep 06 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-5
|
||||
- No longer %%ghost pyo files bug #205436
|
||||
|
||||
* Wed Aug 30 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-4
|
||||
- FC6 Rebuild
|
||||
|
||||
* Sat May 06 2006 Christopher Stone <chris.stone@gmail.com> 0.11.6-3
|
||||
- Add Provides/Obsolete for python-SOAPpy
|
||||
|
||||
* Mon Apr 17 2006 Christopher Stone <chris.stone@gmail.com> 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 <chris.stone@gmail.com> 0.11.6-1
|
||||
- Initial RPM release
|
||||
Reference in a new issue