4e9694
# This package depends on automagic byte compilation
4e9694
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
4e9694
%global _python_bytecompile_extra 1
4e9694
7ecea4
Name:           python-cherrypy
bafa2e
%global         camelname CherryPy
bafa2e
Version:        18.1.2
fc3abf
Release:        4%{?dist}
3c99ba
Summary:        Pythonic, object-oriented web development framework
7ecea4
License:        BSD
7ecea4
URL:            http://www.cherrypy.org/
2ac061
Source0:        https://files.pythonhosted.org/packages/source/C/%{camelname}/%{camelname}-%{version}.tar.gz
bafa2e
c0f96a
# Don't ship the tests or tutorials in the python module directroy,
c0f96a
# tutorial will be shipped as doc instead
7ecea4
7ecea4
BuildArch:      noarch
7ecea4
bafa2e
obsoletes: python2-cherrypy < 3.5.1
bafa2e
obsoletes: python3-cherrypy < 18.1.2-3
bafa2e
bafa2e
BuildRequires:  dos2unix
bafa2e
BuildRequires:  python3-devel
bafa2e
BuildRequires:  python3dist(setuptools)
bafa2e
BuildRequires:  python3-setuptools_scm
bafa2e
# Test dependencies
bafa2e
BuildRequires:  python3dist(cheroot)
bafa2e
BuildRequires:  python3dist(mock)
bafa2e
BuildRequires:  python3-path
bafa2e
BuildRequires:  python3dist(portend)
bafa2e
BuildRequires:  python3dist(pytest)
bafa2e
BuildRequires:  python3dist(pytest-cov)
bafa2e
BuildRequires:  python3dist(requests-toolbelt)
bafa2e
BuildRequires:  python3dist(coverage)
bafa2e
BuildRequires:  python3dist(nose)
bafa2e
BuildRequires:  python3dist(nose-testconfig)
bafa2e
BuildRequires:  python3-zc-lockfile
d023a6
9e70ca
%global _description\
bafa2e
%{camelname} allows developers to build web applications in much the same way\
9e70ca
they would build any other object-oriented Python program. This usually\
7ecea4
results in smaller source code developed in less time.
7ecea4
9e70ca
%description %_description
9e70ca
bafa2e
%package -n python3-cherrypy
9e70ca
Summary: %summary
bafa2e
%{?python_provide:%python_provide python3-cherrypy}
9e70ca
bafa2e
%description -n python3-cherrypy %_description
9e70ca
7ecea4
%prep
bafa2e
%setup -q -n %{camelname}-%{version}
7ecea4
bafa2e
dos2unix cherrypy/tutorial/tutorial.conf
bafa2e
bafa2e
# python-path in Fedora is not new enough to support
bafa2e
# a couple tests:
bafa2e
# https://bugzilla.redhat.com/show_bug.cgi?id=1206250
bafa2e
# https://src.fedoraproject.org/rpms/python-path/pull-request/2
bafa2e
rm cherrypy/test/test_session.py
bafa2e
rm cherrypy/test/test_static.py
7ecea4
7ecea4
%build
bafa2e
%py3_build
7ecea4
7ecea4
%install
bafa2e
%py3_install
7ecea4
8d018c
%check
bafa2e
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
bafa2e
bafa2e
%files -n python3-cherrypy
bafa2e
%doc README.rst
bafa2e
%license LICENSE.md
7ecea4
%doc cherrypy/tutorial
ab776b
%{_bindir}/cherryd
bafa2e
%{python3_sitelib}/*
bafa2e
%exclude %{python3_sitelib}/cherrypy/cherryd
bafa2e
%exclude %{python3_sitelib}/cherrypy/test
bafa2e
%exclude %{python3_sitelib}/cherrypy/tutorial
7ecea4
7ecea4
%changelog
fc3abf
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.2-4
fc3abf
- Rebuilt for Python 3.8
fc3abf
bafa2e
* Thu Aug 08 2019 Dan Radez <dradez@redhat.com> - 18.1.2-3
bafa2e
- Update to 18.1.2
bafa2e
- Replaced Python2 package with Python 3 package
bafa2e
- python3-cherrypy-18.1.2-2 is already built by package python3-cherrypy
bafa2e
  this release is to migrate python3-cherrypy into python-cherrypy
bafa2e
c2deec
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-12
c2deec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c2deec
586e31
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-11
586e31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
586e31
c87bd5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-10
c87bd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c87bd5
699608
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.5.0-9
699608
- Update Python 2 dependency declarations to new packaging standards
699608
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
699608
cfbb71
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-8
cfbb71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cfbb71
9e70ca
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.5.0-7
9e70ca
- Python 2 binary package renamed to python2-cherrypy
9e70ca
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
9e70ca
f3650f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
f3650f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3650f
a0e5ad
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-5
a0e5ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a0e5ad
49aeaa
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-4
49aeaa
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
49aeaa
775338
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
775338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
775338
c23d02
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-2
c23d02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c23d02
Luke Macken be01e9
* Wed Aug 27 2014 Luke Macken <lmacken@redhat.com> - 3.5.0-1
Luke Macken be01e9
- Update to 3.5.0 (#1104560)
Luke Macken be01e9
5f5fb6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-6
5f5fb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5f5fb6
bb1233
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-5
bb1233
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bb1233
56ed67
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-4
56ed67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
56ed67
2e42e4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-3
2e42e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2e42e4
fe7919
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.2-2
fe7919
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fe7919
Conrad Meyer f14fb5
* Thu Oct 27 2011 Conrad Meyer <konrad@tylerc.org> - 3.2.2-1
Conrad Meyer f14fb5
- Update to 3.2.2
Conrad Meyer f14fb5
c0f96a
* Sat Jul 16 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2.1-1
c0f96a
- Update to 3.2.1
c0f96a
863c69
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-6
863c69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
863c69
1cb484
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
1cb484
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1cb484
db088e
* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-4
db088e
- Fix a failing unittest with newer python
db088e
812c7d
* Sat Apr 24 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-3
812c7d
- Revert a try at 3.2.x-rc1 as the tests won't pass without some work.
3c99ba
620ea1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-2
620ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
620ea1
ab776b
* Tue Jun 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
ab776b
- New upstream with python-2.6 fixes.
ab776b
- BR tidy for tests.
ab776b
6e5f56
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
6e5f56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6e5f56
2913c4
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.1-1
2913c4
- Update to 3.1.1
2913c4
- Fix python-2.6 build errors
2913c4
- Make test code non-interactive via cmdline switch
2913c4
- Refresh the no test and tutorial patch
2913c4
f95d87
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.3-3
f95d87
- Rebuild for Python 2.6
f95d87
0a5f2f
* Tue Jan 22 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-2
0a5f2f
- Forgot to upload the tarball.
0a5f2f
76cb75
* Mon Jan 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-1
76cb75
- Upgrade to 3.0.3.
76cb75
bfbbae
* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-2
bfbbae
- EINTR Patch needed to be forwarded ported as well as it is only applied to
bfbbae
  CP trunk (3.x).
bfbbae
8d018c
* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-1
bfbbae
- Update to new upstream which rolls in the backported security fix.
8d018c
- Refresh other patches to apply against new version.
8d018c
- Change to new canonical source URL.
8d018c
- Reenable tests.
8d018c
d6211a
* Sun Jan  6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.2.1-8
d6211a
- Fix a security bug with a backport of http://www.cherrypy.org/changeset/1775
d6211a
- Include the egginfo files as well as the python files.
d6211a
ab8ae7
* Sat Nov  3 2007 Luke Macken <lmacken@redhat.com> 2.2.1-7
ab8ae7
- Apply backported fix from http://www.cherrypy.org/changeset/1766
ab8ae7
  to improve CherryPy's SIGSTOP/SIGCONT handling (Bug #364911).
ab8ae7
  Thanks to Nils Philippsen for the patch.
ab8ae7
7b6e26
* Mon Feb 19 2007 Luke Macken <lmacken@redhat.com> 2.2.1-6
7b6e26
- Disable regression tests until we can figure out why they
7b6e26
  are dying in mock.
7b6e26
d023a6
* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-5
d023a6
- Add python-devel to BuildRequires
d023a6
2d503d
* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-4
2d503d
- Rebuild for python 2.5
2d503d
dcc8b1
* Mon Sep 18 2006 Luke Macken <lmacken@redhat.com> 2.2.1-3
dcc8b1
- Rebuild for FC6
dcc8b1
- Include pyo files instead of ghosting them
dcc8b1
cdbe45
* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-2
cdbe45
- Rebuild
cdbe45
51ab42
* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-1
51ab42
- Update to 2.2.1
51ab42
- Remove unnecessary python-abi requirement
51ab42
gijs 580479
* Sat Apr 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.2.0-1
gijs 580479
- Update to 2.2.0
gijs 580479
gijs 46ca0a
* Wed Feb 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.1.1-1
gijs 46ca0a
- Update to 2.1.1 (Security fix)
gijs 46ca0a
gijs 3f6a5b
* Tue Nov  1 2005 Gijs Hollestelle <gijs@gewis.nl> 2.1.0-1
gijs 3f6a5b
- Updated to 2.1.0
gijs 3f6a5b
gijs 03c3ce
* Sat May 14 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-2
gijs 03c3ce
- Added dist tag
gijs 03c3ce
gijs 494eb7
* Sun May  8 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-1
gijs 494eb7
- Updated to 2.0.0 final
gijs 494eb7
- Updated python-cherrypy-tutorial-doc.patch to match new version
gijs 494eb7
696d48
* Wed Apr  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.0.0-0.2.b
696d48
- Removed CFLAGS
696d48
7ecea4
* Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 2.0.0-0.1.b
7ecea4
- Initial Fedora Package