From 2d428f1d750f82b907c4c20c07a7be4097b6f539 Mon Sep 17 00:00:00 2001 From: Carl George Date: Apr 08 2021 21:07:10 +0000 Subject: Remove old srpm script --- diff --git a/b-srpm.sh b/b-srpm.sh deleted file mode 100755 index 325b4c6..0000000 --- a/b-srpm.sh +++ /dev/null @@ -1,40 +0,0 @@ -#! /bin/sh -e - -if [ "x$1" = "x" ]; then - echo "Building this way needs a devrel." - exit 1 -fi - -c=centpkg -p=$(pwd) - -echo "%define devrel $1" > c.spec -echo "%define devsnap $(date +'%Y%m%d')git.$(git show -q --format='%h')" >> c.spec -cat centpkg.spec >> c.spec - -ver=$(rpmspec -q \ - --qf '%{name} %{version}\n' \ - c.spec | \ - fgrep "centpkg " | awk '{ print $2 }') - -cd .. -mkdir $c-$ver -cp -a \ - $p/COPYING \ - $p/README.md \ - $p/requirements.txt \ - $p/setup.py \ - $p/src \ - $c-$ver -tar --exclude='*~' -cvf $c-$ver.tar $c-$ver -rm -rf $c-$ver -cd $p -mv ../$c-$ver.tar . -gzip -9 $c-$ver.tar - -rpmbuild \ - --define="_sourcedir $(pwd)" \ - --define="_srcrpmdir $(pwd)" \ - -bs c.spec - -rm $c-$ver.tar.gz c.spec