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

Ville Skyttä ville.skytta at iki.fi
Wed May 30 06:42:16 UTC 2007


On Wednesday 30 May 2007, Jonathan Underwood wrote:

> Actually, I was just testing this, and it doesn't work.
>
> You added these macros:
> %define emacsversion v=$(rpm -q --qf=%%{VERSION} emacs) ; case $v in
> 2*) echo $v ;; *) echo 0 ;; esac
>
> %define xemacsversion v=$(rpm -q --qf=%%{VERSION} xemacs) ; case $v in
> 2*) echo $v ;; *) echo 0 ;; esac
>
> And so whenthere is a Requires: emacs-common >= %{emacsversion} you
> get an error like this:
>
> error: line 21: Dependency tokens must begin with alpha-numeric, '_'
> or '/': Requires:  emacs-common >= v=$(rpm -q --qf=%{VERSION} emacs) ;
> case $v in 2*) echo $v ;; *) echo 0 ;; esac

Oops, that's right.  Forgot that those macros need to be referred to 
like %(%{emacsversion}), not plain %{emacsversion}.  Fixed.




More information about the Fedora-packaging mailing list