summaryrefslogtreecommitdiff
path: root/Perl-RPM
diff options
context:
space:
mode:
authorrjray <devnull@localhost>2002-05-10 08:04:55 +0000
committerrjray <devnull@localhost>2002-05-10 08:04:55 +0000
commit9d37ae1efe6157bb49c4872eadce5b30db67952d (patch)
tree3b7c4b9eb2e7267c87012fb630a4fc6587b20437 /Perl-RPM
parentf76caca7d74805d2514af20c0b1a6313f3d5251b (diff)
downloadlibrpm-tizen-9d37ae1efe6157bb49c4872eadce5b30db67952d.tar.gz
librpm-tizen-9d37ae1efe6157bb49c4872eadce5b30db67952d.tar.bz2
librpm-tizen-9d37ae1efe6157bb49c4872eadce5b30db67952d.zip
RPM generation now works, mostly due to backing out the changes after
discussing release and distribution plans with the rpm maintainer. CVS patchset: 5431 CVS date: 2002/05/10 08:04:55
Diffstat (limited to 'Perl-RPM')
-rw-r--r--Perl-RPM/Makefile.PL15
1 files changed, 8 insertions, 7 deletions
diff --git a/Perl-RPM/Makefile.PL b/Perl-RPM/Makefile.PL
index 7c7b56c21..bb612d117 100644
--- a/Perl-RPM/Makefile.PL
+++ b/Perl-RPM/Makefile.PL
@@ -1,6 +1,6 @@
#!/bin/perl
-# $Id: Makefile.PL,v 1.28 2002/04/12 22:37:34 rjray Exp $
+# $Id: Makefile.PL,v 1.29 2002/05/10 08:04:55 rjray Exp $
use Config;
use ExtUtils::MakeMaker;
@@ -64,7 +64,7 @@ list near this line. Stopped"
WriteMakefile(
NAME => 'RPM',
DISTNAME => 'Perl-RPM',
- VERSION => '0.33',
+ VERSION => '0.40',
LIBS => $rpm_libs,
DEFINE => $rpm_defines,
PM => \%PM,
@@ -126,6 +126,7 @@ sub MY::postamble
print "Local build detected. Generating $self->{DISTNAME}.spec...\n";
$self->{INSTALLDIR} = $Config{installsitearch}
unless $self->{INSTALLDIR};
+ $self->{RELEASE} = $opts{release} || 1 unless $self->{RELEASE};
# Copy all the RPM_* args from the command-line (parsed earlier), but
# don't overwrite any of MM's internal values
$self->{uc $_} ||= $opts{$_} for (keys %opts);
@@ -199,9 +200,9 @@ srpm: \$(SPECFILE) \$(DISTVNAME).tar\$(SUFFIX)
__DATA__
Summary: Perl bindings to the rpmlib API
-Name: rpm-perl
-Version: %{rpm_version}
-Release: SPEC_VERSION.SPEC_EXTRA
+Name: SPEC_DISTNAME
+Version: SPEC_VERSION
+Release: SPEC_RELEASE
Epoch: 1
Vendor: Randy J. Ray
Copyright: Artistic
@@ -214,7 +215,7 @@ Requires: rpm = %{rpm_version}
Provides: SPEC_DISTNAME = SPEC_VERSION
Provides: perl(RPM::Database) = %{rpm_version}
Provides: perl(RPM::Header) = %{rpm_version}
-Obsoletes: perl-Perl-RPM
+Obsoletes: rpm-perl
BuildRoot: %{_tmppath}/%{name}-root
%description
@@ -223,7 +224,7 @@ of Perl and C/XS (compiled) code to provide access to the RPM database,
headers of installed packages, and more.
%prep
-%setup -q -n rpm-perl-%{version}
+%setup -q -n SPEC_DISTNAME-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL