Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
waliki
python-django-sendfile
python-django-sendfile.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-django-sendfile.spec of Package python-django-sendfile
%if 0%{?fedora} < 35 %global with_python2 1 %endif %if 0%{?fedora} >= 22 %global with_python3 1 %endif %define author johnsensible %define unmangled_name django-sendfile Summary: Abstraction to offload file uploads to web-server Name: python-%{unmangled_name} Version: 0.3.11 Release: 1%{?dist} Source0: https://github.com/%{author}/%{unmangled_name}/archive/v%{version}/%{unmangled_name}-%{version}.tar.gz Patch0: python-django-sendfile-django4.0.patch License: BSD Group: Development/Libraries Prefix: %{_prefix} BuildArch: noarch %if 0%{?with_python2} BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python2-django %endif %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-django %endif Vendor: John Montgomery <john@sensibledevelopment.com> Url: https://github.com/johnsensible/django-sendfile %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. Note this should not be used for regular file serving (e.g. css etc), only for cases where you need Django to do some work before serving the actual file. %if 0%{?with_python2} %package -n python2-%{unmangled_name} Summary: Abstraction to offload file uploads to web-server Group: Development/Libraries Requires: python-django >= 1.3 %{?python_provide:%python_provide python2-%{unmangled_name}} %description -n python2-%{unmangled_name} 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. Note this should not be used for regular file serving (e.g. css etc), only for cases where you need Django to do some work before serving the actual file. This package contains the python2 version of this module. %endif %if 0%{?with_python3} %package -n python3-%{unmangled_name} Summary: Abstraction to offload file uploads to web-server Group: Development/Libraries Requires: python3-django >= 1.3 %{?python_provide:%python_provide python3-%{unmangled_name}} %description -n python3-%{unmangled_name} 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. Note this should not be used for regular file serving (e.g. css etc), only for cases where you need Django to do some work before serving the actual file. This package contains the python3 version of this module. %endif %prep %autosetup -n %{unmangled_name}-%{version} -p1 %build %if 0%{?with_python2} %py2_build %endif %if 0%{?with_python3} %py3_build %endif %install %if 0%{?with_python3} %py3_install %endif %if 0%{?with_python2} %py2_install %endif %check PYTHONPATH=$PWD:$PWD/examples DJANGO_SETTINGS_MODULE=protected_downloads.settings django-admin test %clean rm -rf $RPM_BUILD_ROOT %if 0%{?with_python2} %files -n python2-%{unmangled_name} %{python2_sitelib}/sendfile %{python2_sitelib}/django_sendfile-%{version}-py*.*.egg-info %endif %if 0%{?with_python3} %files -n python3-%{unmangled_name} %{python3_sitelib}/sendfile %{python3_sitelib}/django_sendfile-%{version}-py*.*.egg-info %endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor