[meego-commits] 5007: Changes to Trunk:Testing/lzo

Austin Zhang austin.zhang at intel.com
Tue Jun 29 16:29:21 UTC 2010


Hi,
I have made the following changes to lzo in project Trunk:Testing. Please review and accept ASAP.

Thank You,
Austin Zhang

[This message was auto-generated]

---

Request #5007:

  submit:   home:austin:branches:Trunk:Testing/lzo(r3)(cleanup) -> Trunk:Testing/lzo


Message:
    Fixed building optimization issue derived from compiler update

State:   new          2010-06-29T04:25:56 austin
Comment: None



changes files:
--------------
--- lzo.changes
+++ lzo.changes
@@ -0,0 +1,3 @@
+* Wed Jun 30 2010 Austin Zhang <austin.zhang at intel.com> - 2.03
+- Fixed building optimization issue derived from compiler update
+

spec files:
-----------
--- lzo.spec
+++ lzo.spec
@@ -1,6 +1,6 @@
 # 
 # Do not Edit! Generated by:
-# spectacle version 0.13~pre
+# spectacle version 0.17
 # 
 # >> macros
 # << macros
@@ -8,18 +8,15 @@
 Name:       lzo
 Summary:    Data compression library with very fast (de)compression
 Version:    2.03
-Release:    1
+Release:    2
 Group:      System/Libraries
 License:    GPLv2+
 URL:        http://www.oberhumer.com/opensource/lzo/
 Source0:    http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz
 Source100:  lzo.yaml
 Patch0:     lzo-2.02-configure.patch
-Requires(post):  /sbin/ldconfig
-Requires(postun):  /sbin/ldconfig
 BuildRequires:  zlib-devel
 
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 LZO is a portable lossless data compression library written in ANSI C.
@@ -34,8 +31,6 @@
 Summary:    Mini version of lzo for apps which don't need the full version
 Group:      System/Libraries
 Requires:   %{name} = %{version}-%{release}
-Requires(post):  /sbin/ldconfig
-Requires(postun):  /sbin/ldconfig
 
 %description minilzo
 A small (mini) version of lzo for embedding into applications which don't need
@@ -57,6 +52,8 @@
 
 %prep
 %setup -q -n %{name}-%{version}
+
+# lzo-2.02-configure.patch
 %patch0 -p1
 # >> setup
 # << setup
@@ -67,14 +64,15 @@
 
 %configure --disable-static \
     --disable-dependency-tracking \
-    --enable-shared
+    --enable-shared \
+    CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`"
 
-# Call make instruction with smp support
 make %{?jobs:-j%jobs}
 
 # >> build post
 # build minilzo too (bz 439979)
-gcc %{optflags} -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
+#gcc %{optflags} -O2 -g -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
+gcc -O2 -g -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
 gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
 # << build post
 %install
@@ -89,14 +87,9 @@
 install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo
 # << install post
 %check
-# >> check_scriptlets
+# >> check
 make check test
-# << check_scriptlets
-
-%clean
-rm -rf %{buildroot}
-
-
+# << check
 
 %post -p /sbin/ldconfig
 
@@ -106,7 +99,6 @@
 
 %postun minilzo -p /sbin/ldconfig
 
-
 %files
 %defattr(-,root,root,-)
 # >> files

other changes:
--------------

++++++ lzo.yaml
--- lzo.yaml
+++ lzo.yaml
@@ -1,7 +1,7 @@
 Name: lzo
 Summary: Data compression library with very fast (de)compression
 Version: 2.03
-Release: 1
+Release: 2
 Group: System/Libraries
 License: GPLv2+
 URL: http://www.oberhumer.com/opensource/lzo/
@@ -22,6 +22,7 @@
 ConfigOptions:
     - --disable-dependency-tracking
     - --enable-shared
+    - CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`"
 Builder: make
 NeedCheckSection: True
 SubPackages:



More information about the MeeGo-commits mailing list