forked from pool/python-bottle
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
This commit is contained in:
63
python-bottle.spec
Normal file
63
python-bottle.spec
Normal file
@@ -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 <marc at gsites de>
|
||||
|
||||
%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
|
Reference in New Issue
Block a user