Forráskód Böngészése

adjust packaging to new Perl 5.8.7 Config.pm world order (without this cleanup the perl-xxx packages would build for the wrong directories and later Perl would not find the installed files under run-time)

Ralf S. Engelschall 20 éve
szülő
commit
2949e5620b
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      perl/perl.spec

+ 3 - 3
perl/perl.spec

@@ -82,7 +82,7 @@ AutoReqProv:  no
         -d -e -s \
         -Dprefix=%{l_prefix} \
         -Dvendorprefix=%{l_prefix} \
-        -Dinstallprefix=$RPM_BUILD_ROOT%{l_prefix} \
+        -Dinstallprefix=%{l_prefix} \
         -Dinstallstyle="lib/perl5" \
         -Dman1dir=%{l_prefix}/man/man1 \
         -Dman3dir=%{l_prefix}/man/man3 \
@@ -103,7 +103,7 @@ AutoReqProv:  no
     rm -rf $RPM_BUILD_ROOT
 
     #   install the Perl package via standard procedure
-    %{l_make} %{l_mflags} -f Makefile install
+    %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT
 
     #   install Perl versions of system header files
     ( case "%{l_platform -t}" in
@@ -115,7 +115,7 @@ AutoReqProv:  no
       eval `$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installarchlib`
       echo *.h sys/*.h |\
       xargs $RPM_BUILD_ROOT%{l_prefix}/bin/perl \
-          $RPM_BUILD_ROOT%{l_prefix}/bin/h2ph -h -d $installarchlib
+          $RPM_BUILD_ROOT%{l_prefix}/bin/h2ph -h -d $RPM_BUILD_ROOT$installarchlib
     ) || exit $?
 
     #   post-adjustments to installation tree