aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.PL12
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;
+}

Return to:

Send suggestions and report system problems to the System administrator.