source: trunk/Makefile.PL @ 109

Last change on this file since 109 was 94, checked in by nanardon, 15 years ago
  • add rpm target
File size: 837 bytes
Line 
1use inc::Module::Install;
2
3name 'Vote';
4all_from 'lib/Vote.pm';
5
6requires 'Catalyst' => '5.7015';
7requires 'Catalyst::Plugin::ConfigLoader';
8requires 'Catalyst::Plugin::Static::Simple';
9requires 'Catalyst::Action::RenderView';
10requires 'YAML'; # This should reflect the config file format you've chosen
11                 # See Catalyst::Plugin::ConfigLoader for supported formats
12catalyst;
13
14install_script glob('script/*.pl');
15auto_install;
16WriteAll;
17
18package MY;
19
20sub postamble {
21    return "
22ChangeLog:
23\tsvn log > ChangeLog
24
25epoll.spec: epoll.spec.in
26\tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@
27
28rpm: \$(DISTVNAME).tar.gz epoll.spec
29\tmkdir ./noarch || :
30\trpmbuild -ba \\
31\t --define \"_sourcedir `pwd`\" \\
32\t --define \"_specdir `pwd`\" \\
33\t --define \"_srcrpmdir `pwd`\" \\
34\t --define \"_rpmdir `pwd`\" \\
35\t epoll.spec
36"
37}
Note: See TracBrowser for help on using the repository browser.