[Fedora-packaging] Packaging guidelines for Emacsen add-on packages

Ville Skyttä ville.skytta at iki.fi
Thu May 31 18:17:48 UTC 2007

On Thursday 31 May 2007, Jonathan Underwood wrote:

> So how do we feel about
> emacs --no-site-file --version | head -n1 | awk '{print $3}'
> and
> xemacs --no-site-file --version | head -n1 | awk '{print $2}'
> (not guaranteed that it will work in future emacs versions which may
> change their formatting of --version info.)

Bad, as explained before.  Instead, how about adding some pkgconfig files 
which are generated during build and thus we have complete control over their 
contents?  Eg. the attached one to xemacs-devel:

$ pkg-config xemacs --modversion
$ pkg-config xemacs --variable=sitestartdir
$ pkg-config xemacs --variable=sitepkglispdir
$ pkg-config xemacs --variable=sitemoduledir
$ pkg-config xemacs --cflags
-------------- next part --------------

Name: xemacs
Description: Different version of Emacs
Version: 21.5.28
Cflags: -I${includedir}

More information about the Fedora-packaging mailing list