[Fedora-packaging] underscore in tryton modules

Tom "spot" Callaway tcallawa at redhat.com
Mon Nov 24 17:58:38 UTC 2008


On Mon, 2008-11-24 at 16:04 +0100, Dan Horák wrote:
> Tom "spot" Callaway píše v Po 24. 11. 2008 v 09:53 -0500:
> > On Mon, 2008-11-24 at 15:30 +0100, Dan Horák wrote:
> > > Hi,
> > > 
> > > do Tryton (http://www.tryton.org) module names in format
> > > trytond_full_module_name-$version.tar.gz (see full list at
> > > http://downloads.tryton.org/1.0/) qualify for the underscore exception
> > > from the Naming Guideline?
> > 
> > I'm inclined to say no... how painful would it be to use - in the
> > package name instead?
> 
> Not much, just to put more intelligence into the spec file generator :-)
> 
> Can I somehow convert the "-" in a %name into "_" (stored in some other
> variable) directly in the spec?

%define truename foo_bar
%define dashedname %(echo %{truename} | tr '_' '-')

~spot




More information about the Fedora-packaging mailing list