Question concerning the "openpkg index" command. I have a local OpenPKG
repository that includes a couple of my own internally developed RPM
packages. In those packages spec files, I generally make use of an RPM
macro in the Release: tag since I am building these packages for
different projects or OSes, ie. something like:
Release: 2%{rpmdist}.20080716
In my ~/.openpkg/rpmmacros, I define the macro as:
%rpmdist .rhel
This works fine when I rpmbuild the packages, but when I go to use the
openpkg index command, in the resulting index.rdf file, it puts the
literal macro text everywhere rather than substituting its value, ie.
the file ends up like this:
<rdf:Description about="msttcorefonts-2.0-2%{rpmdist}.20080716"
href="LOCAL/msttcorefonts-2.0-2.rhel.20080716.src.rpm">
<Name>msttcorefonts</Name>
<Version>2.0</Version>
<Release>2%{rpmdist}.20080716</Release>
rather than what I expect:
<rdf:Description about="msttcorefonts-2.0-2.rhel.20080716"
href="LOCAL/msttcorefonts-2.0-2.rhel.20080716.src.rpm">
<Name>msttcorefonts</Name>
<Version>2.0</Version>
<Release>2.rhel.20080716</Release>
I confirmed with "openpkg rpm --eval '%{rpmdist}'" that RPM is properly
recognizing the value from the rpmmacros file. Is there any way to
cause openpkg index to substitute the value for the macro or do I just
need to continue to post-process the RDF file manually to fix this?
thanks!
-steve