# $Id$ # use 5.008; use ExtUtils::MakeMaker; use Getopt::Long; #- require at least rpm 4.9 my $rpm_version = `LC_ALL=C rpm --version` =~ /version ([0-9.]+)(?:-(?:beta|rc).*)?$/ ? version->new("v$1") : (); $rpm_version ge 4.9.0 or die < \$@ rpm: dist rpm --rmsource --define "_sourcedir `pwd`" -ba perl-Hdlist.spec MAKECHANGELOG } WriteMakefile( NAME => 'RPM4', VERSION_FROM => 'lib/RPM4.pm', DIR => [ 'src' ], 'EXE_FILES' => [ qw(bin/rpm_produced bin/rpmresign bin/hrpmreb) ], depend => { dist => 'copyrpmconstant' }, LICENSE => 'gpl_2', META_MERGE => { 'meta-spec' => { version => 2 }, release_status => 'stable' }, MIN_PERL_VERSION => '5.008001', CONFIGURE_REQUIRES => { 'ExtUtils::MakeMaker' => '6.64', 'Getopt::Long' => '0', }, PREREQ_PM => { Carp => 0, 'Digest::SHA1' => 0, DynaLoader => 0, Exporter => 0, 'File::Temp' => 0, 'MDV::Packdrakeng' => 0, }, dist => { COMPRESS => "xz", SUFFIX => ".xz" }, );