%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define vcsdate 20090813 %define vcstag r420 Name: django-profile Version: 0.6 Release: 0.2.%{vcsdate}svn%{vcstag}%{?dist} Summary: Django pluggable user profile zone Group: Development/Languages License: BSD URL: http://code.google.com/p/django-profile/ # svn export -%{vcstag} http://django-profile.googlecode.com/svn/trunk/ django-profile-%{version}-%{vcshatag} # tar zcf django-profile-%{version}-%{vcstag}.tar.gz django-profile-%{version}-%{vcstag} Source: django-profile-%{version}-%{vcstag}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools-devel Requires: Django python-imaging %description This is a user private zone/profile management application, allowing the user to take control of his account and insert information about him in his profile. Inside this package you will find a demo application which will show you what can be accomplished with the rest of the utilities included in the package. %prep %setup -q -n %{name}-%{version}-%{vcstag} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc INSTALL.txt CHANGELOG.txt LICENSE.txt README.txt TODO.txt demo/ %{python_sitelib}/* %exclude %{python_sitelib}/demo %changelog * Fri Aug 14 2009 Diego Búrigo Zacarão 0.6-0.2.20090813svnr420 - Added docs - Fixed version in the previous changelog - Fixed License to BSD based on the LICENSE.txt file - Moved demo app to docs - Excluded demo app from python path * Thu Aug 13 2009 Diego Búrigo Zacarão 0.6-0.1.20090813svnr420 - Initial RPM