#!/usr/bin/env perl # IMPORTANT: if you delete this file your app will not work as # expected. You have been warned. use inc::Module::Install; 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'; all_from 'lib/MGA/Mirrors.pm'; requires 'Catalyst::Runtime' => '5.80000'; requires 'Catalyst::Plugin::ConfigLoader'; requires 'Catalyst::Plugin::Static::Simple'; requires 'Catalyst::Action::RenderView'; requires 'Catalyst::Plugin::Prototype'; requires 'Catalyst::Plugin::Session::State::Cookie'; requires 'Catalyst::Plugin::Session::Store::FastMmap'; requires 'Net::DNS'; requires 'Catalyst::View::GraphViz'; requires 'Moose'; requires 'namespace::autoclean'; requires 'Config::General'; # This should reflect the config file format you've chosen # See Catalyst::Plugin::ConfigLoader for supported formats test_requires 'Test::More' => '0.88'; catalyst; install_script glob('script/*.pl'); install_script qw(bin/check_mirror); auto_install; WriteAll; package MY; sub install { my ($self) = @_; my $install = $self->SUPER::install; $install =~ s/^(install ::.*)/$1 cron_install/m; $install .= < 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 " }