Mailinglist Archive: opensuse-buildservice (351 mails)

< Previous Next >
Re: [opensuse-buildservice] local obs question
  • From: Luke Imhoff <luke@xxxxxxxx>
  • Date: Thu, 31 Jul 2008 10:36:17 -0500
  • Message-id: <1217518577.19164.44.camel@xxxxxxxxxxxxxxxxxxx>
I actually do a bunch of more stuff with %{release_suffix} in the Macros
section of my projects to handle the release versioning scheme my
company came up with, so it's not as simple as I made it in my response.

On Thu, 2008-07-31 at 15:29 +0000, Christian wrote:
Hi Luke,

Luke Imhoff schrieb:
osc meta prjconf <obs_project_name> -e

At the top of the prjconf before the Macros: section (if you have one):

Release: %%{?release_prefix}<CI_CNT>.<B_CNT>%%{?release_suffix}

Then in the spec do:

%define release_suffix .CS

The double % in the Release line definition are needed because it's
processed twice. The %{?<var>} form means only include the variable if
it's defined
There is a much easier way, if you want to do this inside spec-file only
Just read complete thread.

Release: PREFIX.<RELEASE>.SUFFIX

Cheers
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >