-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
33 lines (28 loc) · 908 Bytes
/
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'renrot',
'AUTHOR' => 'Zeus Panchenko <zeus@dn.farlep.net>',
'VERSION_FROM' => 'renrot', # finds $VERSION
'PREREQ_PM' => { 'Image::ExifTool' => 5.72, 'Getopt::Long' => 2.34 },
'PREREQ_FATAL' => 'true',
'EXE_FILES' => [ 'renrot' ],
'dist' => { COMPRESS => 'gzip', SUFFIX => 'gz' }
);
package MY;
sub postamble {
my $postamble = << 'END';
# Build rpm
rpm : tardist
rpmbuild -ta $(DISTVNAME).tar.$(SUFFIX)
$(RM_F) $(DISTVNAME).tar.$(SUFFIX)
srpm : tardist
rpmbuild -ts $(DISTVNAME).tar.$(SUFFIX)
$(RM_F) $(DISTVNAME).tar.$(SUFFIX)
# CVS tagging
tag :
$(PERLRUN) -e 'use POSIX qw(strftime); $$date = strftime("%Y%m%d%H%M%S", localtime()); system("cvs tag $(NAME)_$$date");'
END
return $postamble;
}