|
|
5176ee |
%if 0%{?fedora}
|
|
|
5176ee |
%global with_python3 1
|
|
|
5176ee |
%{!?py3ver: %global py3ver %(%{__python3} -c "import sys ; print(sys.version[:3])")}
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%{!?py2ver: %global py2ver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
5176ee |
|
|
|
5176ee |
%global modname webob
|
|
|
5176ee |
|
|
|
5176ee |
Name: python-webob
|
|
|
5176ee |
Summary: WSGI request and response object
|
|
|
5176ee |
Version: 1.2.3
|
|
|
5176ee |
Release: 7%{?dist}
|
|
|
5176ee |
License: MIT
|
|
|
5176ee |
Group: System Environment/Libraries
|
|
|
5176ee |
URL: http://pythonpaste.org/webob/
|
|
|
5176ee |
Source0: http://pypi.python.org/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
|
|
5176ee |
Source1: README.Fedora
|
|
|
5176ee |
|
|
|
5176ee |
# https://github.com/Pylons/webob/issues/75
|
|
|
5176ee |
# Fix build/test issue on python 3
|
|
|
5176ee |
Patch1: webob-1.2.3-test-headers2-fix.patch
|
|
|
5176ee |
# Fix the generation of the hash of the message body, in fips mode
|
|
|
5176ee |
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=976661
|
|
|
5176ee |
Patch2: fix-fips-hash-generation.patch
|
|
|
5176ee |
|
|
|
5176ee |
BuildArch: noarch
|
|
|
5176ee |
BuildRequires: python2-devel
|
|
|
5176ee |
BuildRequires: python-setuptools
|
|
|
5176ee |
BuildRequires: python-nose
|
|
|
5176ee |
BuildRequires: python-dtopt
|
|
|
5176ee |
BuildRequires: python-tempita
|
|
|
5176ee |
BuildRequires: python-webtest
|
|
|
5176ee |
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
BuildRequires: python3-devel
|
|
|
5176ee |
BuildRequires: python3-setuptools
|
|
|
5176ee |
BuildRequires: python3-nose
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
Provides: python-webob1.2 = %{version}-%{release}
|
|
|
5176ee |
Obsoletes: python-webob1.2 < 1.2.3-4
|
|
|
5176ee |
|
|
|
5176ee |
%description
|
|
|
5176ee |
WebOb provides wrappers around the WSGI request environment, and an object to
|
|
|
5176ee |
help create WSGI responses. The objects map much of the specified behavior of
|
|
|
5176ee |
HTTP, including header parsing and accessors for other standard parts of the
|
|
|
5176ee |
environment.
|
|
|
5176ee |
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
%package -n python3-webob
|
|
|
5176ee |
Summary: WSGI request and response object
|
|
|
5176ee |
Group: System Environment/Libraries
|
|
|
5176ee |
|
|
|
5176ee |
Requires: python3
|
|
|
5176ee |
|
|
|
5176ee |
%description -n python3-webob
|
|
|
5176ee |
WebOb provides wrappers around the WSGI request environment, and an object to
|
|
|
5176ee |
help create WSGI responses. The objects map much of the specified behavior of
|
|
|
5176ee |
HTTP, including header parsing and accessors for other standard parts of the
|
|
|
5176ee |
environment.
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%prep
|
|
|
5176ee |
%setup -q -n WebOb-%{version}
|
|
|
5176ee |
cp -p %{SOURCE1} .
|
|
|
5176ee |
# Disable performance_test, which requires repoze.profile, which isn't
|
|
|
5176ee |
# in Fedora.
|
|
|
5176ee |
%{__rm} -f tests/performance_test.py
|
|
|
5176ee |
|
|
|
5176ee |
%patch1 -p1 -b .test_headers2
|
|
|
5176ee |
%patch2 -p1
|
|
|
5176ee |
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
rm -rf %{py3dir}
|
|
|
5176ee |
cp -a . %{py3dir}
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%build
|
|
|
5176ee |
%{__python} setup.py build
|
|
|
5176ee |
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
pushd %{py3dir}
|
|
|
5176ee |
%{__python3} setup.py build
|
|
|
5176ee |
popd
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%install
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
pushd %{py3dir}
|
|
|
5176ee |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
5176ee |
#%{__chmod} 0644 %{buildroot}%{python3_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py
|
|
|
5176ee |
popd
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%{__mkdir} -p %{buildroot}%{python_sitelib}
|
|
|
5176ee |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
5176ee |
#%{__chmod} 0644 %{buildroot}%{python_sitelib}/WebOb-%{version}-*.egg/%{modname}/*.py
|
|
|
5176ee |
|
|
|
5176ee |
%check
|
|
|
5176ee |
%{__python} setup.py test
|
|
|
5176ee |
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
pushd %{py3dir}
|
|
|
5176ee |
%{__python3} setup.py test
|
|
|
5176ee |
popd
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%files
|
|
|
5176ee |
%doc docs/* README.Fedora
|
|
|
5176ee |
%{python_sitelib}/webob/
|
|
|
5176ee |
%{python_sitelib}/WebOb-%{version}-py%{py2ver}.egg-info
|
|
|
5176ee |
|
|
|
5176ee |
%if 0%{?with_python3}
|
|
|
5176ee |
%files -n python3-webob
|
|
|
5176ee |
%doc docs/* README.Fedora
|
|
|
5176ee |
%{python3_sitelib}/webob/
|
|
|
5176ee |
%{python3_sitelib}/WebOb-%{version}-py%{py3ver}.egg-info
|
|
|
5176ee |
%endif
|
|
|
5176ee |
|
|
|
5176ee |
%changelog
|
|
|
5176ee |
* Wed Jan 25 2017 Charalampos Stratakis <cstratak@redhat.com> - 1.2.3-7
|
|
|
5176ee |
- Fix hash generation of message body in fips mode
|
|
|
5176ee |
Resolves: rhbz#976661
|
|
|
5176ee |
|
|
|
5176ee |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.3-6
|
|
|
5176ee |
- Mass rebuild 2013-12-27
|
|
|
5176ee |
|
|
|
5176ee |
* Tue May 7 2013 Luke Macken <lmacken@redhat.com> - 1.2.3-5
|
|
|
5176ee |
- Remove the python-wsgiproxy build requirement (#960463)
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Apr 2 2013 Luke Macken <lmacken@redhat.com> - 1.2.3-4
|
|
|
5176ee |
- Rebase with and obsolete the python-webob1.2 forward-compat package
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-3
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Jan 10 2013 Pádraig Brady <P@draigBrady.com> - 1.2.3-2
|
|
|
5176ee |
- Update to WebOb-1.2.3
|
|
|
5176ee |
|
|
|
5176ee |
* Wed Jan 09 2013 Matthias Runge <mrunge@redhat.com> - 1.1.1-4
|
|
|
5176ee |
- fix deprecation warning (rhbz#801312)
|
|
|
5176ee |
- minor spec cleanup
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-9
|
|
|
5176ee |
- Trying pyver again with py2ver and py3ver. Getting ugly.
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-8
|
|
|
5176ee |
- Hardcode python3 version
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-7
|
|
|
5176ee |
- Forced rebuild.
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Oct 16 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-6
|
|
|
5176ee |
- Use pyver macro to use the correct easy-install.
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Oct 16 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-5
|
|
|
5176ee |
- Forced rebuild.
|
|
|
5176ee |
|
|
|
5176ee |
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-4
|
|
|
5176ee |
- Modernized the with_python3 conditional.
|
|
|
5176ee |
- Updated README.Fedora from 1.0.x to 1.2.1.
|
|
|
5176ee |
|
|
|
5176ee |
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-3
|
|
|
5176ee |
- Removed unreferenced %%global pypiname.
|
|
|
5176ee |
- Changed %%check invocation from "nosetests" to "python setup.py test"
|
|
|
5176ee |
- Added python3 support.
|
|
|
5176ee |
|
|
|
5176ee |
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-2
|
|
|
5176ee |
- Typofix BR: python-setuptools-devel -> python-setuptools
|
|
|
5176ee |
|
|
|
5176ee |
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-1
|
|
|
5176ee |
- Fork from python-webob1.0 for forward-compat python-webob1.2.
|
|
|
5176ee |
- Some modernization of the spec file.
|
|
|
5176ee |
|
|
|
5176ee |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Wed Dec 14 2011 Luke Macken <lmacken@redhat.com> - 1.1.1-1
|
|
|
5176ee |
- Update to the latest stable release
|
|
|
5176ee |
- Remove wsgiproxy, tempita, and dtopt from our build requirements
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Nov 17 2011 Steve Traylen <steve.traylen@cern.ch> - 1.0.8-3
|
|
|
5176ee |
- Rename package from python-webob10 to python-webob1.0
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Nov 17 2011 Steve Traylen <steve.traylen@cern.ch> - 1.0.8-2
|
|
|
5176ee |
- Fedora package adapted to parallel installable on el6.
|
|
|
5176ee |
|
|
|
5176ee |
* Wed Aug 17 2011 Nils Philippsen <nils@redhat.com> - 1.0.8-1
|
|
|
5176ee |
- Update to 1.0.8 for TurboGears 2.1.1 which needs 1.0.7 (#663117)
|
|
|
5176ee |
|
|
|
5176ee |
* Mon Mar 21 2011 Luke Macken <lmacken@redhat.com> - 1.0.5-1
|
|
|
5176ee |
- Update to 1.0.5, which restores Python 2.4 support
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Feb 24 2011 Luke Macken <lmacken@redhat.com> - 1.0.3-1
|
|
|
5176ee |
- Update to 1.0.3
|
|
|
5176ee |
|
|
|
5176ee |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Dec 14 2010 Ricky Zhou <ricky@fedoraproject.org> - 1.0-1
|
|
|
5176ee |
- Upstream released new version.
|
|
|
5176ee |
|
|
|
5176ee |
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.8-4
|
|
|
5176ee |
- Reenable tests since python-webtest is now available
|
|
|
5176ee |
|
|
|
5176ee |
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.8-3
|
|
|
5176ee |
- Disable tests. We need to bootstrap against python-webtest
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.8-2
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Wed May 05 2010 Luke Macken <lmacken@redhat.com> - 0.9.8-1
|
|
|
5176ee |
- Latest upstream release
|
|
|
5176ee |
- Get the test suite running
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Jan 19 2010 Ricky Zhou <ricky@fedoraproject.org> - 0.9.7.1-1
|
|
|
5176ee |
- Upstream released new version.
|
|
|
5176ee |
|
|
|
5176ee |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.1-3
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.9.6.1-2
|
|
|
5176ee |
- Change define to global.
|
|
|
5176ee |
- Remove unnecessary BuildRequires on python-devel.
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Mar 10 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.9.6.1-1
|
|
|
5176ee |
- Upstream released new version.
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-2
|
|
|
5176ee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> 0.9.5-1
|
|
|
5176ee |
- Update to 0.9.5
|
|
|
5176ee |
|
|
|
5176ee |
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.4-1
|
|
|
5176ee |
- Upstream released new version.
|
|
|
5176ee |
|
|
|
5176ee |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.3-3
|
|
|
5176ee |
- Rebuild for Python 2.6
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Sep 30 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.3-2
|
|
|
5176ee |
- Add BuildRequires on python-tempita.
|
|
|
5176ee |
|
|
|
5176ee |
* Tue Sep 30 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.3-1
|
|
|
5176ee |
- Upstream released new version.
|
|
|
5176ee |
|
|
|
5176ee |
* Thu Jul 17 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.2-2
|
|
|
5176ee |
- Remove conftest from the tests.
|
|
|
5176ee |
|
|
|
5176ee |
* Fri Jun 27 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.2-1
|
|
|
5176ee |
- Upstream released new version.
|
|
|
5176ee |
- Rename to python-webob, as mentioned in the Python package naming
|
|
|
5176ee |
guidelines.
|
|
|
5176ee |
- Clean up spec.
|
|
|
5176ee |
- Add %%check section.
|
|
|
5176ee |
|
|
|
5176ee |
* Sat Mar 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.9-1
|
|
|
5176ee |
- Initial package for Fedora
|