[Fedora-livecd-list] Patch: Spec : sticking to FE guidelines

Chitlesh GOORAH chitlesh at fedoraproject.org
Wed Sep 20 08:14:50 UTC 2006


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
-- 
http://clunixchit.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.4-2-spec.patch
Type: text/x-patch
Size: 3909 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20060920/e0e20673/attachment.bin>


More information about the Fedora-livecd-list mailing list