[Fedora-packaging] proper way to install emacs lisp add-ons?

Jose Pedro Oliveira jpo at lsd.di.uminho.pt
Tue Jun 6 00:10:13 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zing wrote:
> I'm looking into packaging gtypist, which has an emacs add-on:
> gtypist-mode.{el,elc}
> 
> I'd like to just put %{_datadir}/emacs/site-lisp/* in %files and be done
> with it but this seems to go in direct opposition to the following:
> 
> ================================================================
> http://fedoraproject.org/wiki/Packaging/ReviewGuidelines
> 
> MUST: A package must own all directories that it creates. If it does not
> create a directory that it uses, then it should require a package which
> does create that directory. The exception to this are directories listed
> explicitly in the Filesystem Hierarchy Standard ([WWW]
> http://www.pathname.com/fhs/pub/fhs-2.3.html), as it is safe to assume
> that those directories exist. 
> 
> MUST: Packages must not own files or directories already owned by other
> packages. The rule of thumb here is that the first package to be installed
> should own the files or directories that other packages may rely upon.
> This means, for example, that no package in Fedora should ever share
> ownership with any of the files or directories owned by the filesystem or
> man package. If you feel that you have a good reason to own a file or
> directory that another package owns, then please present that at package
> review time.
> =================================================================
> 
> So I can (in my personal ascending in preference):
> 
> 1. Require: emacs (this doesn't seem reasonable for people who
> don't use emacs since the lisp add-ons are usually optional)
> 2. do something like cscope and use triggers (just say no to triggers).
> 3. create a sub-package just for the emacs lisp add-on. (seems cleanest,
> but is there a naming guideline for this situation? What would the name
> be? Is this worth the effort?)
> 
> or... 4. Can I just go ahead with %{_datadir}/emacs/site-lisp/*? :)

Use triggers and ghost the emacs/xemacs directories. For an example see
the fedora-rpmdevtools specfile.

jpo
- --
José Pedro Oliveira
* mailto: jpo at di.uminho.pt * http://gsd.di.uminho.pt/jpo *
* gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B *
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEhMfkl0metZG9hRsRAox/AKDhIQaiRS2pyF5O88j7cOYGbFPELACeLk27
6O1QUQiLEjx7KpUgATy2mzE=
=oAlO
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4616 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20060606/3d8febf7/attachment.bin>


More information about the Fedora-packaging mailing list