diff --git a/.python-webob.metadata b/.python-webob.metadata new file mode 100644 index 0000000..4715454 --- /dev/null +++ b/.python-webob.metadata @@ -0,0 +1 @@ +1c85d450dbad7fa0edc89539f456a1e6445d96c5 SOURCES/WebOb-1.2.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/README.Fedora b/SOURCES/README.Fedora new file mode 100644 index 0000000..26da48b --- /dev/null +++ b/SOURCES/README.Fedora @@ -0,0 +1,12 @@ + +To use version 1.2.1 of python WebOB it is nescesary +to explicitly load it so as not to get the system version +of WebOb. + +Manually modifying sys.path is an easy and reliable way +to use this module. + +>>> import sys +>>> sys.path.insert(0, '/usr/lib/python2.7/site-packages/WebOb-1.2.1-py2.7.egg') +>>> import webob + diff --git a/SOURCES/webob-1.2.3-test-headers2-fix.patch b/SOURCES/webob-1.2.3-test-headers2-fix.patch new file mode 100644 index 0000000..2b5cb04 --- /dev/null +++ b/SOURCES/webob-1.2.3-test-headers2-fix.patch @@ -0,0 +1,25 @@ +From 3a2c16f2f72dbca5ddfce7f649daf426c2125fed Mon Sep 17 00:00:00 2001 +From: Aaron DeVore +Date: Tue, 30 Oct 2012 11:55:30 -0700 +Subject: [PATCH] Fix issue #75: depending on dict order in test_headers2 + +--- + tests/test_request.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/tests/test_request.py b/tests/test_request.py +index f219d36..3e38e7a 100644 +--- a/tests/test_request.py ++++ b/tests/test_request.py +@@ -2662,7 +2662,7 @@ class TestRequest_functional(unittest.TestCase): + self.assertTrue(i in r.headers and + 'HTTP_'+i.upper().replace('-', '_') in r.environ) + r.headers = {'Server':'Apache'} +- self.assertEqual(list(r.environ.keys()), ['a', 'HTTP_SERVER']) ++ self.assertEqual(set(r.environ.keys()), set(['a', 'HTTP_SERVER'])) + + def test_host_url(self): + # Request has a read only property host_url that combines several +-- +1.7.6.4 + diff --git a/SPECS/python-webob.spec b/SPECS/python-webob.spec new file mode 100644 index 0000000..22c5f9f --- /dev/null +++ b/SPECS/python-webob.spec @@ -0,0 +1,251 @@ +%if 0%{?fedora} +%global with_python3 1 +%{!?py3ver: %global py3ver %(%{__python3} -c "import sys ; print(sys.version[:3])")} +%endif + +%{!?py2ver: %global py2ver %(%{__python} -c "import sys ; print sys.version[:3]")} + +%global modname webob + +Name: python-webob +Summary: WSGI request and response object +Version: 1.2.3 +Release: 5%{?dist} +License: MIT +Group: System Environment/Libraries +URL: http://pythonpaste.org/webob/ +Source0: http://pypi.python.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz +Source1: README.Fedora + +# https://github.com/Pylons/webob/issues/75 +# Fix build/test issue on python 3 +Patch1: webob-1.2.3-test-headers2-fix.patch + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-nose +BuildRequires: python-dtopt +BuildRequires: python-tempita +BuildRequires: python-webtest + +%if 0%{?with_python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-nose +%endif + +Provides: python-webob1.2 = %{version}-%{release} +Obsoletes: python-webob1.2 < 1.2.3-4 + +%description +WebOb provides wrappers around the WSGI request environment, and an object to +help create WSGI responses. The objects map much of the specified behavior of +HTTP, including header parsing and accessors for other standard parts of the +environment. + +%if 0%{?with_python3} +%package -n python3-webob +Summary: WSGI request and response object +Group: System Environment/Libraries + +Requires: python3 + +%description -n python3-webob +WebOb provides wrappers around the WSGI request environment, and an object to +help create WSGI responses. The objects map much of the specified behavior of +HTTP, including header parsing and accessors for other standard parts of the +environment. +%endif + +%prep +%setup -q -n WebOb-%{version} +cp -p %{SOURCE1} . +# Disable performance_test, which requires repoze.profile, which isn't +# in Fedora. +%{__rm} -f tests/performance_test.py + +%patch1 -p1 -b .test_headers2 + +%if 0%{?with_python3} +rm -rf %{py3dir} +cp -a . %{py3dir} +%endif + +%build +%{__python} setup.py build + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py build +popd +%endif + +%install +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py install --skip-build --root %{buildroot} +#%{__chmod} 0644 %{buildroot}%{python3_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py +popd +%endif + +%{__mkdir} -p %{buildroot}%{python_sitelib} +%{__python} setup.py install --skip-build --root %{buildroot} +#%{__chmod} 0644 %{buildroot}%{python_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py + +%check +%{__python} setup.py test + +%if 0%{?with_python3} +pushd %{py3dir} +%{__python3} setup.py test +popd +%endif + +%files +%doc docs/* README.Fedora +%{python_sitelib}/webob/ +%{python_sitelib}/WebOb-%{version}-py%{py2ver}.egg-info + +%if 0%{?with_python3} +%files -n python3-webob +%doc docs/* README.Fedora +%{python3_sitelib}/webob/ +%{python3_sitelib}/WebOb-%{version}-py%{py3ver}.egg-info +%endif + +%changelog +* Tue May 7 2013 Luke Macken - 1.2.3-5 +- Remove the python-wsgiproxy build requirement (#960463) + +* Tue Apr 2 2013 Luke Macken - 1.2.3-4 +- Rebase with and obsolete the python-webob1.2 forward-compat package + +* Thu Feb 14 2013 Fedora Release Engineering - 1.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jan 10 2013 Pádraig Brady - 1.2.3-2 +- Update to WebOb-1.2.3 + +* Wed Jan 09 2013 Matthias Runge - 1.1.1-4 +- fix deprecation warning (rhbz#801312) +- minor spec cleanup + +* Thu Nov 29 2012 Ralph Bean - 1.2.1-9 +- Trying pyver again with py2ver and py3ver. Getting ugly. + +* Thu Nov 29 2012 Ralph Bean - 1.2.1-8 +- Hardcode python3 version + +* Thu Nov 29 2012 Ralph Bean - 1.2.1-7 +- Forced rebuild. + +* Tue Oct 16 2012 Ralph Bean - 1.2.1-6 +- Use pyver macro to use the correct easy-install. + +* Tue Oct 16 2012 Ralph Bean - 1.2.1-5 +- Forced rebuild. + +* Mon Aug 06 2012 Ralph Bean - 1.2.1-4 +- Modernized the with_python3 conditional. +- Updated README.Fedora from 1.0.x to 1.2.1. + +* Mon Aug 06 2012 Ralph Bean - 1.2.1-3 +- Removed unreferenced %%global pypiname. +- Changed %%check invocation from "nosetests" to "python setup.py test" +- Added python3 support. + +* Mon Aug 06 2012 Ralph Bean - 1.2.1-2 +- Typofix BR: python-setuptools-devel -> python-setuptools + +* Mon Aug 06 2012 Ralph Bean - 1.2.1-1 +- Fork from python-webob1.0 for forward-compat python-webob1.2. +- Some modernization of the spec file. + +* Sat Jul 21 2012 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Dec 14 2011 Luke Macken - 1.1.1-1 +- Update to the latest stable release +- Remove wsgiproxy, tempita, and dtopt from our build requirements + +* Thu Nov 17 2011 Steve Traylen - 1.0.8-3 +- Rename package from python-webob10 to python-webob1.0 + +* Thu Nov 17 2011 Steve Traylen - 1.0.8-2 +- Fedora package adapted to parallel installable on el6. + +* Wed Aug 17 2011 Nils Philippsen - 1.0.8-1 +- Update to 1.0.8 for TurboGears 2.1.1 which needs 1.0.7 (#663117) + +* Mon Mar 21 2011 Luke Macken - 1.0.5-1 +- Update to 1.0.5, which restores Python 2.4 support + +* Thu Feb 24 2011 Luke Macken - 1.0.3-1 +- Update to 1.0.3 + +* Wed Feb 09 2011 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 14 2010 Ricky Zhou - 1.0-1 +- Upstream released new version. + +* Sun Jul 25 2010 Orcan Ogetbil - 0.9.8-4 +- Reenable tests since python-webtest is now available + +* Sun Jul 25 2010 Orcan Ogetbil - 0.9.8-3 +- Disable tests. We need to bootstrap against python-webtest + +* Thu Jul 22 2010 David Malcolm - 0.9.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Wed May 05 2010 Luke Macken - 0.9.8-1 +- Latest upstream release +- Get the test suite running + +* Tue Jan 19 2010 Ricky Zhou - 0.9.7.1-1 +- Upstream released new version. + +* Sun Jul 26 2009 Fedora Release Engineering - 0.9.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Apr 14 2009 Ricky Zhou - 0.9.6.1-2 +- Change define to global. +- Remove unnecessary BuildRequires on python-devel. + +* Tue Mar 10 2009 Ricky Zhou - 0.9.6.1-1 +- Upstream released new version. + +* Thu Feb 26 2009 Fedora Release Engineering - 0.9.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jan 06 2009 Luke Macken 0.9.5-1 +- Update to 0.9.5 + +* Sat Dec 06 2008 Ricky Zhou 0.9.4-1 +- Upstream released new version. + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.9.3-3 +- Rebuild for Python 2.6 + +* Tue Sep 30 2008 Ricky Zhou 0.9.3-2 +- Add BuildRequires on python-tempita. + +* Tue Sep 30 2008 Ricky Zhou 0.9.3-1 +- Upstream released new version. + +* Thu Jul 17 2008 Ricky Zhou 0.9.2-2 +- Remove conftest from the tests. + +* Fri Jun 27 2008 Ricky Zhou 0.9.2-1 +- Upstream released new version. +- Rename to python-webob, as mentioned in the Python package naming + guidelines. +- Clean up spec. +- Add %%check section. + +* Sat Mar 15 2008 Tom "spot" Callaway 0.9-1 +- Initial package for Fedora