
For anyone interested, the following code resolves this issue... ( in “/usr/lib/obs/server/build/build” ) --- build_orig 2011-12-15 00:31:44.512012497 +0000 +++ build 2011-12-15 00:18:33.519078066 +0000 @@ -1948,6 +1948,19 @@ fi if test"$BUILDTYPE" = dsc ; then +if test -f $BUILD_ROOT$TOPDIR/BUILD/debian/changelog; then + line_first=`head -1 $BUILD_ROOT$TOPDIR/BUILD/debian/changelog` + line_after=`echo $line_first | sed"s/^([^(]*([^-)]*)[^)]*().*)$/\1-$RELEASE\2/"` + echo ----------------------------------------------------------------- + echo I have the following modificationsfor $TOPDIR/BUILD/debian/changelog: + echo 1c1 + echo $line_first + echo --- + echo $line_after + echo ----------------------------------------------------------------- + sed -i"1 s/$line_first/$line_after/" $BUILD_ROOT$TOPDIR/BUILD/debian/changelog + fi + # Checks to seeif a build script should be used #this allows the build environment to be manipulated # and alternate build commands can be used On 11/5/2011 6:15 PM, Steve Rae wrote:
I understand the release tag numbering in spec files (for ‘rpm’ packages): Release: <CI_CNT>.<B_CNT>
However, I am unable to determine how to perform the same “release” numbering in ‘deb’ packages.
A simple test in home:srae:tools (build.opensuse.org) shows:
- the ‘rpm’ <CI_CNT> incrementing, but
- the ‘deb’ stays the same -- actually, it seems to use the <version>-<release> as specified on the first line of the ‘debian/changelog’ file (in debian.tar.gz)
Thanks in advance!
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org