File: Makefile.PL

package info (click to toggle)
libnet-whois-ripe-perl 1.22-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 300 kB
  • ctags: 65
  • sloc: perl: 690; makefile: 40
file content (24 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
	'NAME'            => 'Net::Whois::RIPE',
	'VERSION_FROM'    => 'RIPE.pm', # finds $VERSION
	'PREREQ_PM'       => {
		'IO'                   => 1.20,
	},
);


sub MY::postamble {
		return <<'MAKE_RPM';

# source for tarball for rpmbuild
SOURCEDIR = `pwd`

rpm:	dist
		sed -e 's/@VERSION@/$(VERSION)/' perl-$(DISTNAME).spec > perl-$(DISTNAME)-$(VERSION).spec
		rpmbuild --define "_sourcedir $(SOURCEDIR)" -ba perl-$(DISTNAME)-$(VERSION).spec
MAKE_RPM

}