summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2019-09-20 15:05:49 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2019-09-20 15:06:04 +0000
commitb6f77a5e2d9b020222dbc7f8d478b97cd9c4beed (patch)
tree914e937d83f685d585018c68c02c6d6f37fbb71e
parent99b2ccfd4159918ad6ccc71ab485d5951282f332 (diff)
Initial packagingHEADmaster
Change-Id: Ifc2409d0330927b79daeb0793bd29c77d85f70fd
-rw-r--r--python-bottle.spec50
1 files changed, 50 insertions, 0 deletions
diff --git a/python-bottle.spec b/python-bottle.spec
new file mode 100644
index 0000000..241e145
--- /dev/null
+++ b/python-bottle.spec
@@ -0,0 +1,50 @@
+%global pkg_name %{srcname}
+
+%global srcname bottle
+
+Name: python3-%{srcname}
+Version: 0.12.13
+Release: 1%{?dist}
+Summary: Fast and simple WSGI-framework for small web-applications
+
+Group: Development/Languages
+License: MIT
+URL: http://bottlepy.org
+Source0: https://github.com/bottlepy/%{srcname}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+Requires: python3
+BuildRequires: python3-devel
+
+%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 %{srcname}-%{version}
+sed -i '/^#!/d' bottle.py
+
+%build
+PBR_VERSION=%{version} %{__python3} setup.py build
+
+%install
+PBR_VERSION=%{version} %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+rm %{buildroot}%{_bindir}/bottle.py
+
+%files
+%license LICENSE
+%doc AUTHORS README.rst
+%{python3_sitelib}/__pycache__/*
+%{python3_sitelib}/*.egg-info
+%{python3_sitelib}/*.py
+
+%changelog
+* Fri Mar 02 2018 Tristan Cacqueray <tdecacqu@redhat.com> - 0.12.13-1
+- Fedora package import