[Fedora-packaging] underscore in tryton modules

Ignacio Vazquez-Abrams ivazqueznet at gmail.com
Mon Nov 24 17:39:01 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?

%global oldname %(shell echo "%{name}" | sed 's/-/_/g')

After %name has been defined, of course.

-- 
Ignacio Vazquez-Abrams <ivazqueznet at gmail.com>

PLEASE don't CC me; I'm already subscribed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20081124/0eb7e460/attachment.sig>


More information about the Fedora-packaging mailing list