From 377a9c91ef276d7ff34b32426d4ea17717a6f2f5 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 3 Oct 2005 11:25:55 +0000 Subject: Don't depend on MDK::Common --- Makefile.PL | 13 +++++++++++-- 1 file 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; -- cgit v1.2.1