Hello Jasper,
Here is a patch for the spec file.
http://fedoraproject.org/wiki/Extras/FullExceptionList: glib2-devel and e2fsprogs dropped as BR
According to new FR python packaging guidelines, %{ghost} should no longer be used! http://fedoraproject.org/wiki/Packaging/Python
I quote: ---------- In the past it was common practice to %ghost .pyo files in order to save a small amount of space on the users filesystem. However, this has two issues:
1. With SELinux, if a user is running python -O [APP] it will try to write the .pyos when they don't exist. This leads to AVC denial records in the logs. 2. If the system administrator runs python -OO [APP] the .pyos will get created with no docstrings. Some programs require docstrings in order to function. On subsequent runs with python -O [APP] python will use the cached .pyos even though a different optimization level has been requested. The only way to fix this is to find out where the .pyos are and delete them.
The current method of dealing with pyo files is to include them as is, no %ghosting ----------
%changelog - (BR) glib2-devel and e2fsprogs are in FE exception list, autoconf depends on automake - Cleaned directory ownership of %%{_datadir}/%%{name} - Removed python and perl as requires - Fixed permissions of COPYING and lib/shvar.py - Added timestamps while copying files as required by FE - Added *.pyc,*.pyo in the package, as stated in the new FE python guidelines
Can you change the permissions of COPYING and lib/shvar.py upsteam directly and remove the appropriate lines on my patch ?
Chitlesh
Chitlesh GOORAH wrote:
Hello Jasper,
Here is a patch for the spec file.
Can you change the permissions of COPYING and lib/shvar.py upsteam directly and remove the appropriate lines on my patch ?
It would be a lot simpler if it was just changed in the patch. I think also you forgot to turn AutoReqProv: back on after removing the PERL and Python requires.
J. Hartline
livecd@lists.fedoraproject.org