More strict/warn fixes

This commit is contained in:
Joe cooper
2017-06-08 21:26:44 -05:00
parent 873519e64e
commit b67b98f6b5

View File

@ -233,7 +233,7 @@ system("/bin/rm -rf /tmp/makemodulerpm");
# Build list of dependencies on other RPMs, for inclusion as an RPM
# Requires: header
my $rdeps;
if ($rpmdepends) {
if ($rpmdepends && defined($minfo{'depends'})) {
my @rdeps;
foreach my $d (split(/\s+/, $minfo{'depends'})) {
my ($dwebmin, $dmod, $dver);
@ -271,6 +271,8 @@ my $urlheader = $url ? "URL: $url" : "";
my $epochheader = $epoch ? "Epoch: $epoch" : "";
$force_theme //= "";
$istheme //= "";
$rdeps //= "";
$depends //= "";
open(my $SPEC, ">", "$spec_dir/$prefix$mod.spec");
print $SPEC <<EOF;
%define __spec_install_post %{nil}