summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/rpmbuild-cwd10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/rpmbuild-cwd b/bin/rpmbuild-cwd
new file mode 100755
index 0000000..156e099
--- /dev/null
+++ b/bin/rpmbuild-cwd
@@ -0,0 +1,10 @@
+#!/bin/sh
+# rpmbuild-cwd:
+# Run "rpmbuild", defining all RPM variables to use the current directory.
+# This matches Fedora's system.
+#
+# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php)
+# Copyright (C) 2010 Red Hat, Inc.
+# Written by Colin Walters <walters@verbum.org>
+
+exec rpmbuild --define '_sourcedir .' --define '_specdir .' --define '_builddir .' --define '_srcrpmdir .' --define '_rpmdir .' "$@"