source: trunk/Makefile.PL @ 122

Last change on this file since 122 was 122, checked in by nanardon, 15 years ago
  • add control/md5sum containing md5sum of all files
  • rename configuration file to avoid later change in release
File size: 1.2 KB
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 distdir {
21    my $dist = shift->SUPER::distdir(@_);
22    $dist =~ s/^(create_distdir :.*)/$1 md5sum/m;
23    $dist
24}
25
26sub dist_core {
27    my $dist = shift->SUPER::dist_core(@_);
28    $dist =~ s/^(\S.* :.*)/$1 md5sum/mg;
29    $dist
30}
31
32sub postamble {
33    return "
34
35md5sum:
36\tcat MANIFEST | sed 's/\\t.*//' | grep -v control/md5sum | xargs md5sum > control/md5sum
37
38checkmd5:
39\tmd5sum -c control/md5sum
40
41.PHONY: md5sum checkmd5
42
43ChangeLog:
44\tsvn log > ChangeLog
45
46epoll.spec: epoll.spec.in
47\tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@
48
49rpm: \$(DISTVNAME).tar.gz epoll.spec
50\tmkdir ./noarch || :
51\trpmbuild -ba \\
52\t --define \"_sourcedir `pwd`\" \\
53\t --define \"_specdir `pwd`\" \\
54\t --define \"_srcrpmdir `pwd`\" \\
55\t --define \"_rpmdir `pwd`\" \\
56\t epoll.spec
57"
58}
Note: See TracBrowser for help on using the repository browser.