source: LATMOS-Accounts/Makefile.PL @ 436

Last change on this file since 436 was 436, checked in by nanardon, 15 years ago
  • set a real version into Makefile.PL
File size: 1.7 KB
Line 
1use 5.010000;
2use ExtUtils::MakeMaker;
3# See lib/ExtUtils/MakeMaker.pm for details of how to influence
4# the contents of the Makefile that is written.
5WriteMakefile(
6    NAME              => 'LATMOS::Accounts',
7    VERSION           => '0.0.1', # finds $VERSION
8    PREREQ_PM         => {
9        'Net::LDAP' => undef,
10        'Unicode::Map8' => undef,
11        'DBD::Pg' => undef,
12        'Crypt::RSA' => undef,
13        'MIME::Base64' => undef,
14        'Term::ReadKey' => undef,
15        'Config::IniFiles' => undef,
16        'Mail::Sendmail' => undef,
17        'Net::DNS' => undef,
18        'Template' => undef,
19        'Sys::Syslog' => undef,
20        'POD::Usage' => undef,
21        'Unicode::String' => undef,
22    }, # e.g., Module::Name => 1.1
23    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
24      (ABSTRACT_FROM  => 'lib/LATMOS/Accounts.pm', # retrieve abstract from module
25       AUTHOR         => 'Thauvin Olivier <olivier.thauvin@latmos.ipsl.fr>') : ()),
26    EXE_FILES => [ qw(
27        bin/la-acls
28        bin/la-config
29        bin/la-create
30        bin/la-crypt-passwd
31        bin/la-edit
32        bin/la-group
33        bin/la-guser
34        bin/la-passwd
35        bin/la-query
36        bin/la-sync
37        bin/la-warn-expire
38        ) ],
39);
40
41package MY;
42
43sub postamble {
44    <<EOF;
45.PHONY .= svnmanifest
46
47svnmanifest:
48\tsvn ls -R| grep -v "/\$\$"  > MANIFEST
49
50ChangeLog:
51\tsvn log > ChangeLog
52
53latmos-accounts.spec: latmos-accounts.spec.in Makefile
54\tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@
55
56rpm: \$(DISTVNAME).tar.gz latmos-accounts.spec
57\tmkdir ./noarch || :
58\trpmbuild -ba --clean\\
59\t --define "_sourcedir `pwd`" \\
60\t --define "_specdir `pwd`" \\
61\t --define "_srcrpmdir `pwd`" \\
62\t --define "_rpmdir `pwd`" \\
63\t latmos-accounts.spec
64
65EOF
66}
Note: See TracBrowser for help on using the repository browser.