503a3c
%{?python_enable_dependency_generator}
503a3c
%global with_tests 1
cb630b
503a3c
%global desc WebOb provides wrappers around the WSGI request environment, and an object to \
503a3c
help create WSGI responses. The objects map much of the specified behavior of \
503a3c
HTTP, including header parsing and accessors for other standard parts of the \
503a3c
environment.
cb630b
cb630b
cb630b
Name:           python-webob
cb630b
Summary:        WSGI request and response object
503a3c
Version:        1.8.6
503a3c
Release:        3%{?dist}
cb630b
License:        MIT
503a3c
URL:            https://webob.org
503a3c
Source0:        %pypi_source WebOb
503a3c
503a3c
# On Python 3.9 the threading.Thread.isAlive() was removed in favor of threading.Thread.is_alive()
503a3c
# See: https://bugs.python.org/issue37804
503a3c
# https://github.com/Pylons/webob/pull/410
503a3c
Patch0:         fix-python39-compat.patch
cb630b
cb630b
BuildArch:      noarch
503a3c
503a3c
cb630b
BuildRequires:  python3-devel
cb630b
BuildRequires:  python3-setuptools
503a3c
%if 0%{?with_tests}
cb630b
BuildRequires:  python3-nose
503a3c
BuildRequires:  python3-pytest
503a3c
%endif # with_tests
cb630b
cb630b
cb630b
%description
503a3c
%{desc}
503a3c
cb630b
cb630b
%package -n python3-webob
503a3c
Summary:        %{summary}
503a3c
Provides: python3-webob1.2 = %{version}-%{release}
503a3c
Obsoletes: python3-webob1.2 < 1.2.3-7
503a3c
503a3c
%{?python_provide:%python_provide python3-webob}
cb630b
cb630b
cb630b
%description -n python3-webob
503a3c
%{desc}
cb630b
cb630b
%prep
cb630b
%setup -q -n WebOb-%{version}
cb630b
# Disable performance_test, which requires repoze.profile, which isn't
cb630b
# in Fedora.
cb630b
%{__rm} -f tests/performance_test.py
cb630b
503a3c
# Remove an empty unneeded file that is there for scm purposes.
503a3c
rm docs/_static/.empty
cb630b
503a3c
%patch0 -p1
cb630b
cb630b
%build
503a3c
%py3_build
cb630b
cb630b
%install
503a3c
%py3_install
cb630b
cb630b
%check
503a3c
%if 0%{?with_tests}
503a3c
export PYTHONPATH=%{buildroot}%{python3_sitelib}
503a3c
py.test-3 tests
503a3c
%endif # with_tests
cb630b
cb630b
%files -n python3-webob
503a3c
%license docs/license.txt
503a3c
%doc docs/*
cb630b
%{python3_sitelib}/webob/
503a3c
%{python3_sitelib}/WebOb-%{version}-py%{python3_version}.egg-info
cb630b
cb630b
%changelog
503a3c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-3
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
503a3c
503a3c
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.8.6-2
503a3c
- Rebuilt for Python 3.9
503a3c
503a3c
* Sun Mar 22 2020 Carl George <carl@george.computer> - 1.8.6-1
503a3c
- Latest upstream rhbz#1793857
503a3c
503a3c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-6
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
503a3c
503a3c
* Tue Jan 14 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.8.5-5
503a3c
- Fix Python 3.9 compatibility
503a3c
503a3c
* Mon Sep 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.5-4
503a3c
- Subpackage python2-webob has been removed
503a3c
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
503a3c
503a3c
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.5-3
503a3c
- Rebuilt for Python 3.8
503a3c
503a3c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-2
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
503a3c
503a3c
* Fri Feb 08 2019 Javier Peña <jpena@redhat.com> - 1.8.5-1
503a3c
- Update to 1.8.5
503a3c
503a3c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-3
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
503a3c
503a3c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
503a3c
503a3c
* Fri Jul 06 2018 Matthias Runge <mrunge@redhat.com> - 1.8.2-1
503a3c
- update to 1.8.2 (rhbz#1564125)
503a3c
503a3c
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-2
503a3c
- Rebuilt for Python 3.7
503a3c
503a3c
* Tue May 29 2018 Alfredo Moralejo <amoralej@redhat.com> - 1.8.1-1
503a3c
- Update to upstream version 1.8.1.
503a3c
503a3c
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.7.4-3
503a3c
- Update Python 2 dependency declarations to new packaging standards
503a3c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
503a3c
503a3c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-2
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
503a3c
503a3c
* Mon Dec 18 2017 Kevin Fenzi <kevin@scrye.com> - 1.7.4-1
503a3c
- Update to 1.7.4. Fixes bug #1515821
503a3c
503a3c
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 1.7.3-4
503a3c
- Cleanup spec file conditionals
503a3c
503a3c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-3
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
503a3c
503a3c
* Wed Jul 12 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.7.3-2
503a3c
- Depend on python2- versions of nose and setuptools.
503a3c
503a3c
* Wed Jul 12 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.7.3-1
503a3c
- Update to 1.7.3 (#1466976).
503a3c
- Provide python2-webob.
503a3c
- Use the license macro to mark the license file.
503a3c
- Remove commented code.
503a3c
- Remove an empty docs file.
503a3c
503a3c
* Sat Mar 25 2017 Kevin Fenzi <kevin@scrye.com> - 1.7.2-1
503a3c
- Update to 1.7.2. Fixes bug #1432922
503a3c
503a3c
* Sat Feb 25 2017 Kevin Fenzi <kevin@scrye.com> - 1.7.1-1
503a3c
- Update to 1.7.1. Fixes bug #1413950
503a3c
503a3c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
503a3c
503a3c
* Wed Dec 28 2016 Kevin Fenzi <kevin@scrye.com> - 1.7.0-1
503a3c
- Update to 1.7.0. Fixes bug #1408197
503a3c
503a3c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.6.2-2
503a3c
- Rebuild for Python 3.6
503a3c
503a3c
* Wed Nov 09 2016 Kevin Fenzi <kevin@scrye.com> - 1.6.2-1
503a3c
- Update to 1.6.2. Fixes bug #1385661
503a3c
503a3c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
503a3c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
503a3c
503a3c
* Tue May 31 2016 Nils Philippsen <nils@redhat.com>
503a3c
- fix source URL
503a3c
503a3c
* Sun May 22 2016 Luke Macken <lmacken@redhat.com> - 1.6.1-1
503a3c
- Update to 1.6.1. Fixes bug #1338436
503a3c
503a3c
* Sun Apr 10 2016 Kevin Fenzi <kevin@scrye.com> - 1.6.0-1
503a3c
- Update to 1.6.0. Fixes bug #1300180
503a3c
503a3c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
503a3c
503a3c
* Mon Jan 25 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 1.4.2-1
503a3c
- Upstream 1.4.2
503a3c
503a3c
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-3
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
503a3c
503a3c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
503a3c
503a3c
* Wed Apr 15 2015 Ralph Bean <rbean@redhat.com> - 1.4.1-1
503a3c
- new version
503a3c
503a3c
* Wed Aug 27 2014 Luke Macken <lmacken@redhat.com> - 1.4-1
503a3c
- Update to 1.4
503a3c
503a3c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-11
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
503a3c
503a3c
* Thu May 15 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.3-10
503a3c
- Enable tests again.
503a3c
503a3c
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.3-9
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
503a3c
- Set up macro for test bootstrap
503a3c
503a3c
* Mon Jan  6 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.3-8
503a3c
- And correct the obs_ver again as a later version was built
503a3c
- Add obsoletes for the python3-webob1.2 package as well
503a3c
503a3c
* Mon Sep 16 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 1.2.3-7
503a3c
- correct python-webob1.2 obs_ver
e56ae5
503a3c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-6
503a3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e2efa2
cb630b
* Tue May  7 2013 Luke Macken <lmacken@redhat.com> - 1.2.3-5
cb630b
- Remove the python-wsgiproxy build requirement (#960463)
cb630b
cb630b
* Tue Apr  2 2013 Luke Macken <lmacken@redhat.com> - 1.2.3-4
cb630b
- Rebase with and obsolete the python-webob1.2 forward-compat package
cb630b
cb630b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-3
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cb630b
cb630b
* Thu Jan 10 2013 Pádraig Brady <P@draigBrady.com> - 1.2.3-2
cb630b
- Update to WebOb-1.2.3
cb630b
cb630b
* Wed Jan 09 2013 Matthias Runge <mrunge@redhat.com> - 1.1.1-4
cb630b
- fix deprecation warning (rhbz#801312)
cb630b
- minor spec cleanup
cb630b
cb630b
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-9
cb630b
- Trying pyver again with py2ver and py3ver.  Getting ugly.
cb630b
cb630b
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-8
cb630b
- Hardcode python3 version
cb630b
cb630b
* Thu Nov 29 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-7
cb630b
- Forced rebuild.
cb630b
cb630b
* Tue Oct 16 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-6
cb630b
- Use pyver macro to use the correct easy-install.
cb630b
cb630b
* Tue Oct 16 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-5
cb630b
- Forced rebuild.
cb630b
cb630b
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-4
cb630b
- Modernized the with_python3 conditional.
cb630b
- Updated README.Fedora from 1.0.x to 1.2.1.
cb630b
cb630b
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-3
cb630b
- Removed unreferenced %%global pypiname.
cb630b
- Changed %%check invocation from "nosetests" to "python setup.py test"
cb630b
- Added python3 support.
cb630b
cb630b
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-2
cb630b
- Typofix BR: python-setuptools-devel -> python-setuptools
cb630b
cb630b
* Mon Aug 06 2012 Ralph Bean <rbean@redhat.com> - 1.2.1-1
cb630b
- Fork from python-webob1.0 for forward-compat python-webob1.2.
cb630b
- Some modernization of the spec file.
cb630b
cb630b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cb630b
cb630b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cb630b
cb630b
* Wed Dec 14 2011 Luke Macken <lmacken@redhat.com> - 1.1.1-1
cb630b
- Update to the latest stable release
cb630b
- Remove wsgiproxy, tempita, and dtopt from our build requirements
cb630b
cb630b
* Thu Nov 17 2011 Steve Traylen <steve.traylen@cern.ch> - 1.0.8-3
cb630b
- Rename package from python-webob10 to python-webob1.0
cb630b
cb630b
* Thu Nov 17 2011 Steve Traylen <steve.traylen@cern.ch> - 1.0.8-2
cb630b
- Fedora package adapted to parallel installable on el6.
cb630b
cb630b
* Wed Aug 17 2011 Nils Philippsen <nils@redhat.com> - 1.0.8-1
cb630b
- Update to 1.0.8 for TurboGears 2.1.1 which needs 1.0.7 (#663117)
cb630b
cb630b
* Mon Mar 21 2011 Luke Macken <lmacken@redhat.com> - 1.0.5-1
cb630b
- Update to 1.0.5, which restores Python 2.4 support
cb630b
cb630b
* Thu Feb 24 2011 Luke Macken <lmacken@redhat.com> - 1.0.3-1
cb630b
- Update to 1.0.3
cb630b
cb630b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cb630b
cb630b
* Tue Dec 14 2010 Ricky Zhou <ricky@fedoraproject.org> - 1.0-1
cb630b
- Upstream released new version.
cb630b
cb630b
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.8-4
cb630b
- Reenable tests since python-webtest is now available
cb630b
cb630b
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.9.8-3
cb630b
- Disable tests. We need to bootstrap against python-webtest
cb630b
cb630b
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.8-2
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cb630b
cb630b
* Wed May 05 2010 Luke Macken <lmacken@redhat.com> - 0.9.8-1
cb630b
- Latest upstream release
cb630b
- Get the test suite running
cb630b
cb630b
* Tue Jan 19 2010 Ricky Zhou <ricky@fedoraproject.org> - 0.9.7.1-1
cb630b
- Upstream released new version.
cb630b
cb630b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6.1-3
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cb630b
cb630b
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.9.6.1-2
cb630b
- Change define to global.
cb630b
- Remove unnecessary BuildRequires on python-devel.
cb630b
cb630b
* Tue Mar 10 2009 Ricky Zhou <ricky@fedoraproject.org> - 0.9.6.1-1
cb630b
- Upstream released new version.
cb630b
cb630b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-2
cb630b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cb630b
cb630b
* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> 0.9.5-1
cb630b
- Update to 0.9.5
cb630b
cb630b
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.4-1
cb630b
- Upstream released new version.
cb630b
cb630b
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.3-3
cb630b
- Rebuild for Python 2.6
cb630b
cb630b
* Tue Sep 30 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.3-2
cb630b
- Add BuildRequires on python-tempita.
cb630b
cb630b
* Tue Sep 30 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.3-1
cb630b
- Upstream released new version.
cb630b
cb630b
* Thu Jul 17 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.2-2
cb630b
- Remove conftest from the tests.
cb630b
cb630b
* Fri Jun 27 2008 Ricky Zhou <ricky@fedoraproject.org> 0.9.2-1
cb630b
- Upstream released new version.
cb630b
- Rename to python-webob, as mentioned in the Python package naming
cb630b
  guidelines.
cb630b
- Clean up spec.
cb630b
- Add %%check section.
cb630b
cb630b
* Sat Mar 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.9-1
cb630b
- Initial package for Fedora