Adding custom tags to spec and querying

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

 



I remember reading somewhere (I think on Maximum RPM) that
there's a way to define custom tags (e.g., like 'name',
'%provides', etc.) to be used in the RPM spec file, which
can then by used in querying the package using --queryformat.

For example: my-1.00-1.spec

	name: my
	version: 1.00
	release: 1
	%description:
	blah blah blah

	%mynewtag
	super-duper-tag contents

	.
	.
	.

After building and packaging I wish I could use:

	rpm -q --queryformat '%{mynewtag}\n' <rpm-file> 

which will print out:

	super-duper-tag contents

I would appreciate any pointers on how to accomplish that.

Thanks,
/Danny


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux