Last change
on this file since 196 was
194,
checked in by nanardon, 15 years ago
|
- clearly separate Catalyst Model and Vote::DB module, making test faster
|
File size:
1.2 KB
|
Line | |
---|
1 | use inc::Module::Install; |
---|
2 | |
---|
3 | name 'Vote'; |
---|
4 | all_from 'lib/Vote/DB.pm'; |
---|
5 | |
---|
6 | requires 'Catalyst' => '5.7015'; |
---|
7 | requires 'Catalyst::Plugin::ConfigLoader'; |
---|
8 | requires 'Catalyst::Plugin::Static::Simple'; |
---|
9 | requires 'Catalyst::Action::RenderView'; |
---|
10 | requires 'YAML'; # This should reflect the config file format you've chosen |
---|
11 | # See Catalyst::Plugin::ConfigLoader for supported formats |
---|
12 | catalyst; |
---|
13 | |
---|
14 | install_script glob('script/*.pl'); |
---|
15 | auto_install; |
---|
16 | WriteAll; |
---|
17 | |
---|
18 | package MY; |
---|
19 | |
---|
20 | sub distdir { |
---|
21 | my $dist = shift->SUPER::distdir(@_); |
---|
22 | $dist =~ s/^(create_distdir :.*)/$1 md5sum/m; |
---|
23 | $dist |
---|
24 | } |
---|
25 | |
---|
26 | sub dist_core { |
---|
27 | my $dist = shift->SUPER::dist_core(@_); |
---|
28 | $dist =~ s/^(\S.* :.*)/$1 md5sum/mg; |
---|
29 | $dist |
---|
30 | } |
---|
31 | |
---|
32 | sub postamble { |
---|
33 | return " |
---|
34 | |
---|
35 | md5sum: |
---|
36 | \tcat MANIFEST | sed 's/\\t.*//' | grep -v control/md5sum | xargs md5sum > control/md5sum |
---|
37 | |
---|
38 | checkmd5: |
---|
39 | \tmd5sum -c control/md5sum |
---|
40 | |
---|
41 | .PHONY: md5sum checkmd5 |
---|
42 | |
---|
43 | ChangeLog: |
---|
44 | \tsvn log > ChangeLog |
---|
45 | |
---|
46 | epoll.spec: epoll.spec.in Makefile |
---|
47 | \tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@ |
---|
48 | |
---|
49 | rpm: \$(DISTVNAME).tar.gz epoll.spec |
---|
50 | \tmkdir ./noarch || : |
---|
51 | \trpmbuild -ba --clean\\ |
---|
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.