commit 5c574aa1dc4fb37020d2eb221b5f15b79ae477df9bbb7ed06e94a2ec250258cd Author: Cristian Rodríguez Date: Fri Nov 19 14:52:51 2010 +0000 Accepting request 53440 from home:babelworx:python OBS-URL: https://build.opensuse.org/request/show/53440 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c92ab7d --- /dev/null +++ b/LICENSE @@ -0,0 +1,27 @@ +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 new file mode 100644 index 0000000..f09aedb --- /dev/null +++ b/bottle-0.8.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5b32f9aee6d6f61189484aa374c6dcdacc2f586d7c686b044c492efe76d6a34 +size 30163 diff --git a/bottle-docs.pdf b/bottle-docs.pdf new file mode 100644 index 0000000..003ce4e --- /dev/null +++ b/bottle-docs.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:193b360beecb26c582bd3937b799344eb4818e914fe49085ffb177b852a91486 +size 482582 diff --git a/python-bottle.changes b/python-bottle.changes new file mode 100644 index 0000000..f8cc717 --- /dev/null +++ b/python-bottle.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 19 10:38:29 UTC 2010 - cfarrell@novell.com + +- Added LICENSE and bottle-docs.pdf. +- Removed dead symlink README + +------------------------------------------------------------------- +Fri Nov 19 09:21:46 UTC 2010 - cfarrell@novell.com + +- Initial build + diff --git a/python-bottle.spec b/python-bottle.spec new file mode 100644 index 0000000..ba1910d --- /dev/null +++ b/python-bottle.spec @@ -0,0 +1,63 @@ +# norootforbuild + +%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 +%py_requires +BuildRequires: python-devel +%if 0%{?suse_version} >= 1110 +Requires: python-base >= %{py_ver} +%else +Requires: python >= %{py_ver} +%endif + +%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 + +%prep +%setup -q -n "%{mod_name}-%{version}" +cp %{S:1} . +cp %{S:2} . +%build +%__python ./setup.py build +rm README # dead symlink as README.md does not exist +%install +%__python ./setup.py install \ + --prefix="%{_prefix}" \ + --root="%{buildroot}" \ + --record-rpm=files.lst + +%clean +[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" + +%files -f files.lst +%defattr(-,root,root) +%doc LICENSE bottle-docs.pdf + +%changelog