summaryrefslogtreecommitdiffstats
path: root/RPM4/Makefile.PL
diff options
context:
space:
mode:
authornanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2005-10-04 04:08:46 +0000
committernanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2005-10-04 04:08:46 +0000
commit9e2966a33f9148fdc8ef81783bab1fe18e87bd34 (patch)
tree7497629483bdfca79e64991306f251dfdc9bdafb /RPM4/Makefile.PL
parent588601a22c421404c9db24e0a47330d2186977f9 (diff)
downloadperl-RPM4-9e2966a33f9148fdc8ef81783bab1fe18e87bd34.tar
perl-RPM4-9e2966a33f9148fdc8ef81783bab1fe18e87bd34.tar.gz
perl-RPM4-9e2966a33f9148fdc8ef81783bab1fe18e87bd34.tar.bz2
perl-RPM4-9e2966a33f9148fdc8ef81783bab1fe18e87bd34.tar.xz
perl-RPM4-9e2966a33f9148fdc8ef81783bab1fe18e87bd34.zip
- move to trunk
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@36 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/Makefile.PL')
-rw-r--r--RPM4/Makefile.PL36
1 files changed, 36 insertions, 0 deletions
diff --git a/RPM4/Makefile.PL b/RPM4/Makefile.PL
new file mode 100644
index 0000000..95d5d33
--- /dev/null
+++ b/RPM4/Makefile.PL
@@ -0,0 +1,36 @@
+# $Id$
+
+# use 5.008;
+use ExtUtils::MakeMaker;
+use Getopt::Long;
+
+#- require at least rpm 4.2
+my $rpm_version = `rpm --version`;
+$rpm_version =~ s/RPM version //;
+$rpm_version =~ /^(?:[5-9]|\d{2}|4\.[2-9])/
+ or die <<BARF;
+Unable to build Hdlist with too old (or undetected) rpm version $rpm_version
+BARF
+
+sub MY::postamble {
+ <<MAKECHANGELOG;
+.PHONY: ChangeLog
+
+ChangeLog:
+ svn update && svn log --verbose > \$@
+
+rpm: dist
+ rpm --rmsource --define "_sourcedir `pwd`" -ba perl-Hdlist.spec
+MAKECHANGELOG
+}
+
+WriteMakefile(
+ NAME => 'RPM4',
+ VERSION_FROM => 'lib/RPM4.pm',
+ DIR => [ 'src' ],
+ 'EXE_FILES' => [ qw(bin/rpm_produced bin/rpmresign bin/hrpmreb) ],
+ dist => {
+ COMPRESS => 'bzip2 --best',
+ SUFFIX => '.bz2',
+ },
+);