Author: glen                         Date: Sun Sep 20 10:01:44 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build with our cflags, builds now in carme-i686

---- Files affected:
packages/v8:
   v8.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/v8/v8.spec
diff -u packages/v8/v8.spec:1.3 packages/v8/v8.spec:1.4
--- packages/v8/v8.spec:1.3     Sat Sep 19 12:48:19 2009
+++ packages/v8/v8.spec Sun Sep 20 12:01:38 2009
@@ -1,6 +1,7 @@
 # $Revision$, $Date$
 # TODO
-# - cc,cxx,rpmcflags,rpmcppflags are not passed to build
+# - cxx is not passed to build
+# - cleaner way for cxxflags
 %define                snap    20090918
 %define                rel             1
 Summary:       JavaScript Engine
@@ -16,6 +17,7 @@
 # Source0-md5: 736a6a7a21aa8a2834a583763d37a7af
 #Patch0:       %{name}-svn2430-unused-parameter.patch
 #Patch1:       http://codereview.chromium.org/download/issue115176_4_1002.diff
+BuildRequires: readline-devel
 BuildRequires: scons
 ExclusiveArch: %{ix86} %{x8664} arm
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,19 +39,21 @@
 %setup -q -n %{name}
 #%patch0 -p1
 #%patch1 -p0
+%{__sed} -i -e "s,'-O3','%{rpmcxxflags}'.split(' ')," SConstruct
 
 %build
 %scons \
        library=shared \
        snapshots=on \
+       soname=off \
+       console=readline \
 %ifarch x86_64
        arch=x64 \
 %endif
        env=CCFLAGS:"-fPIC"
 
-# When will people learn to create versioned shared libraries by default?
-# first, lets get rid of the old .so
-rm -rf libv8.so
+# the soname=on creates soname as libv8-1.3.11.1.so, that's wrong
+rm libv8.so
 # Now, lets make it right.
 %ifarch arm
 %{__cxx} %{rpmcflags} %{rpmldflags} -fPIC -o libv8.so.0.0.0 -shared 
-Wl,-soname,libv8.so.0 obj/release/*.os obj/release/arm/*.os
@@ -57,7 +61,7 @@
 %ifarch %{ix86}
 %{__cxx} %{rpmcflags} %{rpmldflags} -fPIC -o libv8.so.0.0.0 -shared 
-Wl,-soname,libv8.so.0 obj/release/*.os obj/release/ia32/*.os
 %endif
-%ifarch x86_64
+%ifarch %{x8664}
 %{__cxx} %{rpmcflags} %{rpmldflags} -fPIC -o libv8.so.0.0.0 -shared 
-Wl,-soname,libv8.so.0 obj/release/*.os obj/release/x64/*.os
 %endif
 
@@ -70,7 +74,6 @@
 lib=$(basename $RPM_BUILD_ROOT%{_libdir}/libv8.so.*.*.*)
 ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libv8.so
 ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libv8.so.0
-ln -s $lib $RPM_BUILD_ROOT%{_libdir}/libv8.so.0.0
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -95,8 +98,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/09/20 10:01:38  glen
+- build with our cflags, builds now in carme-i686
+
 Revision 1.3  2009/09/19 10:48:19  glen
-- optlfags todo
+- optflags todo
 
 Revision 1.2  2009/09/19 10:35:01  glen
 - unify
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/v8/v8.spec?r1=1.3&r2=1.4&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to