From: Philippe Coval Date: Wed, 14 May 2014 10:33:51 +0000 (+0200) Subject: packaging: add launcher X-Git-Tag: submit/tizen/20160303.070536~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ecd5e1e2323557b040843019cde37c1c5270fb8;p=platform%2Fupstream%2Fqtdeclarative.git packaging: add launcher Change-Id: I65551527e8b0b82ee9353167d09c2edd568a2eef Signed-off-by: Philippe Coval --- diff --git a/packaging/qt5-qtdeclarative-examples.desktop b/packaging/qt5-qtdeclarative-examples.desktop new file mode 100644 index 000000000..111872ea7 --- /dev/null +++ b/packaging/qt5-qtdeclarative-examples.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=Qt Declarative examples +Type=Application +Exec=/usr/bin/qt5-qtdeclarative-examples.sh diff --git a/packaging/qt5-qtdeclarative-examples.sh b/packaging/qt5-qtdeclarative-examples.sh new file mode 100644 index 000000000..647568bb1 --- /dev/null +++ b/packaging/qt5-qtdeclarative-examples.sh @@ -0,0 +1,2 @@ +#!/bin/sh +qml /usr/share/qt5/qt5-qtdeclarative/examples/quick/demos/samegame/samegame.qml diff --git a/packaging/qt5-qtdeclarative.spec b/packaging/qt5-qtdeclarative.spec index 27543e650..e958ff879 100644 --- a/packaging/qt5-qtdeclarative.spec +++ b/packaging/qt5-qtdeclarative.spec @@ -32,6 +32,8 @@ License: LGPL-2.1+ or GPL-3.0 URL: http://qt.digia.com Source0: %{name}-%{version}.tar.bz2 Source1001: %{name}.manifest +Source1010: %{name}-examples.sh +Source1011: %{name}-examples.desktop BuildRequires: qt5-qtcore-devel BuildRequires: qt5-qtgui-devel BuildRequires: qt5-qtnetwork-devel @@ -273,11 +275,17 @@ This package contains QML debugging and development tools Summary: QML and Qt Quick Examples Group: Base/Libraries Requires: %{name} = %{version}-%{release} +Requires: qt5-plugin-imageformat-jpeg +Requires: qt5-qtdeclarative-import-multimedia +Requires: qt5-qtdeclarative-import-particles2 +Requires: qt5-qtdeclarative-import-qtquick2plugin +Requires: qt5-qtdeclarative-qmlscene %description examples This package contains QML and Qt Quick Examples for developers. -Those can run using qmlscene interperter : -ie: qmlscene ./examples/quick/tutorials/samegame/samegame4/samegame.qml +Those can run used with luncher script or using interperter : +ie: qml ./examples/quick/demos/*/*.qml + #### Build section @@ -316,7 +324,10 @@ cp lib/libQt5QmlDevTools.a %{buildroot}%{_libdir} # Manually copy examples install -d "%{buildroot}%{_datadir}/qt5/%{name}/" cp -rf examples "%{buildroot}%{_datadir}/qt5/%{name}/" - +install -d "%{buildroot}%{_bindir}/" +install %{SOURCE1010} "%{buildroot}%{_bindir}/" +install -d "%{buildroot}%{_datadir}/applications/" +install %{SOURCE1011} "%{buildroot}%{_datadir}/applications/" #### Pre/Post section @@ -514,6 +525,8 @@ cp -rf examples "%{buildroot}%{_datadir}/qt5/%{name}/" %files examples %defattr(-,root,root,-) %manifest %{name}.manifest +%{_bindir}/%{name}-examples.sh +%{_datadir}/applications/%{name}-examples.desktop %{_datadir}/qt5/%{name}/examples/*