-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.PL
106 lines (91 loc) · 2.66 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
######################################################################
# Makefile.PL for App::CPANtoRPM
######################################################################
use strict;
use warnings;
use 5.006;
use ExtUtils::MakeMaker 6.30;
my %IsWin32 = map { $_ => 1 } qw( MSWin32 NetWare symbian );
my $IsWin32 = 1 if ($IsWin32{ $^O });
my $Pvers = $];
my $ConvVers= $ExtUtils::MakeMaker::VERSION;
my %module_prereq = (
'IO::File' => '0',
'POSIX' => '0',
'locale' => '0',
);
my %script_prereq = (
);
my %test_prereq = (
'Test::Inter' => '1.09',
'Test::More' => '0',
);
my %config_prereq = (
'ExtUtils::MakeMaker' => '6.30',
);
%module_prereq = (%module_prereq,%script_prereq);
my $EU_MM_V = $ExtUtils::MakeMaker::VERSION;
$EU_MM_V =~ s/_//g;
if ($EU_MM_V < 6.64) {
%config_prereq = (%config_prereq,%test_prereq);
}
WriteMakefile(
NAME => "App::CPANtoRPM",
VERSION => "1.16",
ABSTRACT => "An RPM packager for perl modules",
LICENSE => "perl",
($EU_MM_V >= 6.48
? (MIN_PERL_VERSION => "5.006")
: ()),
AUTHOR => "Sullivan Beck (sbeck\@cpan.org)",
"dist" => {COMPRESS=>"gzip",SUFFIX=>"gz"},
PL_FILES => {},
PREREQ_PM => \%module_prereq,
($EU_MM_V >= 6.52
? (CONFIGURE_REQUIRES => \%config_prereq)
: ()),
($EU_MM_V >= 6.64
? (TEST_REQUIRES => \%test_prereq)
: ()),
($EU_MM_V > 6.45
? (META_ADD => {
provides => {
'App::CPANtoRPM' => {
file => 'lib/App/CPANtoRPM.pm',
version => '1.16',
},
'cpantorpm' => {
file => 'cpantorpm',
version => '1.16',
},
},
}
)
: ()),
($EU_MM_V > 6.46
? (META_MERGE => {
'meta-spec' => {
version => 2,
},
resources => {
bugtracker => {
web => 'https://github.com/SBECK-github/App-CPANtoRPM/issues',
},
homepage => 'https://github.com/SBECK-github/App-CPANtoRPM',
repository => {
type => 'git',
web => 'https://github.com/SBECK-github/App-CPANtoRPM',
url => 'git://github.com/SBECK-github/App-CPANtoRPM.git',
},
},
}
)
: ()),
EXE_FILES => [
'bin/cpantorpm-depreq',
'bin/cpantorpm',
],
MAN1PODS => {
'bin/cpantorpm.pod' => 'blib/man1/cpantorpm.1',
},
);