aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
blob: 9da77d3b8fa7bb5a42a3de30527df9485284f95a (plain)
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
# $Id: Makefile.PL 251926 2009-01-20 15:24:15Z pixel $

use strict;
use ExtUtils::MakeMaker;

my $rpmtools_version = "7.02";

# 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,
    LICENSE		=> 'gpl_2',
    macro => {
        RPMTOOLSVERSION => $rpmtools_version,
    },
    depend => {
        clean_subdirs => 'cleanc',
    },
    PM => {
        'packdrake.pm' => '$(INST_LIBDIR)/packdrake.pm',
    },
    EXE_FILES	    => [ qw(gendistrib genhdlist2 packdrake dumpdistribconf) ],
    C		    => [],
    OBJECT	    => '',
    CCFLAGS	    => '-Wall',
    INC		    => '',
    LIBS	    => [ '' ],
    INSTALLDIRS	    => 'vendor',
    PREREQ_PM		=> {
	'ExtUtils::MakeMaker'	=> '0',
	'Getopt::Long'		=> '0',
	'List::Util'		=> '0',
	'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',
    },
);