This is our old Q&A Site. Please post any new questions and answers at

I'm running on RHEL 7.2, i'm wondering if there's a way to set the Release number (which is defined om the spec file) as a variable like the Version number which is being generated by the and is written to the config.h , I'd like to set a kind of BUILD_NUMBER variable somewhere, and it'll take the value of the exported variable during the execution.

asked 14 Feb '16, 14:27

alex1312's gravatar image

accept rate: 0%

Sure. You'd just need to set a variable (e.g., BUILD_NUMBER) and then AC_SUBST it (all in and then change the Release line in packaging/rpm/SPECS/ to reference the variable (Release: @[email protected]). You could add the build number to other .in files too if desired.

Of course you'd need to autogen and configure again to regenerate wireshark.spec.

permanent link

answered 17 Feb '16, 08:00

JeffMorriss's gravatar image

JeffMorriss ♦
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Feb '16, 14:27

question was seen: 1,730 times

last updated: 17 Feb '16, 08:00

p​o​w​e​r​e​d by O​S​Q​A