aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-demo/recipes-qt/qt5/qtwayland/0002-Added-Tizen-spec-files.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ivi-demo/recipes-qt/qt5/qtwayland/0002-Added-Tizen-spec-files.patch')
-rw-r--r--meta-ivi-demo/recipes-qt/qt5/qtwayland/0002-Added-Tizen-spec-files.patch282
1 files changed, 282 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-qt/qt5/qtwayland/0002-Added-Tizen-spec-files.patch b/meta-ivi-demo/recipes-qt/qt5/qtwayland/0002-Added-Tizen-spec-files.patch
new file mode 100644
index 0000000..ca5ee63
--- /dev/null
+++ b/meta-ivi-demo/recipes-qt/qt5/qtwayland/0002-Added-Tizen-spec-files.patch
@@ -0,0 +1,282 @@
+From 3a8d4d65d92dc3c2195ff09838600b8d5ccc8a41 Mon Sep 17 00:00:00 2001
+From: Tomasz Olszak <olszak.tomasz@gmail.com>
+Date: Sun, 8 Sep 2013 16:07:29 +0200
+Subject: [PATCH 02/21] Added Tizen spec files
+
+---
+ packaging/qt5-qtwayland.spec | 118 +++++++++++++++++++++++++++++++++++++
+ packaging/qtwayland.spec | 137 -------------------------------------------
+ 2 files changed, 118 insertions(+), 137 deletions(-)
+ create mode 100644 packaging/qt5-qtwayland.spec
+ delete mode 100644 packaging/qtwayland.spec
+
+diff --git a/packaging/qt5-qtwayland.spec b/packaging/qt5-qtwayland.spec
+new file mode 100644
+index 0000000..4f68dd4
+--- /dev/null
++++ b/packaging/qt5-qtwayland.spec
+@@ -0,0 +1,118 @@
++# The MIT License (MIT)
++#
++# Copyright (c) 2013 Tomasz Olszak <olszak.tomasz@gmail.com>
++#
++# Permission is hereby granted, free of charge, to any person obtaining a copy
++# of this software and associated documentation files (the "Software"), to deal
++# in the Software without restriction, including without limitation the rights
++# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++# copies of the Software, and to permit persons to whom the Software is
++# furnished to do so, subject to the following conditions:
++#
++# The above copyright notice and this permission notice shall be included in
++# all copies or substantial portions of the Software.
++#
++# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
++# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++# THE SOFTWARE.
++
++# This file is based on qtwayland.spec from Mer project
++# http://merproject.org
++
++Name: qt5-qtwayland
++Summary: Qt Wayland compositor
++Version: 5.2.0
++Release: 0
++Group: Base/Libraries
++License: LGPL-2.1+ or GPL-3.0
++URL: http://qt.digia.com
++Source0: %{name}-%{version}.tar.bz2
++BuildRequires: pkgconfig(Qt5Core)
++BuildRequires: pkgconfig(Qt5Gui)
++BuildRequires: pkgconfig(Qt5Widgets)
++BuildRequires: pkgconfig(Qt5OpenGL)
++BuildRequires: pkgconfig(Qt5PlatformSupport)
++BuildRequires: pkgconfig(Qt5Qml)
++BuildRequires: pkgconfig(Qt5Quick)
++BuildRequires: pkgconfig(Qt5DBus)
++BuildRequires: pkgconfig(wayland-client)
++BuildRequires: pkgconfig(wayland-egl)
++BuildRequires: pkgconfig(glib-2.0)
++BuildRequires: libffi-devel
++BuildRequires: fdupes
++BuildRequires: pkgconfig(xkbcommon)
++
++%description
++Qt is a cross-platform application and UI framework. Using Qt, you can
++write web-enabled applications once and deploy them across desktop,
++mobile and embedded systems without rewriting the source code.
++.
++This package contains the Qt wayland compositor for wayland_egl
++
++%package devel
++Summary: Qt Wayland compositor - development files
++Group: Base/Libraries
++Requires: %{name} = %{version}-%{release}
++
++%description devel
++Qt is a cross-platform application and UI framework. Using Qt, you can
++write web-enabled applications once and deploy them across desktop,
++mobile and embedded systems without rewriting the source code.
++.
++This package contains the Qt wayland compositor development files for wayland_egl
++
++
++#### Build section
++
++%prep
++%setup -q -n %{name}-%{version}/qtwayland
++
++%build
++export QTDIR=/usr/share/qt5
++export QT_WAYLAND_GL_CONFIG=wayland_egl
++touch .git
++qmake -qt=5
++
++make %{?_smp_mflags}
++
++%install
++rm -rf %{buildroot}
++%qmake_install
++
++%fdupes %{buildroot}%{_includedir}
++
++
++#### Pre/Post section
++
++%post
++/sbin/ldconfig
++%postun
++/sbin/ldconfig
++
++
++#### File section
++
++%files
++%defattr(-,root,root,-)
++#%{_libdir}/libQt5Compositor.so.5*
++%{_libdir}/qt5/plugins/platforms/libqwayland-egl.so
++#%{_libdir}/qt5/plugins/waylandcompositors/libwayland-egl.so
++
++%files devel
++%defattr(-,root,root,-)
++#%{_libdir}/libQt5Compositor.so
++#%{_includedir}/qt5/*
++#%{_libdir}/libQt5Compositor.la
++#%{_libdir}/libQt5Compositor.prl
++#%{_libdir}/pkgconfig/Qt5Compositor.pc
++#%{_libdir}/cmake/Qt5Compositor/*
++#%{_datadir}/qt5/mkspecs/modules/qt_lib_compositor.pri
++#%{_datadir}/qt5/mkspecs/modules/qt_lib_compositor_private.pri
++%{_libdir}/qt5/bin/qtwaylandscanner
++%{_libdir}/cmake
++
++#### No changelog section, separate $pkg.changes contains the history
+diff --git a/packaging/qtwayland.spec b/packaging/qtwayland.spec
+deleted file mode 100644
+index 1aa690f..0000000
+--- a/packaging/qtwayland.spec
++++ /dev/null
+@@ -1,137 +0,0 @@
+-%define _qtmodule_snapshot_version 0.0-git855.e5601d283c
+-Name: qt5-qtwayland-wayland_egl
+-Summary: Qt Wayland compositor, wayland_egl variant
+-Version: 0.0git855.e5601d283c
+-Release: 1%{?dist}
+-Group: Qt/Qt
+-License: LGPLv2.1 with exception or GPLv3
+-URL: http://qt.nokia.com
+-Source0: %{name}-%{version}.tar.bz2
+-Source100: precheckin.sh
+-BuildRequires: pkgconfig(Qt5Core)
+-BuildRequires: pkgconfig(Qt5Gui)
+-BuildRequires: pkgconfig(Qt5Widgets)
+-BuildRequires: pkgconfig(Qt5OpenGL)
+-BuildRequires: pkgconfig(Qt5PlatformSupport)
+-BuildRequires: pkgconfig(Qt5Qml)
+-BuildRequires: pkgconfig(Qt5Declarative)
+-BuildRequires: pkgconfig(Qt5Quick)
+-BuildRequires: pkgconfig(Qt5V8)
+-BuildRequires: pkgconfig(Qt5DBus)
+-
+-BuildRequires: pkgconfig(wayland-client)
+-%if "%{name}" == "qt5-qtwayland-wayland_egl"
+-BuildRequires: pkgconfig(wayland-egl)
+-%endif
+-
+-BuildRequires: libxkbcommon-devel
+-BuildRequires: pkgconfig(glib-2.0)
+-BuildRequires: libffi-devel
+-BuildRequires: fdupes
+-
+-Requires: xkeyboard-config
+-
+-%description
+-Qt is a cross-platform application and UI framework. Using Qt, you can
+-write web-enabled applications once and deploy them across desktop,
+-mobile and embedded systems without rewriting the source code.
+-.
+-This package contains the Qt wayland compositor for wayland_egl
+-
+-%package devel
+-Summary: Qt Wayland compositor - development files
+-Group: Qt/Qt
+-Requires: %{name} = %{version}-%{release}
+-
+-%description devel
+-Qt is a cross-platform application and UI framework. Using Qt, you can
+-write web-enabled applications once and deploy them across desktop,
+-mobile and embedded systems without rewriting the source code.
+-.
+-This package contains the Qt wayland compositor development files for wayland_egl
+-
+-%package examples
+-Summary: Qt Wayland compositor - examples
+-Group: Qt/Qt
+-Requires: %{name} = %{version}-%{release}
+-
+-%description examples
+-Qt is a cross-platform application and UI framework. Using Qt, you can
+-write web-enabled applications once and deploy them across desktop,
+-mobile and embedded systems without rewriting the source code.
+-.
+-This package contains the Qt wayland compositor examples for wayland_egl
+-
+-#### Build section
+-
+-%prep
+-%setup -q -n %{name}-%{version}/qtwayland
+-
+-%build
+-export QTDIR=/usr/share/qt5
+-export QT_WAYLAND_GL_CONFIG=wayland_egl
+-touch .git
+-qmake -qt=5 "QT_BUILD_PARTS += examples" "CONFIG += wayland-compositor"
+-
+-make %{?_smp_mflags}
+-
+-%install
+-rm -rf %{buildroot}
+-%qmake_install
+-# Fix wrong path in pkgconfig files
+-find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \
+--exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;
+-# Fix wrong path in prl files
+-find %{buildroot}%{_libdir} -type f -name '*.prl' \
+--exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \;
+-
+-# We don't need qt5/Qt/
+-rm -rf %{buildroot}/%{_includedir}/qt5/Qt
+-
+-
+-%fdupes %{buildroot}/%{_includedir}
+-
+-
+-#### Pre/Post section
+-
+-%post -p /sbin/ldconfig
+-%postun -p /sbin/ldconfig
+-
+-
+-#### File section
+-
+-%files
+-%defattr(-,root,root,-)
+-%{_libdir}/libQt5Compositor.so.5
+-%{_libdir}/libQt5Compositor.so.5.*
+-
+-%if "%{name}" == "qt5-qtwayland-wayland_egl"
+-%{_libdir}/qt5/plugins/platforms/libqwayland-egl.so
+-%{_libdir}/qt5/plugins/waylandcompositors/libwayland-egl.so
+-%endif
+-
+-%if "%{name}" == "qt5-qtwayland-xcomposite_egl"
+-%{_libdir}/qt5/plugins/platforms/libqwayland-xcomposite-egl.so
+-%{_libdir}/qt5/plugins/waylandcompositors/libxcomposite-egl.so
+-%endif
+-
+-%if "%{name}" == "qt5-qtwayland-nogl"
+-%{_libdir}/qt5/plugins/platforms/libqwayland-nogl.so
+-%endif
+-
+-%files devel
+-%defattr(-,root,root,-)
+-%{_libdir}/libQt5Compositor.so
+-%{_includedir}/qt5/*
+-%{_libdir}/libQt5Compositor.la
+-%{_libdir}/libQt5Compositor.prl
+-%{_libdir}/pkgconfig/Qt5Compositor.pc
+-%{_libdir}/cmake/Qt5Compositor/*
+-%{_datadir}/qt5/mkspecs/modules/qt_lib_compositor.pri
+-%{_libdir}/qt5/bin/qtwaylandscanner
+-
+-%files examples
+-%defattr(-,root,root,-)
+-%{_libdir}/qt5/examples/qtwayland/
+-
+-#### No changelog section, separate $pkg.changes contains the history
+--
+1.9.1
+