File python3-django.spec of Package python3-django
#
# spec file for package python3-django
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-django
Version: 1.5.2
Release: 0
Summary: A high-level Python Web framework
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://www.djangoproject.com
Source: Django-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM Django-1.2-completion-only-for-bash.patch
Patch1: Django-1.2-completion-only-for-bash.patch
# PATCH-FIX-UPSTREAM - see https://github.com/django/django/pull/150/files
Patch2: Django-1.4-CSRF_COOKIE_HTTPONLY-support.patch
BuildRequires: python3-devel
Requires: python3-xml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Requires: gettext-tools
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
Requires: python(abi) = %{py3_ver}
%description
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
%prep
%setup -q -n Django-%{version}
%patch1
%patch2
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -D -m 0755 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_python%{py3_ver}_bash_completion.sh
mv %{buildroot}%{_bindir}/django-admin.py %{buildroot}%{_bindir}/django-admin-python%{py3_ver}.py
ln -s %{_bindir}/django-admin-python%{py3_ver}.py %{buildroot}%{_bindir}/django-admin-python%{py3_ver}
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README.rst
%{_bindir}/django-admin-python%{py3_ver}*
%{python3_sitelib}/django/
%{python3_sitelib}/Django-%{version}-py%{py3_ver}.egg-info
%{_sysconfdir}/bash_completion.d/django_python%{py3_ver}_bash_completion.sh
%changelog