aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-03 11:25:55 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-03 11:25:55 +0000
commit377a9c91ef276d7ff34b32426d4ea17717a6f2f5 (patch)
tree5e36f103dc8121fc1ef428b7c268f87f356a20eb /Makefile.PL
parent805094ae296354d4077a72083785f5de51a294cb (diff)
downloadrpmtools-377a9c91ef276d7ff34b32426d4ea17717a6f2f5.tar
rpmtools-377a9c91ef276d7ff34b32426d4ea17717a6f2f5.tar.gz
rpmtools-377a9c91ef276d7ff34b32426d4ea17717a6f2f5.tar.bz2
rpmtools-377a9c91ef276d7ff34b32426d4ea17717a6f2f5.tar.xz
rpmtools-377a9c91ef276d7ff34b32426d4ea17717a6f2f5.zip
Don't depend on MDK::Common
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.PL b/Makefile.PL
index e556c5a..d59a811 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,10 +1,19 @@
# $Id$
+use strict;
use ExtUtils::MakeMaker;
-use MDK::Common qw(cat_);
-(my $rpmtools_version) = cat_('rpmtools.spec') =~ /define\s+version\s+(\d+\.\d+\.\d+)/
+my $spec;
+{
+ local $/ = undef;
+ open my $specfh, 'rpmtools.spec' or die "Can't open rpmtools.spec: $!\n";
+ $spec = <$specfh>;
+ close $specfh;
+}
+
+(my $rpmtools_version) = $spec =~ /define\s+version\s+(\d+\.\d+\.\d+)/
or die "no version found\n";
+warn "building rpmtools version v$rpmtools_version\n";
my $tag_version = "v$rpmtools_version";
$tag_version =~ s/\./_/g;