[packages/python-klein] new, version 0.2.3
glen
glen at pld-linux.org
Sat May 23 13:24:38 CEST 2015
commit b8bcb7424fa7af3e0233b3588959374ec662d7ed
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat May 23 14:23:51 2015 +0300
new, version 0.2.3
Created by pyp2rpm-1.1.2
python-klein.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
---
diff --git a/python-klein.spec b/python-klein.spec
new file mode 100644
index 0000000..a5ffe2e
--- /dev/null
+++ b/python-klein.spec
@@ -0,0 +1,51 @@
+%define module klein
+Summary: Klein, a Web Micro-Framework
+Name: python-%{module}
+Version: 0.2.3
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/k/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: 0aec7a0c1e373ea3e994b1266cf5281f
+URL: https://github.com/twisted/klein
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires: python-TwistedCore >= 12.1
+Requires: python-werkzeug
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Klein is a micro-framework for developing production-ready web
+services with Python. It is 'micro' in that it has an incredibly small
+API similar to Bottle and Flask. It is not 'micro' in that it depends
+on things outside the standard library. This is primarily because it
+is built on widely used and well tested components like Werkzeug and
+Twisted.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# Remove bundled egg-info
+%{__rm} -r %{module}.egg-info
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-klein.git/commitdiff/b8bcb7424fa7af3e0233b3588959374ec662d7ed
More information about the pld-cvs-commit
mailing list