X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=builder.sh;h=a091ffcd40e8dc73221d0dd19c79e6ea6cb4be07;hb=1f4dc0c2b6777b4af478bada8b44fb3064f33e50;hp=4ea1d3d8904a203ea2bb28b8e4ea0343583b2f81;hpb=b35217ea1e1522e9feb6aabfce686f09bd0e3370;p=packages%2Frpm-build-tools.git diff --git a/builder.sh b/builder.sh index 4ea1d3d..a091ffc 100755 --- a/builder.sh +++ b/builder.sh @@ -1756,6 +1756,8 @@ build_package() { fi # Enable/disable distro wide bconds based on ~/.distbcond process_distbcond "$specdir/$SPECFILE" + # Add %tld macro to release to allow release control + sed -i -r -e '/^Release:/s/%\{\?tld\}//g; s/^Release:\s+(.*)$/Release:\t\1%{?tld}/;' $specdir/$SPECFILE # FIXME: eval here is exactly why? PATH=$CLEAN_PATH eval teeboth "'$logfile'" ${TIME_COMMAND} ${NICE_COMMAND} $RPMBUILD $TARGET_SWITCH $BUILD_SWITCH -v $QUIET $CLEAN $RPMOPTS $RPMBUILDOPTS $BCOND --define \'_specdir $PACKAGE_DIR\' --define \'_sourcedir $PACKAGE_DIR\' $specdir/$SPECFILE retval=$?