summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Hercinger <vhercing@redhat.com>2013-03-18 15:48:16 +0100
committerViktor Hercinger <vhercing@redhat.com>2013-03-18 15:48:16 +0100
commit62eeea27227f26e17cc3bf8edbfd41ad9d6785f9 (patch)
treedcfbb40983ee6e27241685285df42aefdd48a17b
parent24a4da5df10c49eb74b7fc81c95d235584ef973f (diff)
downloadrpm-tools-62eeea27227f26e17cc3bf8edbfd41ad9d6785f9.tar.gz
rpm-tools-62eeea27227f26e17cc3bf8edbfd41ad9d6785f9.tar.xz
rpm-tools-62eeea27227f26e17cc3bf8edbfd41ad9d6785f9.zip
modified spec path
-rw-r--r--rpmtools.spec6
-rwxr-xr-xscripts/rpmdev-build-devspec11
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 <hercinger.viktor@gmail.com> - 1.0-4
+- changed default spec path
+- can specify custom spec path
+
* Fri Mar 15 2013 Hercinger Viktor <hercinger.viktor@gmail.com> - 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"