%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: django-sendfile Version: 0.3.3 Release: 1%{?dist} Summary: A web-server specific methods wrapper for sending files to web clients Group: Development/Languages # Not sure License: MIT URL: https://github.com/johnsensible/django-sendfile # The source of this package was pulled from the upstream's github. # Use the following commands to generate the tarball: # git clone https://github.com/johnsensible/django-sendfile.git # tar -cJf django-sendfile-20120522.git92711ba.tar.xz django-sendfile Source0: django-sendfile-20120522.git92711ba.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel Requires: Django %description This is a wrapper around web-server specific methods for sending files to web clients. This is useful when Django needs to check permissions associated files, but does not want to serve the actual bytes of the file itself. i.e. as serving large files is not what Django is made for. %prep %setup -q -n %{name} %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 LICENSE MANIFEST.in README.rst %{python_sitelib}/* %changelog * Tue May 22 2012 Kévin Raymond 0.3.3-1 - Initial Release