The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!perl

use 5.008;
use ModPerl::MM ();
use Apache::TestMM qw(test clean);

# accept the configs from command line
Apache::TestMM::filter_args();
Apache::TestMM::generate_script('t/TEST');

ModPerl::MM::WriteMakefile(
  NAME              => 'Apache2::SafePnotes',
  VERSION_FROM      => 'lib/Apache2/SafePnotes.pm',
  PREREQ_PM         => {
			mod_perl2=>0,
		       },
  ABSTRACT_FROM     => 'lib/Apache2/SafePnotes.pm',
  AUTHOR            => 'Torsten Foertsch <torsten.foertsch@gmx.net>',
  dist              => {
			PREOP => './mk_README.sh',
		       },
  clean             => {
			FILES=>"t/TEST",
		       },
);

sub MY::postamble {
  return <<'EOF';
README: lib/Apache2/SafePnotes.pm mk_README.sh
	./mk_README.sh

rpm: dist
	rpmbuild -ba perl-Apache2-SafePnotes.spec
EOF
}