From 62eeea27227f26e17cc3bf8edbfd41ad9d6785f9 Mon Sep 17 00:00:00 2001 From: Viktor Hercinger Date: Mon, 18 Mar 2013 15:48:16 +0100 Subject: modified spec path --- rpmtools.spec | 6 +++++- scripts/rpmdev-build-devspec | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/rpmtools.spec b/rpmtools.spec index 2e8b3d7..0b00c6c 100644 --- a/rpmtools.spec +++ b/rpmtools.spec @@ -1,6 +1,6 @@ Name: rpmtools Version: 1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Local RPM toolkit BuildArch: noarch @@ -29,6 +29,10 @@ install -m 755 * %{buildroot}/%{_bindir} %{_bindir}/* %changelog +* Mon Mar 18 2013 Hercinger Viktor - 1.0-4 +- changed default spec path +- can specify custom spec path + * Fri Mar 15 2013 Hercinger Viktor - 1.0-3 - added branch change option to rpmdev-build-devspec diff --git a/scripts/rpmdev-build-devspec b/scripts/rpmdev-build-devspec index dacd5c5..8d2f446 100755 --- a/scripts/rpmdev-build-devspec +++ b/scripts/rpmdev-build-devspec @@ -3,7 +3,8 @@ DESTDIR=/tmp/$0.$UID.build CLEAN=0 DIST=fedora-18-local-x86_64 -PACKAGE_PATH_BASE=$HOME/devel/specs +SYSTEM=Fedora +PACKAGE_PATH_BASE=$HOME/.specs VERBOSE=0 MAKEREPO= NOTIFY=0 @@ -62,6 +63,11 @@ do shift case $OPTION in + --base-path) + PACKAGE_PATH_BASE=$1 + shift + ;; + -b|--build) DESTDIR=$1 shift @@ -116,6 +122,7 @@ do usage: $0 [ options ] < package name > options: + --base-path Specify base path for spec searches (default: $PACKAGE_PATH_BASE) -b --build Specify output for source/built RPMs (default: $DESTDIR) --branch Change branch before building -c --clean Clean build directory before building @@ -188,7 +195,7 @@ do continue fi - SPECFILE=$(find $PACKAGE_PATH -name '*.spec' | head -1) + SPECFILE=$(find $PACKAGE_PATH/ -name '*.spec' | head -1) if [ "x$SPECFILE" = "x" ] then echo "$PACKAGE_PATH contains no spec file" -- cgit