File: Makefile.PL

package info (click to toggle)
libb-perlreq-perl 0.82-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 700 kB
  • ctags: 909
  • sloc: perl: 1,090; sh: 69; makefile: 11
file content (25 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (4)
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
use 5.006;
use strict;
use ExtUtils::MakeMaker;

WriteMakefile(
	NAME => 'rpm-build-perl',
	VERSION_FROM => 'lib/B/PerlReq.pm',
	EXE_FILES => [ qw(perl.req perl.req.files perl.prov perl.prov.files perl.clean) ],
	PREREQ_PM => { B => 0, O => 0, Safe => 0, "Test::More" => 0, Encode => 0 },
	AUTHOR => 'Alexey Tourbin <at@altlinux.org>',
	ABSTRACT => 'Calculate dependencies for Perl sources',
	dist => { COMPRESS => 'gzip -9f' },
);

package MY;
sub install {
	my $self = shift;
	return $self->SUPER::install(@_) . <<'EOF';

Changes: rpm-build-perl.spec
	rpmquery --specfile $< --changelog | $(PERL) -ne \
	's/\@altlinux[^>]*>/\@altlinux>/g; last if /^\* .+ 0\.3/; next if /^\Z/; print "\n" if /^\* / && $$.>1; print' >$@
EOF

}