%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} %define mainver 1.0 Name: Django Version: %{mainver} Release: 1%{?dist} Summary: A high-level Python Web framework Group: Development/Languages License: BSD URL: http://www.djangoproject.com/ Source0: http://media.djangoproject.com/releases/%{mainver}/Django-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # Note: No longer required in development version > 0.95 # BuildRequires: python-setuptools BuildRequires: python-devel %description Django is a high-level Python Web framework that encourages rapid development and a clean, pragmatic design. It focuses on automating as much as possible and adhering to the DRY (Don't Repeat Yourself) principle. %package doc Summary: Documentation for Django Group: Documentation Requires: %{name} = %{version}-%{release} Provides: %{name}-docs = %{version}-%{release} Obsoletes: %{name}-docs < %{version}-%{release} %description doc This package contains the documentation for the Django high-level Python Web framework. %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT # Language files; not under /usr/share, need to be handled manually (cd $RPM_BUILD_ROOT && find . -name 'django*.mo') | sed -e 's|^.||' | sed -e \ 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \ >> %{name}.lang # Permission fixes pushd $RPM_BUILD_ROOT%{python_sitelib}/django chmod +x conf/project_template/manage.py cd bin chmod +x profiling/gather_profile_stats.py chmod +x {{compile,make,unique}-messages,daily_cleanup,django-admin}.py popd %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS LICENSE README %{_bindir}/django-admin.py #%exclude %{_bindir}/django-admin.py? %{python_sitelib}/django %if 0%{?fedora} >= 9 %{python_sitelib}/*.egg-info %endif %files doc %defattr(-,root,root,-) %doc docs/* %changelog * Sat Sep 6 2008 Michel Salim - 1.0-1 - Update to final 1.0 release * Tue Sep 2 2008 Michel Salim - 1.0-0.1.rc1%{?dist} - CSRF security update: bz#460966 * Wed Aug 27 2008 Michel Salim - 1.0-0.1.beta2 - Update to 1.0 beta2 * Sat Aug 23 2008 Michel Salim - 1.0-0.1.beta1 - Update to 1.0 beta1 * Mon May 19 2008 Michel Salim - 0.96.2-1 - XSS security update: CVE-2008-2302 (bz# 442757-60) * Sat Apr 5 2008 Michel Salim - 0.96.1-2 - Package .egg-info file on Fedora >= 9 * Thu Nov 1 2007 Michel Salim 0.96.1-1 - i18n security update: CVE-2007-5712, bz#357051 * Sat Mar 24 2007 Michel Salim - 0.96-1 - New upstream version * Sun Jan 21 2007 Michel Salim - 0.95.1-1 - Upstream security updates: http://www.djangoproject.com/weblog/2007/jan/21/0951/ * Sun Nov 12 2006 Michel Salim - 0.95-1 - Initial package