%global commit 838b57d255cf009acc5a81f5d627a77dff2301df %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global pkgname flask-restless Name: python-flask-restless Version: 0.11 Release: 1%{?dist} Summary: Flask-Restless provides simple generation of ReSTful APIs License: AGPLv3 and BSD URL: http://flask-restless.readthedocs.org/ Source0: https://github.com/jfinkels/flask-restless/archive/%{commit}/%{pkgname}-%{version}-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-flask BuildRequires: python-sqlalchemy BuildRequires: python-dateutil BuildRequires: python-nose %description Flask-Restless provides simple generation of ReSTful APIs for database models defined using SQLAlchemy (or Flask-SQLAlchemy). The generated APIs send and receive messages in JSON format. %prep %setup -qn %{pkgname}-%{commit} %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} %check %{__python} setup.py test %files %doc README LICENSE.AGPL LICENSE.BSD CHANGES AUTHORS %{python_sitelib}/flask_restless %{python_sitelib}/Flask_Restless-*.egg-info %changelog * Wed Aug 07 2013 Yohan Graterol - 0.11-1 - Initial Packaging