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 }