diff options
-rwxr-xr-x | build_rpm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/build_rpm b/build_rpm deleted file mode 100755 index 3fc6c05..0000000 --- a/build_rpm +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -RPM=`rpm --eval '%{_topdir}'` -[ -d "$RPM/SPECS" -a -d "$RPM/SOURCES" ] || exit 1 - -VERSION=`perl -ne '/VERSION\s+=[^0-9\.]*([0-9\.]+)/ and print "$1\n"' URPM.pm` -perl -pi -e 's/^%define\s+version\s+(\S+)/%define version '$VERSION'/' perl-URPM.spec - -echo "building URPM version $VERSION" - -rm -f "URPM-$VERSION.tar.gz" -perl Makefile.PL -make dist -[ $? = 0 ] || exit 2 -[ -f "URPM-$VERSION.tar.gz" ] || exit 3 - -cp -f perl-URPM.spec "$RPM/SPECS" -bzme URPM-$VERSION.tar.gz -mv -f URPM-$VERSION.tar.bz2 "$RPM/SOURCES" -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 |