Changeset 959 for rpmbuild-bot


Ignore:
Timestamp:
Feb 8, 2017, 10:23:32 AM (9 years ago)
Author:
dmik
Message:

rpmbuild-bot: Store version number with dist mark for legacy packages.

This is to have a proper version field in generated legacy sub-packages.

Location:
rpmbuild-bot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rpmbuild-bot/changelog.txt

    r749 r959  
    11History of changes
    22------------------
     3
     41.2.0 [xx.10.2016]
     5  - Add move command to move packages between repositories.
     6  - Remove log files before creating them (needed for recovering after some
     7    failures).
     8  - Print elapsed time after each succeded step and overall.
     9  - Support stat timestamps w/o fractional part (new coreutils).
     10  - Support per-package ARCH specification in -env.sh (useful for e.g.
     11    binary-only RPMs that provide only one architecture, like libc).
     12  - Run rpmbuild only once for noarch-only SPEC files (this also fixes a
     13    regression when building such files with previous rpmbuild-bot versions).
     14  - Automatically commit SPEC files to SVN on upload to ensure integrity
     15    and consistency between published RPMs and their SPECs.
     16  - Add support for automatic generation of legacy runtime sub-packages.
    317
    4181.1.0 [15.04.2016]
  • rpmbuild-bot/rpmbuild-bot.sh

    r949 r959  
    366366    [ -z "$mask" ] && mask="*.dll"
    367367
     368    # add the dist suffix, if any, to ver (to make it consistent)
     369    ver="$ver$dist_mark"
     370
    368371    abi_list="$abi_list${abi_list:+ }$abi"
    369372
     
    371374    echo "Getting legacy runtime ($mask) for ABI '$abi'..."
    372375    for arch in ${legacy_arch:-${arch_list}} ; do
    373       eval local rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-$ver$dist_mark.$arch.rpm"
     376      eval local rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-$ver.$arch.rpm"
    374377      local tgt_dir="$src_dir/$spec_name-legacy/$abi/$arch"
    375378      # Check filenames and timestamps
     
    389392        find "$tgt_dir" -type f -printf '/%P\n' > "$tgt_dir.files.list"
    390393        # now try to locate the debuginfo package and extract *.dbg from it
    391         eval local debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debuginfo-$ver$dist_mark.$arch.rpm"
    392         [ ! -f "$debug_rpm" ] && eval debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debug-$ver$dist_mark.$arch.rpm"
     394        eval local debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debuginfo-$ver.$arch.rpm"
     395        [ ! -f "$debug_rpm" ] && eval debug_rpm="$RPMBUILD_BOT_UPLOAD_REPO_LAYOUT_rpm/$name-debug-$ver.$arch.rpm"
    393396        if [ -f "$debug_rpm" ] ; then
    394397          echo "Found debug info package $debug_rpm, extracting..."
Note: See TracChangeset for help on using the changeset viewer.