forked from pool/python-CherryPy
Accepting request 486191 from devel:languages:python:singlespec
- update for singlespec - update to version 10.2.1 * too many changes to list - add many new requirements and recommends OBS-URL: https://build.opensuse.org/request/show/486191 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CherryPy?expand=0&rev=17
This commit is contained in:
committed by
Git OBS Bridge
parent
689f4a83c7
commit
f2d40e0308
3
CherryPy-10.2.1.tar.gz
Normal file
3
CherryPy-10.2.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2ee7e514de0167b63233a6bba25dda2bb9d5ef800da8ea3a0282a9a57a382274
|
||||||
|
size 688216
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a149271819a15417104aa8f641ad5b96287070f0153e6ef2832a87e2c693d75d
|
|
||||||
size 432881
|
|
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 31 15:30:01 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- update for singlespec
|
||||||
|
- update to version 10.2.1
|
||||||
|
* too many changes to list
|
||||||
|
- add many new requirements and recommends
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Feb 22 17:22:27 UTC 2015 - benoit.monin@gmx.fr
|
Sun Feb 22 17:22:27 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-CherryPy
|
# spec file for package python-CherryPy
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,25 +16,47 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define oldpython python
|
||||||
Name: python-CherryPy
|
Name: python-CherryPy
|
||||||
Version: 3.6.0
|
Version: 10.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.cherrypy.org
|
Url: http://www.cherrypy.org
|
||||||
Summary: Object-Oriented HTTP framework
|
Summary: Object-Oriented HTTP framework
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.python.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module cheroot >= 5.2.0}
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
|
BuildRequires: %{python_module portend >= 1.6.1}
|
||||||
|
BuildRequires: %{python_module pytest-runner}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: python2-backports.unittest_mock
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
Requires: python-cheroot >= 5.2.0
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
Requires: python-portend >= 1.6.1
|
||||||
%else
|
Requires: python-six
|
||||||
|
Recommends: python-simplejson
|
||||||
|
Recommends: python-Routes
|
||||||
|
Recommends: python-pyOpenSSL
|
||||||
|
Recommends: python-memcached >= 1.58
|
||||||
|
Recommends: python-flup
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%ifpython2
|
||||||
|
Provides: %{oldpython}-cherrypy = %{version}
|
||||||
|
Obsoletes: %{oldpython}-cherrypy < %{version}
|
||||||
%endif
|
%endif
|
||||||
Provides: python-cherrypy = %{version}
|
|
||||||
Obsoletes: python-cherrypy < %{version}
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
CherryPy is a pythonic, object-oriented HTTP framework.
|
CherryPy is a pythonic, object-oriented HTTP framework.
|
||||||
@@ -53,35 +75,27 @@ Oh, and most importantly: CherryPy is fun to work with :-)
|
|||||||
%setup -q -n CherryPy-%{version}
|
%setup -q -n CherryPy-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
sed -i 's|\r||' README.txt # Fix wrong EOL encoding
|
%python_install
|
||||||
find . -name sessiondemo.py -type f -exec chmod 0755 {} \; # Fix non-executable bit rpmlint warning
|
%python_clone -a %{buildroot}%{_bindir}/cherryd
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
# update-alternatives
|
%check
|
||||||
mv %{buildroot}%{_bindir}/cherryd %{buildroot}%{_bindir}/cherryd-%{py_ver}
|
%python_exec -m pytest cherrypy/test
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
||||||
touch %{buildroot}%{_sysconfdir}/alternatives/cherryd
|
|
||||||
ln -sf %{_sysconfdir}/alternatives/cherryd %{buildroot}%{_bindir}/cherryd
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives \
|
%python_install_alternative cherryd
|
||||||
--install %{_bindir}/cherryd cherryd %{_bindir}/cherryd-%{py_ver} 20
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
%python_uninstall_alternative cherryd
|
||||||
update-alternatives --remove cherryd %{_bindir}/cherryd-%{py_ver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.txt
|
%doc README.rst LICENSE.md CHANGES.rst
|
||||||
%ghost %{_sysconfdir}/alternatives/cherryd
|
%python_alternative %{_bindir}/cherryd
|
||||||
%{_bindir}/cherryd
|
|
||||||
%{_bindir}/cherryd-%{py_ver}
|
|
||||||
%{python_sitelib}/cherrypy/
|
%{python_sitelib}/cherrypy/
|
||||||
%{python_sitelib}/CherryPy-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/CherryPy-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user