From e308f5ffd71423e377dba0161f113ad32978fb0d Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 14 Apr 2014 17:25:42 +0200 Subject: [PATCH] packaging: ship examples subpackage for sample qml demos Change-Id: I145de824e94d85c7cc22dee075cfc3138237af88 Signed-off-by: Philippe Coval --- packaging/qt5-qtdeclarative.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/packaging/qt5-qtdeclarative.spec b/packaging/qt5-qtdeclarative.spec index 233fbc915..fc1254121 100644 --- a/packaging/qt5-qtdeclarative.spec +++ b/packaging/qt5-qtdeclarative.spec @@ -268,8 +268,15 @@ Requires: %{name} = %{version}-%{release} This package contains QML debugging and development tools +%package examples +Summary: QML and Qt Quick Examples +Group: Base/Libraries +Requires: %{name} = %{version}-%{release} - +%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 #### Build section @@ -304,7 +311,9 @@ cp lib/libQt5QmlDevTools.a %{buildroot}%{_libdir} %fdupes %{buildroot}%{_libdir} %fdupes %{buildroot}%{_includedir} - +# Manually copy examples +install -d "%{buildroot}%{_datadir}/qt5/%{name}/" +cp -rf examples "%{buildroot}%{_datadir}/qt5/%{name}/" #### Pre/Post section @@ -477,7 +486,9 @@ cp lib/libQt5QmlDevTools.a %{buildroot}%{_libdir} %files import-settings %{_libdir}/qt5/qml/Qt/labs/settings - +%files examples +%defattr(-,root,root,-) +%{_datadir}/qt5/%{name}/examples/* -- 2.34.1