Kaynağa Gözat

adapted Makefile.pl with correct libpath for bzip

Herbert Schmid 21 yıl önce
ebeveyn
işleme
77d13f4439
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6 1
      perl-comp/perl-comp.spec

+ 6 - 1
perl-comp/perl-comp.spec

@@ -41,7 +41,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20040906
+Release:      20041109
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/Compress/Compress-Zlib-%{V_compress_zlib}.tar.gz
@@ -108,6 +108,11 @@ AutoReqProv:  no
           -e 's:^#\($LZO_INCLUDE[^=]*\)=.*:\1= "%{l_cppflags lzo}";:' \
           -e 's:^#\($LZO_LIB[^=]*\)=.*:\1= "%{l_ldflags}";:' \
           Makefile.PL
+      cd Compress-Bzip2-%{V_compress_bzip2}
+      %{l_shtool} subst \
+          -e 's:^#\($Bzip2_LIB[^=]*\)=.*:\1= "%{l_ldflags}";:' \
+          -e 's:^#\($Bzip2_INCLUDE[^=]*\)=.*:\1= "%{l_cppflags bzip2}";:' \
+          Makefile.PL
     ) || exit $?
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install