[Tizen-submit] 21216: Changes to Tizen:IVI/libdri2

noreply at tizen.org noreply at tizen.org
Thu Feb 13 07:36:54 GMT 2014


Hi,
Ronan Le Martret have made the following changes to libdri2 in project Tizen:IVI. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #21216

  submit:       Tizen:IVI:build/libdri2(cleanup) -> Tizen:IVI


Message:
Submitter: Ronan Le Martret <ronan at fridu.net>
Comments: packaging: exclude on non X11 configuration
Git project: platform/core/uifw/libdri2
Tag: submit/tizen/20140213.073616
Commit: 4040e19e0f6d91954c3f335e9fe7161beff1175c packaging: exclude on non X11 configuration

State:   new        2014-02-13T07:35:19 tizenrobot
Comment: <no comment>
spec files:
-----------
--- libdri2.spec
+++ libdri2.spec
@@ -1,8 +1,10 @@
+%bcond_with x
+
 Name:       libdri2
+VCS:        platform/core/uifw/libdri2#4040e19e0f6d91954c3f335e9fe7161beff1175c
 Summary:    X.Org DRI2 Extension client library
 Version:    0.1.0
 Release:    11
-VCS:        platform/core/uifw/libdri2#submit/tizen/20130910.024814-0-gb5ff8b14fed272c0934ea3d2550e47a26a2bdaad
 Group:      System/Libraries
 License:    MIT
 Source0:    %{name}-%{version}.tar.gz
@@ -11,6 +13,9 @@
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xext)
 BuildRequires:  pkgconfig(xfixes)
+%if ! %{with x}
+ExclusiveArch:
+%endif
 
 
 %description
@@ -35,7 +40,11 @@
 
 %build
 
+%ifarch %{ix86}
+CFLAGS="$CFLAGS -D_EMUL_" %reconfigure --disable-static
+%else
 %reconfigure --disable-static
+%endif
 make %{?jobs:-j%jobs}
 
 %install

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

++++++ libdri2-0.1.0.tar.gz
--- packaging/libdri2.spec
+++ packaging/libdri2.spec
@@ -1,3 +1,5 @@
+%bcond_with x
+
 Name:       libdri2
 Summary:    X.Org DRI2 Extension client library
 Version:    0.1.0
@@ -10,6 +12,9 @@
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xext)
 BuildRequires:  pkgconfig(xfixes)
+%if ! %{with x}
+ExclusiveArch:
+%endif
 
 
 %description
@@ -34,7 +39,11 @@
 
 %build
 
+%ifarch %{ix86}
+CFLAGS="$CFLAGS -D_EMUL_" %reconfigure --disable-static
+%else
 %reconfigure --disable-static
+%endif
 make %{?jobs:-j%jobs}
 
 %install
--- src/dri2.c
+++ src/dri2.c
@@ -265,10 +265,12 @@
 	   break;
    }
 
+#ifndef _EMUL_
    for (i = 0; i < nevents; i++) {
        XESetWireToEvent (dpy, info->codes->first_event + i, DRI2WireToEvent);
        XESetEventToWire (dpy, info->codes->first_event + i, DRI2EventToWire);
    }
+#endif
 

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


More information about the Tizen-submit mailing list