Last change
on this file since 517 was
436,
checked in by nanardon, 15 years ago
|
- set a real version into Makefile.PL
|
File size:
1.7 KB
|
Rev | Line | |
---|
[1] | 1 | use 5.010000; |
---|
| 2 | use ExtUtils::MakeMaker; |
---|
| 3 | # See lib/ExtUtils/MakeMaker.pm for details of how to influence |
---|
| 4 | # the contents of the Makefile that is written. |
---|
| 5 | WriteMakefile( |
---|
| 6 | NAME => 'LATMOS::Accounts', |
---|
[436] | 7 | VERSION => '0.0.1', # finds $VERSION |
---|
[258] | 8 | PREREQ_PM => { |
---|
| 9 | 'Net::LDAP' => undef, |
---|
| 10 | 'Unicode::Map8' => undef, |
---|
| 11 | 'DBD::Pg' => undef, |
---|
[413] | 12 | 'Crypt::RSA' => undef, |
---|
| 13 | 'MIME::Base64' => undef, |
---|
| 14 | 'Term::ReadKey' => undef, |
---|
[432] | 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, |
---|
[258] | 22 | }, # e.g., Module::Name => 1.1 |
---|
[1] | 23 | ($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
---|
| 24 | (ABSTRACT_FROM => 'lib/LATMOS/Accounts.pm', # retrieve abstract from module |
---|
[254] | 25 | AUTHOR => 'Thauvin Olivier <olivier.thauvin@latmos.ipsl.fr>') : ()), |
---|
[416] | 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 | ) ], |
---|
[1] | 39 | ); |
---|
[416] | 40 | |
---|
| 41 | package MY; |
---|
| 42 | |
---|
| 43 | sub postamble { |
---|
| 44 | <<EOF; |
---|
| 45 | .PHONY .= svnmanifest |
---|
| 46 | |
---|
| 47 | svnmanifest: |
---|
| 48 | \tsvn ls -R| grep -v "/\$\$" > MANIFEST |
---|
| 49 | |
---|
[432] | 50 | ChangeLog: |
---|
| 51 | \tsvn log > ChangeLog |
---|
| 52 | |
---|
| 53 | latmos-accounts.spec: latmos-accounts.spec.in Makefile |
---|
| 54 | \tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@ |
---|
| 55 | |
---|
| 56 | rpm: \$(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 | |
---|
[416] | 65 | EOF |
---|
| 66 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.