2011-09-23 13:56:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-bottle
|
|
|
|
#
|
2019-02-28 15:22:39 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-23 13:56:56 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-11-22 14:10:28 +00:00
|
|
|
|
2019-02-28 15:22:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-23 13:56:56 +00:00
|
|
|
#
|
|
|
|
|
2012-11-22 14:10:28 +00:00
|
|
|
|
2017-03-23 18:15:03 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-23 13:56:56 +00:00
|
|
|
Name: python-bottle
|
2019-07-29 08:41:44 +00:00
|
|
|
Version: 0.12.17
|
2011-09-23 13:56:56 +00:00
|
|
|
Release: 0
|
2019-03-17 15:27:14 +00:00
|
|
|
Summary: WSGI framework for small web applications
|
2011-09-23 13:56:56 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2019-07-29 08:41:44 +00:00
|
|
|
URL: https://bottlepy.org/
|
2017-03-23 18:15:03 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/bottle/bottle-%{version}.tar.gz
|
2015-04-27 07:25:30 +00:00
|
|
|
Source1: http://bottlepy.org/docs/0.12/bottle-docs.pdf
|
2017-03-23 18:15:03 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2011-09-23 13:56:56 +00:00
|
|
|
BuildArch: noarch
|
2017-03-23 18:15:03 +00:00
|
|
|
%python_subpackages
|
2010-11-19 14:52:51 +00:00
|
|
|
|
2011-09-23 13:56:56 +00:00
|
|
|
%description
|
2019-03-17 15:27:14 +00:00
|
|
|
Bottle is a micro-framework for small web applications. It offers
|
|
|
|
request dispatching (routes) with URL parameter support, templates, a
|
|
|
|
built-in HTTP server, and adapters for many third party WSGI/HTTP
|
|
|
|
servers and template engines. This is all in a single file and with
|
|
|
|
no dependencies other than the Python Standard Library.
|
2010-11-19 14:52:51 +00:00
|
|
|
|
2017-03-23 18:15:03 +00:00
|
|
|
%package -n %{name}-doc
|
2015-04-27 07:25:30 +00:00
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: %{name} = %{version}
|
2017-03-23 18:15:03 +00:00
|
|
|
Provides: %{python_module bottle-doc = %{version}}
|
2015-04-27 07:25:30 +00:00
|
|
|
|
2017-03-23 18:15:03 +00:00
|
|
|
%description -n %{name}-doc
|
2019-03-17 15:27:14 +00:00
|
|
|
Bottle is a micro-framework for small web applications. It offers
|
|
|
|
request dispatching (routes) with URL parameter support, templates, a
|
|
|
|
built-in HTTP server, and adapters for many third party WSGI/HTTP
|
|
|
|
servers and template engines. This is all in a single file and with
|
|
|
|
no dependencies other than the Python Standard Library.
|
2015-04-27 07:25:30 +00:00
|
|
|
|
|
|
|
This subpackage contains the PDF documentation for %{name}.
|
|
|
|
|
2010-11-19 14:52:51 +00:00
|
|
|
%prep
|
2011-09-23 13:56:56 +00:00
|
|
|
%setup -q -n bottle-%{version}
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
2010-11-19 14:52:51 +00:00
|
|
|
%build
|
2017-03-23 18:15:03 +00:00
|
|
|
%python_build
|
2010-11-19 14:52:51 +00:00
|
|
|
|
2011-09-23 13:56:56 +00:00
|
|
|
%install
|
2017-03-23 18:15:03 +00:00
|
|
|
%python_install
|
|
|
|
%python_clone %{buildroot}%{_bindir}/bottle.py
|
2015-04-27 07:25:30 +00:00
|
|
|
|
2017-03-23 18:15:03 +00:00
|
|
|
%files %{python_files}
|
2019-02-28 15:23:25 +00:00
|
|
|
%license LICENSE
|
2017-03-23 18:15:03 +00:00
|
|
|
%doc README.rst
|
|
|
|
%{_bindir}/bottle.py-%{python_bin_suffix}
|
|
|
|
%python3_only %{_bindir}/bottle.py
|
2012-08-16 08:04:25 +00:00
|
|
|
%{python_sitelib}/bottle.py*
|
2017-03-23 18:15:03 +00:00
|
|
|
%pycache_only %{python_sitelib}/__pycache__
|
|
|
|
%{python_sitelib}/bottle-%{version}-py%{python_version}.egg-info
|
2010-11-19 14:52:51 +00:00
|
|
|
|
2017-03-23 18:15:03 +00:00
|
|
|
%files -n %{name}-doc
|
|
|
|
%doc bottle-docs.pdf
|
2015-04-27 07:25:30 +00:00
|
|
|
|
2010-11-19 14:52:51 +00:00
|
|
|
%changelog
|