Ver código fonte

requires gmp, uses C++ linking, and fails to install libparrot.a (which I assume is important)

Michael Schloh von Bennewitz 21 anos atrás
pai
commit
fbf31278ce
1 arquivos alterados com 10 adições e 7 exclusões
  1. 10 7
      parrot/parrot.spec

+ 10 - 7
parrot/parrot.spec

@@ -33,8 +33,8 @@ Distribution: OpenPKG
 Class:        EVAL
 Group:        Language
 License:      Artistic/GPL
-Version:      0.1.0
-Release:      20040724
+Version:      0.1.1
+Release:      20041011
 
 #   list of sources
 Source0:      ftp://ftp.cpan.org/pub/CPAN/authors/id/L/LT/LTOETSCH/parrot-%{version}.tar.gz
@@ -42,8 +42,8 @@ Source0:      ftp://ftp.cpan.org/pub/CPAN/authors/id/L/LT/LTOETSCH/parrot-%{vers
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, gcc, flex, bison
-PreReq:       OpenPKG, openpkg >= 20040130
+BuildPreReq:  OpenPKG, openpkg >= 20040130, gmp, perl, gcc, flex, bison
+PreReq:       OpenPKG, openpkg >= 20040130, gmp
 AutoReq:      no
 AutoReqProv:  no
 
@@ -68,8 +68,9 @@ AutoReqProv:  no
         --debugging=0 \
         --optimize \
         --cc="%{l_cc}" \
+        --cxx="%{l_cxx}" \
         --ccflags="%{l_cflags -O} %{l_cppflags}" \
-        --link="%{l_cc}" \
+        --link="%{l_cxx}" \
         --linkflags="%{l_ldflags}" \
         --ld="%{l_cc}" \
         --ldflags="%{l_ldflags}" \
@@ -94,14 +95,16 @@ AutoReqProv:  no
 
     #   install headers (are not installed by default)
     %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/lib \
         $RPM_BUILD_ROOT%{l_prefix}/include/parrot
     cp -rp include/parrot/* $RPM_BUILD_ROOT%{l_prefix}/include/parrot/
 
     #   strip down and adjust installation
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin/languages
-    mv $RPM_BUILD_ROOT%{l_prefix}/lib/blib/lib/libparrot.a \
-       $RPM_BUILD_ROOT%{l_prefix}/lib/libparrot.a
+     %{l_shtool} install -c -m 644 \
+        blib/lib/libparrot.a \
+        $RPM_BUILD_ROOT%{l_prefix}/lib/
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/blib
 
     #   determine installation files