%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-remoteobjects Version: 1.0 Release: 2%{?dist} Summary: An Object RESTational Model Group: Development/Languages License: BSD URL: http://sixapart.github.com/remoteobjects/ Source0: http://pypi.python.org/packages/source/r/remoteobjects/remoteobjects-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: python-httplib2 python-simplejson %description remoteobjects are real subclassable Python objects on which you can build a rich API library. remoteobjects provides easy coding and transfer between Python objects and a JSON REST API. You can define the resources in a RESTful API as RemoteObject classes and their properties. These objects then support using the basic HTTP verbs to request and submit data to the API. %prep %setup -q -n remoteobjects-%{version} %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE %{python_sitelib}/* %changelog * Tue Oct 06 2009 Sebastian Dziallas - 1.0-2 - add setuptools as BR * Tue Oct 06 2009 Sebastian Dziallas - 1.0-1 - initial packaging