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
|
# $Id: Makefile.PL 251926 2009-01-20 15:24:15Z pixel $
use strict;
use ExtUtils::MakeMaker;
my $rpmtools_version = "6.0";
# where to find the rpm utility
sub MY::postamble {
<<MAKEMAKEFILE;
.PHONY: ChangeLog
cleanc:
rm -rf *.cz test
ChangeLog:
LC_ALL=C svn2cl --accum --strip-prefix=soft/rpm/rpmtools/trunk
rm -f *.bak
MAKEMAKEFILE
}
WriteMakefile(
NAME => 'rpmtools',
VERSION => $rpmtools_version,
macro => {
RPMTOOLSVERSION => $rpmtools_version,
},
depend => {
clean_subdirs => 'cleanc',
},
PM => {
'packdrake.pm' => '$(INST_LIBDIR)/packdrake.pm',
},
EXE_FILES => [ qw(gendistrib genhdlist-old genhdlist2 packdrake dumpdistribconf) ],
C => [],
OBJECT => '',
CCFLAGS => '-Wall',
INC => '',
LIBS => [ '' ],
INSTALLDIRS => 'vendor',
MAN1PODS => {
dumpdistribconf => '$(INST_MAN1DIR)/dumpdistribconf.1',
gendistrib => '$(INST_MAN1DIR)/gendistrib.1',
'genhdlist-old' => '$(INST_MAN1DIR)/genhdlist-old.1',
genhdlist2 => '$(INST_MAN1DIR)/genhdlist2.1',
packdrake => '$(INST_MAN1DIR)/packdrake.1',
},
MAN3PODS => {},
dist => {
COMPRESS => 'xz -f --best --text',
SUFFIX => '.xz',
},
);
|