I'm trying to write some build automation using mock, etc. and I need to
be able to query a .spec file for some values. I did a "rpmspec --help"
and tried to go by the output but it never mentions where the spec file
goes in the arguments, for instance!
I tried:
target=fedora-21-x86_64
...
rpmspec --target=$target *.spec --eval="%version"
but this just prints "%version" as the output. How do you query a .spec
file for the macros it defines?
I did a quick search for "rpmspec" "--eval" but this didn't turn up
anything useful.
Is there a tutorial on using rpmdevtools?
Thanks,
-Philip
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct