aboutsummaryrefslogtreecommitdiffstats
path: root/build_rpm
diff options
context:
space:
mode:
Diffstat (limited to 'build_rpm')
-rwxr-xr-xbuild_rpm6
1 files changed, 5 insertions, 1 deletions
diff --git a/build_rpm b/build_rpm
index aa4c794..3fc6c05 100755
--- a/build_rpm
+++ b/build_rpm
@@ -17,4 +17,8 @@ make dist
cp -f perl-URPM.spec "$RPM/SPECS"
bzme URPM-$VERSION.tar.gz
mv -f URPM-$VERSION.tar.bz2 "$RPM/SOURCES"
-rpm -ba --clean --rmsource "$RPM/SPECS/perl-URPM.spec"
+if [ -x /usr/bin/rpmbuild ]; then
+ rpmbuild -ba --clean --rmsource "$RPM/SPECS/perl-URPM.spec"
+else
+ rpm -ba --clean --rmsource "$RPM/SPECS/perl-URPM.spec"
+fi