1
0
forked from pool/python-Django

Accepting request 516162 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/516162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=32
This commit is contained in:
2017-08-14 10:38:18 +00:00
committed by Git OBS Bridge
parent 5a2c1eaeb2
commit eb4c061c74
6 changed files with 333 additions and 74 deletions

View File

@@ -19,23 +19,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Django
Version: 1.10.7
Version: 1.11.4
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/1.10/Django-%{version}.tar.gz
Source: https://www.djangoproject.com/m/releases/1.11/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: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pillow
Requires: python-pytz
Requires: python-setuptools
Requires: python-xml
Recommends: python-bcrypt
%ifpython2
Obsoletes: %{oldpython}-django < %{version}
Provides: %{oldpython}-django = %{version}
@@ -82,10 +84,10 @@ 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
%fdupes .
# Deduplicating files can generate a RPMLINT warning for pyc mtime
$python -m compileall -d %{$python_sitelib} django/bin/django-admin.py
$python -O -m compileall -d %{$python_sitelib} django/bin/django-admin.py
$python -m compileall -d %{$python_sitelib} django/conf/project_template/manage.py-tpl
$python -O -m compileall -d %{$python_sitelib} django/conf/project_template/manage.py-tpl
$python -m compileall -d %{$python_sitelib} django/bin/
$python -O -m compileall -d %{$python_sitelib} django/bin/
$python -m compileall -d %{$python_sitelib} django/conf/project_template/
$python -O -m compileall -d %{$python_sitelib} django/conf/project_template/
$python -m compileall -d %{$python_sitelib} django/conf/locale/
$python -O -m compileall -d %{$python_sitelib} django/conf/locale/
$python -m compileall -d %{$python_sitelib} django/conf/locale/ru/