From 5a2c1eaeb210b0bcbfcfaa0e8da4a32c5c9e6a67e47241f11a5ec4daf4c94003 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sun, 30 Jul 2017 09:19:59 +0000 Subject: [PATCH] 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 --- python-Django.changes | 5 +++++ python-Django.spec | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/python-Django.changes b/python-Django.changes index 8640ebd..404aba8 100644 --- a/python-Django.changes +++ b/python-Django.changes @@ -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 diff --git a/python-Django.spec b/python-Django.spec index dea59c6..939a062 100644 --- a/python-Django.spec +++ b/python-Django.spec @@ -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 }