[Tizen-submit] 19443: Changes to Tizen:IVI:Release/gcd

noreply at tizen.org noreply at tizen.org
Wed Jan 8 03:00:19 GMT 2014


Hi,
Graydon, Tracy have made the following changes to gcd in project Tizen:IVI:Release. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #19443

  submit:       Tizen:IVI:Release:build/gcd(cleanup) -> Tizen:IVI:Release


Message:
Submitter: Graydon, Tracy <tracy.graydon at intel.com>
Comments: submit/tizen_ivi_release/20140108.030041
Git project: platform/upstream/gcd
Tag: submit/tizen_ivi_release/20140108.030041
Commit: 5e688307f2fcff74d717b7e8a4fc4956f0c7017f Fix macro expansion in the spec file.

State:   new        2014-01-08T02:57:45 tizenrobot
Comment: <no comment>
spec files:
-----------
--- gcd.spec
+++ gcd.spec
@@ -1,12 +1,13 @@
+%define gcc_version %(LANG=C gcc --version | head -1 | sed 's/.* (.*) \\([0-9]\\.[0-9]\\).*$/\\1/')
+
 Name:       gcd
+VCS:        platform/upstream/gcd#5e688307f2fcff74d717b7e8a4fc4956f0c7017f
 Summary:    GCD(Grand Central Dispatch) library
 Version:    1.0
 Release:    1
-VCS:        platform/upstream/gcd#submit/tizen/20130916.002143-0-g0b3c262b0eee0ed7b813dfda9844dae6fdb350bc
 License:    Apache-2.0 and BSD-2-Clause
 Group:      System/Libraries
 Source0:    %{name}-%{version}.tar.gz
-#Provides:   libdispatch.so.0 libkqueue.so.0 libBlocksRuntime.so.0 libpthread_workqueue.so.0
 BuildRequires:  clang
 
 
@@ -15,19 +16,17 @@
 
 %package devel  
 Summary:    GCD(Grand Central Dispatch) library
-Group:      System/Libraries
 Requires:   %{name} = %{version}-%{release}  
   
 %description devel  
 GCD(Grand Central Dispatch) library. (DEV)  
 
+
 %prep
 %setup -q -n gcd-1.0
 
 %build
 
-export GCCVER=$(LANG=C gcc --version | head -1 | sed 's/\([a-z+]*\) \((.*)\) \([0-9\.]*\)\(.*\)/\3/')
-
 cd kqueue-1.0.4
 ./configure --prefix=/usr
 make
@@ -48,12 +47,12 @@
 
 %ifarch %{ix86}
 export CC="clang -target i586-tizen-linux"
-export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/i586-tizen-linux/4.8"
-export COMPILER_PATH=/usr/lib/gcc/i586-tizen-linux/4.8
+export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/i586-tizen-linux/%{gcc_version}"
+export COMPILER_PATH=/usr/lib/gcc/i586-tizen-linux/%{gcc_version}
 %else
 export CC="clang -target %{_target_cpu}-tizen-linux-gnueabi"
-export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/4.8"
-export COMPILER_PATH=/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/4.8
+export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/%{gcc_version}"
+export COMPILER_PATH=/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/%{gcc_version}
 %endif
 
 ./configure --with-blocks-runtime=/usr/lib --prefix=/usr
@@ -74,29 +73,23 @@
 cd ..
 cd dispatch-1.0
 %ifarch %{ix86}
-export COMPILER_PATH=/usr/lib/gcc/i586-tizen-linux/$GCCVER
+export COMPILER_PATH=/usr/lib/gcc/i586-tizen-linux/%{gcc_version}
 %else
-export COMPILER_PATH=/usr/lib/gcc/armv7l-tizen-linux-gnueabi/$GCCVER
+export COMPILER_PATH=/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/%{gcc_version}
 %endif
 make DESTDIR=$RPM_BUILD_ROOT install
 cd ..
-mkdir -p %{buildroot}/usr/share/license
-cp %{_builddir}/%{name}-%{version}/LICENSE  %{buildroot}/usr/share/license/%{name}
-
 
-%clean
-[ ${RPM_BUILD_ROOT} != "/" ] && rm -rf ${RPM_BUILD_ROOT}
+find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
 
-%post
-/sbin/ldconfig
+%post -p /sbin/ldconfig
 
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
 

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list