Project

General

Profile

Revision 876e6068

ID876e6068c2bc03582218f6255312c64f848b6e45
Parent 4a7449a0
Child 106d99dd

Added by Aurelien BOMPARD about 12 years ago

Packaging sur RHEL5 : on désactive la compile auto

On désactive en fait le script /usr/lib/rpm/brp-python-bytecompile qui
génère des .pyc et .pyo, ce qui est inutile (distutils le fait déjà) et
pose des problèmes pour les fichiers .py dans /etc.

Voir https://bugzilla.redhat.com/show_bug.cgi?id=236535 pour info.

Change-Id: I60ef32d9b916e7de7e7e08fef2ff76f0e55c2f96

View differences:

pkg/vigigraph.redhat.spec
3 3
%define pyver 26
4 4
%define pybasever 2.6
5 5
%define __python /usr/bin/python%{pybasever}
6
%define __os_install_post %{__python26_os_install_post}
7
%{!?python26_sitelib: %define python26_sitelib %(python26 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
7
# Turn off the brp-python-bytecompile script
8
%define __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
8 9

  
9 10
Name:       vigilo-%{module}
10 11
Summary:    @SUMMARY@
......
60 61
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py
61 62
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi
62 63
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini
63
%ghost %{_sysconfdir}/vigilo/%{module}/*.pyo
64
%ghost %{_sysconfdir}/vigilo/%{module}/*.pyc
65 64
%config(noreplace) /etc/httpd/conf.d/%{name}.conf
66 65
%dir %{_localstatedir}/log/vigilo/
67 66
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module}
68 67
%config(noreplace) /etc/logrotate.d/%{name}
69 68
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions
70
%{python26_sitelib}/*
69
%{python_sitelib}/*

Also available in: Unified diff