diff options
-rw-r--r-- | Makefile.PL | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.PL b/Makefile.PL index 97cbd66..9b83ebe 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,3 +10,15 @@ WriteMakefile( 'EXE_FILES' => [ 'renrot' ], 'dist' => { COMPRESS => 'gzip', SUFFIX => 'gz' }, ); + +package MY; + +sub postamble { + my $postamble = << 'END'; +# Build rpm +rpm : tardist + rpmbuild -ta $(DISTVNAME).tar.$(SUFFIX) + $(RM_F) $(DISTVNAME).tar.$(SUFFIX) +END + return $postamble; +} |