Wireshark-dev: Re: [Wireshark-dev] Getting values into version_extra, VCSVERSION and VCSBRANCH

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Tue, 10 Jan 2017 20:44:58 -0500
On 01/10/2017 07:53 PM, Richard Sharpe wrote:
Now that my dissector generator is working well enough to handle the
vagaries of the ten or so XDR files we have I am working on getting
RPMs generated.

I want the version info returned by get_ws_vcs_version_info to:

1. Return some additional info in the version string, like
2.3.0-SOMEHASH where SOMEHASH is, say, the MD5 sum of all the XDR
files used.

2. The git hash and branch

However, I would like this all to happen in the SPEC file that is used
to build RPMs.

Has anyone done that?

No but do you want the RPM version to also reflect that version information?

If so you'd have to update the version information in `configure.ac` before generating the RPM (if you use our SPEC file and build process). To do that you'd want to update `version_extra` before running autogen.sh.

If you're not worried about the RPM version then you should be able to patch make-version.pl in the SPEC File with the info you want (in the lines before the SPEC file calls `make`).