[python-frozen-flask] Initial packaging

Diego Daguerre lunaticc0 at fedoraproject.org
Sat May 10 15:26:47 UTC 2014


commit 0b1b0889256e44922e70ec6f1e5a01b5d96d7067
Author: Diego Daguerre <diegodc.uy at gmail.com>
Date:   Sat May 10 12:26:59 2014 -0300

    Initial packaging

 python-frozen-flask.spec |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/python-frozen-flask.spec b/python-frozen-flask.spec
new file mode 100644
index 0000000..120ec30
--- /dev/null
+++ b/python-frozen-flask.spec
@@ -0,0 +1,45 @@
+# sitelib for noarch packages, sitearch for others (remove the unneeded one)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+
+%global pypi_name Frozen-Flask
+
+Name:           python-frozen-flask
+Version:        0.11
+Release:        1%{?dist}
+Summary:        Frozen-Flask freezes a Flask application into a set of static files
+
+License:        BSD
+URL:            https://pypi.python.org/pypi/%{pypi_name}
+Source0:        https://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+Requires:       python-flask
+%description
+Frozen-Flask freezes a Flask application into a set of static files. The result
+can be hosted without any server-side software other than a traditional web 
+server.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+rm -rf %{pypi_name}.egg-info
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+ 
+%files
+%doc LICENSE README
+%{python_sitelib}/*
+
+
+%changelog
+* Thu May  8 2014 Diego Daguerre <diegodc.uy at gmail.com> - 0.11-1
+- Initial packaging


More information about the scm-commits mailing list