summaryrefslogtreecommitdiffabout
authorAndy Shevchenko <andy@smile.org.ua>2006-08-19 11:31:31 (GMT)
committer Andy Shevchenko <andy@smile.org.ua>2006-08-19 11:31:31 (GMT)
commitf494599aecd21266e9852085b3b73cea48e760bd (patch) (side-by-side diff)
treeedd6a73332237d37506b4e1838d14d849066aab2
parent1fef77d26e7077749e7e99ee9d9c6788adb754d8 (diff)
downloadrenrot-f494599aecd21266e9852085b3b73cea48e760bd.tar.gz
renrot-f494599aecd21266e9852085b3b73cea48e760bd.tar.bz2
Add rpm Makefile tag.
git-svn-id: file:///svnroot/renrot/branches/RENROT_STABLE@247 fe2816f4-e837-0410-b10a-f608c9d244a1
Diffstat (more/less context) (ignore whitespace changes)
-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.