%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-typepad Version: 1.0.1 Release: 1%{?dist} Summary: A helper Django app for making TypePad applications Group: Development/Languages License: BSD URL: http://sixapart.github.com/typepadapp/ Source0: http://pypi.python.org/packages/source/t/typepadapp/typepadapp-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: Django python-devel python-setuptools-devel Requires: Django python-batchhttp python-feedparser python-httplib2 Requires: python-oauth python-remoteobjects python-simplejson python-typepad %description The typepadapp Django application provides all the necessary underpinnings for you to build TypePad cloud applications. %prep %setup -q -n typepadapp-%{version} %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT chmod 0755 $RPM_BUILD_ROOT%{python_sitelib}/typepadapp/conf/project_template/app.wsgi chmod 0644 $RPM_BUILD_ROOT%{python_sitelib}/typepadapp/static/soundmanager/soundmanager2.js chmod 0644 $RPM_BUILD_ROOT%{python_sitelib}/typepadapp/static/soundmanager/soundmanager2-nodebug-jsmin.js %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE %{python_sitelib}/* %changelog * Tue Oct 06 2009 Sebastian Dziallas - 1.0.1-1 - initial packaging