%define oname django-piston %define rel 2 Name: python-django-piston Version: 0.2.3 Release: %mkrel %rel Summary: A mini-framework for Django for creating RESTful APIs Group: Development/Python License: BSD URL: http://bitbucket.org/jespern/django-piston/ Source: http://bitbucket.org/jespern/django-piston/downloads/%{oname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python-devel python-setuptools Requires: python-django %description Piston is a relatively small Django application that lets you create application programming interfaces (API) for your sites. %prep %setup -q -n %{oname}-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT # copied manually as I do not understand how to fix setup.py cp piston/__init__.py $RPM_BUILD_ROOT/%python_sitelib/piston/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{python_sitelib}/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.2.3-2.mga3 + Revision: 378692 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + misc <misc> - ditch mercurail snapshot magic, not needed now a new stable release is out * Thu Nov 17 2011 misc <misc> 0.2.3-1.mga2 + Revision: 168350 - new version 0.2.3 ( security fix ) * Tue Apr 19 2011 misc <misc> 0.2.3-0.0.2.e539a104d516.mga1 + Revision: 88733 - fix package, as it seesm that __init__.py was not copied * Tue Apr 05 2011 misc <misc> 0.2.3-0.0.1.e539a104d516.mga1 + Revision: 80866 - update to a mercurial snapshot, to fix issue with transifex ( http://trac.transifex.org/ticket/634 ) * Thu Jan 27 2011 ahmad <ahmad> 0.2.2-2.mga1 + Revision: 42396 - imported package python-django-piston