diff options
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL index 649120a..281736b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,7 +6,7 @@ use Module::Install::Catalyst; # Complain loudly if you don't have # Catalyst::Devel installed or haven't said # 'make dist' to create a standalone tarball. -name 'MGA-Mirrors'; +name 'mga-mirrors'; all_from 'lib/MGA/Mirrors.pm'; requires 'Catalyst::Runtime' => '5.80027'; @@ -26,3 +26,33 @@ catalyst; install_script glob('script/*.pl'); auto_install; WriteAll; + +package MY; + +sub postamble { + +" +ChangeLog: +\tsvn log > ChangeLog + +\$(DISTNAME).spec: \$(DISTNAME).spec.in Makefile +\tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@ + +srpm: \$(DISTVNAME).tar.gz \$(DISTNAME).spec +\trpmbuild -bs --clean\\ +\t --define \"_sourcedir `pwd`\" \\ +\t --define \"_specdir `pwd`\" \\ +\t --define \"_srcrpmdir `pwd`\" \\ +\t --define \"_rpmdir `pwd`\" \\ +\t \$(DISTNAME).spec + +rpm: \$(DISTVNAME).tar.gz \$(DISTNAME).spec +\tmkdir ./noarch || : +\trpmbuild -ba --clean\\ +\t --define \"_sourcedir `pwd`\" \\ +\t --define \"_specdir `pwd`\" \\ +\t --define \"_srcrpmdir `pwd`\" \\ +\t --define \"_rpmdir `pwd`\" \\ +\t \$(DISTNAME).spec +" +} |