%global commit 26034475f2cbc32e3ece4599ec4c1f8d5c60748d %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global pkgname flask-debugtoolbar Name: python-flask-debugtoolbar Version: 0.8 Release: 2%{?dist} Summary: A port of the Django debug toolbar to Flask License: BSD URL: https://pypi.python.org/pypi/Flask-DebugToolbar Source0: https://github.com/mgood/flask-debugtoolbar/archive/%{commit}/%{pkgname}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-flask BuildRequires: python-werkzeug BuildRequires: python-itsdangerous BuildRequires: python-blinker %description A port of the Django debug toolbar to Flask %prep %setup -qn %{pkgname}-%{commit} find -name "*.html" -o -name "*.js" | xargs chmod +r-w-x %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %files %doc README.rst LICENSE CHANGES.rst %{python_sitelib}/flask_debugtoolbar %{python_sitelib}/Flask_DebugToolbar-*.egg-info %changelog * Fri Aug 09 2013 Yohan Graterol - 0.8-2 - Add CHANGE in doc * Tue Aug 06 2013 Yohan Graterol - 0.8-1 - Initial Packaging