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

Jose Pedro Oliveira jpo at lsd.di.uminho.pt
Tue Jun 6 15:53:56 UTC 2006


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

Tom 'spot' Callaway wrote:
> On Tue, 2006-06-06 at 01:10 +0100, Jose Pedro Oliveira wrote:
> 
>>> 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.
> 
> Or:
> 
> Create a sub-package for the emacs lisp add-ons. Naming guideline for
> this situation is here:
> 
> http://fedoraproject.org/wiki/Packaging/NamingGuidelines#AddonEmacs
> 
> I think I'd prefer that over triggers, but either will probably pass
> review.

If you are talking about installing only one file like

 * emacs/xemacs mode file
 * emacs/xemacs init file
 * vim files (eg: syntax file)
 * bash-completion file

it appears to me a little overkill to create a subpackage but I am
opened to suggestions.

Right now, almost every package that installs the above files appears
to do so in different ways.

Just try to see who owns the directories

 * rpm -qf /etc/bash_completion.d/
   bash-completion-20060301-1.fc5
   rpmlint-0.76-1.fc5

 * rpm -qf /usr/share/emacs/site-lisp/
   desktop-file-utils-0.10-6.1
   libidn-0.6.2-1.1
   autoconf-2.59-7
   gforth-0.6.2-6.fc5
   subversion-1.3.1-2.1
   fedora-rpmdevtools-1.6-1.fc5
   emacs-common-21.4-14
   asymptote-1.06-5.fc5

 * ... xemacs ...

 * ... vim ...

and how many files are symbolic links.


- --
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

iD8DBQFEhaUUl0metZG9hRsRAl9cAJ9t7/0mTTR6UL/L4SP7/+kFdZ721wCfco3k
5kQJGrEu3saHEQhIh6aWr8Y=
=MnWk
-----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://lists.fedoraproject.org/pipermail/packaging/attachments/20060606/c989cbb0/attachment.bin 


More information about the packaging mailing list