1
0
forked from pool/python-Django

Accepting request 509479 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/509479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Django?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2017-07-30 09:19:59 +00:00 committed by Git OBS Bridge
parent 3a62b6a6bc
commit 5a2c1eaeb2
2 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 10 18:42:12 UTC 2017 - toddrme2178@gmail.com
- Fix wrong-script-interpreter rpmlint error.
-------------------------------------------------------------------
Mon May 8 14:32:03 UTC 2017 - toddrme2178@gmail.com

View File

@ -71,18 +71,25 @@ echo "`grep -e '^[0-9a-f]\{64\} Django-%{version}.tar.gz' %{SOURCE1} | cut -c1-
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand install -D -m 0644 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion-%{$python_bin_suffix}.sh
%python_clone -a %{buildroot}%{_bindir}/django-admin.py
%python_clone -a %{buildroot}%{_bindir}/django-admin
%{python_expand %fdupes %{buildroot}%{$python_sitelib}
# Deduplicating files can generate a RPMLINT warning for pyc mtime
%{python_expand install -D -m 0644 extras/django_bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/django_bash_completion-%{$python_bin_suffix}.sh
pushd %{buildroot}%{$python_sitelib}
# 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
%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/conf/locale/
$python -O -m compileall -d %{$python_sitelib} django/conf/locale/
$python -m compileall -d %{$python_sitelib} django/conf/locale/ru/
$python -O -m compileall -d %{$python_sitelib} django/conf/locale/ru/
popd
}