From 40c305d814f0ef1343d33fe41d955bbd11750c9f4814a35682fe77fc4ded7519 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 23 Sep 2011 13:56:56 +0000 Subject: [PATCH] - Update to version 0.9.6 - Removed file LICENSE, upstream now has LICENSE.txt OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=2 --- LICENSE | 27 ------------ bottle-0.8.5.tar.bz2 | 3 -- bottle-0.9.6.tar.gz | 3 ++ python-bottle.changes | 6 +++ python-bottle.spec | 96 ++++++++++++++++++++----------------------- 5 files changed, 53 insertions(+), 82 deletions(-) delete mode 100644 LICENSE delete mode 100644 bottle-0.8.5.tar.bz2 create mode 100644 bottle-0.9.6.tar.gz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index c92ab7d..0000000 --- a/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Licence - -Code and documentation are available according to the MIT Licence: - -Copyright (c) 2010, Marcel Hellkamp. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -The Bottle logo however is NOT covered by that licence. It is allowed to use the -logo as a link to the bottle homepage or in direct context with the unmodified -library. In all other cases please ask first. diff --git a/bottle-0.8.5.tar.bz2 b/bottle-0.8.5.tar.bz2 deleted file mode 100644 index f09aedb..0000000 --- a/bottle-0.8.5.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5b32f9aee6d6f61189484aa374c6dcdacc2f586d7c686b044c492efe76d6a34 -size 30163 diff --git a/bottle-0.9.6.tar.gz b/bottle-0.9.6.tar.gz new file mode 100644 index 0000000..b15c47a --- /dev/null +++ b/bottle-0.9.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9c894069a74db70b9f8717894957e1427ea2a662517fcde0e011351da89a69c +size 45332 diff --git a/python-bottle.changes b/python-bottle.changes index f8cc717..93afb17 100644 --- a/python-bottle.changes +++ b/python-bottle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 23 13:53:20 UTC 2011 - saschpe@suse.de + +- Update to version 0.9.6 +- Removed file LICENSE, upstream now has LICENSE.txt + ------------------------------------------------------------------- Fri Nov 19 10:38:29 UTC 2010 - cfarrell@novell.com diff --git a/python-bottle.spec b/python-bottle.spec index ba1910d..553087c 100644 --- a/python-bottle.spec +++ b/python-bottle.spec @@ -1,63 +1,55 @@ -# norootforbuild +# +# spec file for package python-bottle +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# -%if 0%{!?python_sitelib:1} || 0%{!?python_sitearch:1} -%define python_sitelib %py_sitedir -%define python_sitearch %py_sitedir -%endif -%define mod_name bottle - -Summary: Fast and simple WSGI-framework for small web-applications -Name: python-%{mod_name} -Version: 0.8.5 -Release: 0 -License: MIT -Group: Development/Libraries/Python -URL: http://bottle.paws.de/ -Source0: %{mod_name}-%{version}.tar.bz2 -Source1: %{mod_name}-docs.pdf -Source2: LICENSE -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if %suse_version >= 1120 -BuildArch: noarch -%endif +Name: python-bottle +Version: 0.9.6 +Release: 0 +Url: http://bottlepy.org/ +Summary: Fast and simple WSGI-framework for small web-applications +License: MIT +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/b/bottle/bottle-%{version}.tar.gz +Source1: bottle-docs.pdf +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +%if 0%{?suse_version} %py_requires -BuildRequires: python-devel -%if 0%{?suse_version} >= 1110 -Requires: python-base >= %{py_ver} -%else -Requires: python >= %{py_ver} +%if 0%{?suse_version} > 1110 +BuildArch: noarch %endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%description -Bottle is a fast and simple micro-framework for small web-applications. It -offers request dispatching (Routes) with url parameter support, Templates, a -build-in HTTP Server and adapters for many third party WSGI/HTTP-server and -template engines. All in a single file and with no dependencies other than the -Python Standard Library. - - -Authors: --------- - Marcell Hellkamp +%description +Bottle is a fast and simple 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-server and template engines. All in a single file and with no dependencies other than the Python Standard Library. %prep -%setup -q -n "%{mod_name}-%{version}" -cp %{S:1} . -cp %{S:2} . +%setup -q -n bottle-%{version} +cp %{SOURCE1} . + %build -%__python ./setup.py build -rm README # dead symlink as README.md does not exist +python setup.py build + %install -%__python ./setup.py install \ - --prefix="%{_prefix}" \ - --root="%{buildroot}" \ - --record-rpm=files.lst +python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" - -%files -f files.lst -%defattr(-,root,root) -%doc LICENSE bottle-docs.pdf +%files +%defattr(-,root,root,-) +%doc LICENSE.txt README.rst bottle-docs.pdf +%{python_sitelib}/* %changelog