[Rpm-maint] arbitrary tag definition and use from the python interface
skvidal at fedoraproject.org
Fri Jul 13 17:35:46 UTC 2007
On Fri, 2007-07-13 at 13:35 -0400, Peter Bowen wrote:
> On Fri, 2007-07-13 at 13:22 -0400, seth vidal wrote:
> > I was wondering how possible/doable it would be to support arbitrary tag
> > definition w/i an rpm.
> > so in the specfile I could do (for example)
> > TagDef: mytag
> > mytag: foovalue
> > Then that would get thrown into the rpm when built and when I open up
> > the header in rpm-python maybe I could do:
> > hdr.mytag
> > >>> 'foovalue'
> > How reasonable is that to consider for later versions of rpm?
> TagDef: MyTag 20003
> MyTag: foovalue
> would work on the build end. I'm not sure about the reading end. Maybe
> tag definitions could go in rpmrc? (I don't think macros are right for
> tag definitions)
right the reading end would require some way of mapping them internally,
but even if I had to map them in another way it would increase
flexibility and make it interesting for extra metadata.
More information about the Rpm-maint