# Created by pyp2rpm-0.3.1 %global pypi_name django-roa Name: python-%{pypi_name} Version: 1.7 Release: 1%{?dist} Summary: Turn your models into remote resources that you can access through Django's ORM License: BSD URL: http://pypi.python.org/pypi/django-roa/1.7 Source0: http://pypi.python.org/packages/source/d/django-roa/django-roa-1.7.tar.gz Source1: http://code.larlet.fr/django-roa/raw/08359f107f32/LICENSE BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-restkit %if 0%{?fedora} < 18 Requires: Django %else Requires: python-django %endif %description Turn your models into remote resources that you can access through Django's ORM. ROA stands for Resource Oriented Architecture. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} mkdir -p %{buildroot}%{_docdir}/%{name}-%{version} mv %{buildroot}%{python_sitelib}/examples %{buildroot}%{_docdir}/%{name}-%{version} %files %doc LICENSE %{python_sitelib}/django_roa %{python_sitelib}/django_roa-%{version}-py?.?.egg-info %changelog * Tue May 22 2012 Bohuslav Kabrda - 1.7-1 - Initial package.