From 0ee59b3ffd12cfe392d3b9797f8f241867262c66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 26 Feb 2015 23:40:40 +0200 Subject: [PATCH] drop rpmb not needed either, rpm-build-macros can setup spec and sourcedirs properly apply 4bd523d4d38aa9b69d383ab41e722fbeed3c0b9a from rpm-build-macros repo --- shrc.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/shrc.sh b/shrc.sh index 9013c81..a15e0e5 100755 --- a/shrc.sh +++ b/shrc.sh @@ -262,15 +262,3 @@ d() { rpm2spec() { sed -re 's,^(.+)-[^-]+-[^-]+$,\1.spec,' } - -rpmb() { - local SPEC SPECDIR arg - for arg in "$@"; do - case "$arg" in - *.spec) SPEC="$arg" - ;; - esac - done - SPECDIR=$(dirname "$(pwd)/${SPEC:-.}") - command rpmbuild --define "_specdir $SPECDIR" --define "_sourcedir $SPECDIR" "$@" -} -- 2.44.0