1
0
forked from pool/python-Django

Accepting request 628038 from home:mimi_vx:branches:devel:languages:python:django

- update to version 2.1
- move bash completion to right location
- for full chanfges please see https://docs.djangoproject.com/en/2.1/releases/2.1/
 * Dropped support for MySQL 5.5
 * Dropped support for PostgreSQL 9.3
 * Support for SpatiaLite 4.0 is removed
 * Support for SQLite < 3.7.15 is removed.

OBS-URL: https://build.opensuse.org/request/show/628038
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-Django?expand=0&rev=4
This commit is contained in:
2018-08-08 09:56:05 +00:00
committed by Git OBS Bridge
parent e6fa74722d
commit 97973428c1
7 changed files with 308 additions and 77 deletions

View File

@@ -19,17 +19,17 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-Django
Version: 2.0.7
Version: 2.1
Release: 0
Summary: A high-level Python Web framework
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://www.djangoproject.com
Source: https://www.djangoproject.com/m/releases/2.0/Django-%{version}.tar.gz
URL: http://www.djangoproject.com
Source: https://www.djangoproject.com/m/releases/2.1/Django-%{version}.tar.gz
Source1: https://www.djangoproject.com/m/pgp/Django-%{version}.checksum.txt#/Django-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source99: python-Django-rpmlintrc
BuildRequires: %{python_module devel}
BuildRequires: %{python_module base >= 3.5}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -37,14 +37,13 @@ Requires: python-Pillow
Requires: python-pytz
Requires: python-setuptools
Requires: python-xml
Requires(post): update-alternatives
Requires(preun): update-alternatives
Recommends: python-bcrypt
Provides: python3-django = %{version}
Obsoletes: python3-django < %{version}
Provides: python3-South = %{version}
Obsoletes: python3-South < %{version}
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@@ -69,12 +68,12 @@ echo "`grep -e '^[0-9a-f]\{64\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-
%python_clone -a %{buildroot}%{_bindir}/django-admin.py
%python_clone -a %{buildroot}%{_bindir}/django-admin
%{python_expand install -D -m 0644 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion-%{$python_bin_suffix}.sh
%{python_expand install -D -m 0644 extras/django_bash_completion %{buildroot}%%{_datadir}/bash-completion/completions/django_bash_completion-%{$python_bin_suffix}.sh
pushd %{buildroot}%{$python_sitelib}
chmod a-x django/contrib/admin/static/admin/js/vendor/xregexp/xregexp.js
# Fix wrong-script-interpreter
sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" django/bin/django-admin.py
sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" django/conf/project_template/manage.py-tpl
sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" django/bin/django-admin.py
sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" django/conf/project_template/manage.py-tpl
%fdupes .
# Deduplicating files can generate a RPMLINT warning for pyc mtime
$python -m compileall -d %{$python_sitelib} django/bin/
@@ -96,12 +95,11 @@ popd
%python_uninstall_alternative django-admin
%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS README.rst
%license LICENSE
%python_alternative %{_bindir}/django-admin
%python_alternative %{_bindir}/django-admin.py
%{_sysconfdir}/bash_completion.d/django_bash_completion-%{python_bin_suffix}.sh
%{_datadir}/bash-completion/completions/django_bash_completion-%{python_bin_suffix}.sh
%{python_sitelib}/django
%{python_sitelib}/Django-%{version}-py*.egg-info