Re: Packaging guidelines for Emacsen add-on packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux