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
|
# $Id: Makefile.PL 251926 2009-01-20 15:24:15Z pixel $
use strict;
use ExtUtils::MakeMaker;
my $rpmtools_version = "7.12";
# where to find the rpm utility
sub MY::postamble {
<<MAKEMAKEFILE;
cleanc:
rm -rf *.cz test
MAKEMAKEFILE
}
WriteMakefile(
NAME => 'rpmtools',
ABSTRACT => 'Generates hdlist and synthesis files + compatibility wrapper around the new MDV::Packdrakeng',
VERSION => $rpmtools_version,
LICENSE => 'gpl_2',
macro => {
RPMTOOLSVERSION => $rpmtools_version,
},
depend => {
clean_subdirs => 'cleanc',
},
PM => {
'packdrake.pm' => '$(INST_LIBDIR)/packdrake.pm',
'rpmtools.pm' => '$(INST_LIBDIR)/rpmtools.pm',
},
EXE_FILES => [ qw(gendistrib genhdlist2 packdrake dumpdistribconf) ],
C => [],
OBJECT => '',
CCFLAGS => '-Wall',
INC => '',
LIBS => [ '' ],
PREREQ_PM => {
'Digest::MD5' => '0',
'ExtUtils::MakeMaker' => '0',
'Getopt::Long' => '0',
'List::Util' => '1.33',
'MDV::Distribconf' => '4.100',
'MDV::Packdrakeng' => '1.13',
'Pod::Usage' => '0',
'Term::ReadLine' => '0',
'Text::ParseWords' => '0',
'URPM' => '5.16',
},
'TEST_REQUIRES' => {
'Digest::MD5' => '0',
'Test::More' => '0',
},
MAN1PODS => {
dumpdistribconf => '$(INST_MAN1DIR)/dumpdistribconf.1',
gendistrib => '$(INST_MAN1DIR)/gendistrib.1',
genhdlist2 => '$(INST_MAN1DIR)/genhdlist2.1',
packdrake => '$(INST_MAN1DIR)/packdrake.1',
},
MAN3PODS => {},
dist => {
COMPRESS => 'xz -f --best --text',
SUFFIX => '.xz',
},
( $ExtUtils::MakeMaker::VERSION >= 6.46 ? (
'META_MERGE' => {
"meta-spec" => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'git://git.mageia.org/software/rpm/rpmtools/',
web => 'http://gitweb.mageia.org/software/rpm/rpmtools/',
},
},
release_status => 'stable',
# For proper CPAN indexation:
provides => {
'rpmtools' => {
file => 'packdrake.pm',
version => $rpmtools_version,
},
},
} ) : ()
),
);
|