From 7938f7cada8a51d6ddb04cef7c7e701c6df561db Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Tue, 9 Apr 2013 18:57:26 +0000 Subject: [PATCH] [mapplauncherd] Convert to git packaging. --- rpm/mapplauncherd.changes | 101 +++++++++++++++++ rpm/mapplauncherd.service | 12 ++ rpm/mapplauncherd.spec | 229 ++++++++++++++++++++++++++++++++++++++ rpm/mapplauncherd.yaml | 153 +++++++++++++++++++++++++ 4 files changed, 495 insertions(+) create mode 100644 rpm/mapplauncherd.changes create mode 100644 rpm/mapplauncherd.service create mode 100644 rpm/mapplauncherd.spec create mode 100644 rpm/mapplauncherd.yaml diff --git a/rpm/mapplauncherd.changes b/rpm/mapplauncherd.changes new file mode 100644 index 0000000..b84bf57 --- /dev/null +++ b/rpm/mapplauncherd.changes @@ -0,0 +1,101 @@ +* Sun Mar 10 2013 Carsten Munk - 4.0.1 +- Using %exclude to remove files is not cool. Fixes build error with seperate + debuginfo + +* Wed Feb 27 2013 Pekka Lundstrom - 4.0.1 +- Added notification to systemd when initialization is done. + Uses new command line parameter --systemd Fixes NEMO#637 + [Robin Burchell] +- Fix NEMO#598: invoker segfaults when run without --type + +* Thu Nov 15 2012 John Brooks - 4.0.0 +- Rename package to mapplauncherd +- Remove mbooster +- Remove all meegotouch dependencies and tests +- Build libapplauncherd as a real library with exported symbols for boosters +- Remove hardcoded booster types from invoker to allow external booster plugins +- Remove libmeegotouch from event handling (from Robin) +- remove aegis/creds code (from Robin) + +* Thu Nov 1 2012 Robin Burchell - 3.0.3 +- Pull lmt in to meegotouch-boostable.prf, required now we're the sole provider. + Fixes control panel build. + +* Sat Sep 22 2012 Carsten Munk - 3.0.3 +- Add systemd user session service file + +* Wed Sep 19 2012 John Brooks - 3.0.3 +- Added 0001-Fix-invoker-infinite-loop-after-receiving-signals.patch + +* Mon May 14 2012 Marko Saukko - 3.0.3 +- Update to version 3.0.3 +- Fixed compile with newer python with patch: + 0001-Do-not-hardcode-python-version-to-cmd-s.patch + +* Thu Jan 26 2012 Marko Saukko - 2.0.16 +- Updated 0001-BMC22845-Move-var-run-to-home.patch to use env instead of hardcoded values. + +* Fri Jan 20 2012 Marko Saukko - 2.0.16 +- Added 0001-Use-MeeGo-stuff-even-with-Mer.patch to fix build with /etc/mer-release. + +* Mon Jan 16 2012 Marko Saukko - 2.0.16 +- Updated to version 2.0.16 + +* Wed Dec 21 2011 Marko Saukko - 2.0.14 +- Added meegotouch-applauncherd-2.0.14-add-missing-libs-for-linking.patch + to fix linking with newer toolchain. + +* Thu Dec 15 2011 Marko Saukko - 2.0.14 +- Updated to version 2.0.14. + +* Tue Nov 22 2011 Robin Burchell - 2.0.13 +- Updated to the latest upstream version. +- Remove unwanted patches, from MeeGo/Intel: + - 0001-New-Type-l-booster-for-meego-qml-launcher-QML-applic.patch + - 0001-Changes-separate-link-dlopen-library-configuration-f.patch + - 0002-Changes-lbooster-plugin-included-in-build.patch + - 0003-Changes-improved-booster-plugin-support-in-invoker.patch + - 0006-Cgroups-support-using-libcgroup.patch +- Remove unused/unwanted patches: + - fix_build.patch (unused) + - BMC14389_add_X-MEEGO-IVI.patch (we no longer have IVI) + +* Wed Oct 05 2011 Marko Saukko - 2.0.3 +- Updated to the latest upstream version. + +* Tue Sep 27 2011 Miroslav Safr - 0.30.5 +- added fix_build.patch and BMC_22845_move-var-run-to-home.patch +- upgrade to 0.30.5 + +* Wed Mar 16 2011 Jimmy Huang - 0.18.1 +- Add BMC14389_add_X-MEEGO-IVI.patch - add the missing OnlyShowIn=X-MEEGO-IVI + in the desktop file to auto start meegotouch-applauncherd on IVI platforms + +* Wed Feb 9 2011 Nimika Keshri - 0.18.1 +- BMC#10591 - meegotouch-applauncherd outdated in MeeGo + +* Mon Jan 17 2011 Jussi Lind - 0.17.0 +- BMC#10591 - meegotouch-applauncherd outdated in MeeGo +- Package description updated +- Change yaml file updated with various changes + +* Wed Dec 17 2010 Nimika Keshri - 0.15.10 +- BMC#10591 - meegotouch-applauncherd outdated in MeeGo + +* Wed Dec 1 2010 Nimika Keshri - 0.15.5 +- BMC#10591 - meegotouch-applauncherd outdated in MeeGo +- Remove obsolete patch 0001-Changes-use-usr-bin-ruby-instead-of-usr-bin-ruby1.8-.patch +- Remove obsolete patch 0002-Changes-In-MeeGo-install-file-etc-xdg-autostart-appl.patch +- Change yaml file updated with various changes + +* Thu Sep 2 2010 Pertti Kellomäki - 0.12.1 +- Updated to version 0.12.1. +- Packaged tests and test scripts as subpackages, reorganized testing + stuff to satisfy rpmlint. +- Included a .desktop file which kicks off applauncherd in a UI session. + +* Wed Aug 25 2010 Pertti Kellomäki - 0.10.3 +- Updated to version 0.10.3. + +* Wed Jul 14 2010 Pertti Kellomäki - 0.8.0 +- Initial packaging. diff --git a/rpm/mapplauncherd.service b/rpm/mapplauncherd.service new file mode 100644 index 0000000..167cfe9 --- /dev/null +++ b/rpm/mapplauncherd.service @@ -0,0 +1,12 @@ +[Unit] +Description=MTF app launcher daemon +After=xorg.target +Requires=dbus.socket xorg.target + +[Service] +Type=notify +ExecStart=/usr/bin/applauncherd --systemd + +[Install] +# For compatibility +Alias=meegotouch-applauncherd.service diff --git a/rpm/mapplauncherd.spec b/rpm/mapplauncherd.spec new file mode 100644 index 0000000..3d9b4e4 --- /dev/null +++ b/rpm/mapplauncherd.spec @@ -0,0 +1,229 @@ +# +# Do NOT Edit the Auto-generated Part! +# Generated by: spectacle version 0.25 +# + +Name: mapplauncherd + +# >> macros +# << macros + +Summary: Application launcher for fast startup +Version: 4.0.1 +Release: 1 +Group: System/Daemons +License: LGPLv2+ +URL: https://github.com/nemomobile/mapplauncherd/ +Source0: %{name}-%{version}.tar.bz2 +Source1: mapplauncherd.service +Source100: mapplauncherd.yaml +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: pkgconfig(QtCore) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xtst) +BuildRequires: pkgconfig(xextproto) +BuildRequires: pkgconfig(xi) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(systemd) +BuildRequires: cmake +BuildRequires: python +BuildRequires: desktop-file-utils +Provides: meegotouch-applauncherd > 3.0.3 +Obsoletes: meegotouch-applauncherd <= 3.0.3 + +%description +Application invoker and launcher daemon that speed up +application startup time and share memory. Provides also +functionality to launch applications as single instances. + + +%package devel +Summary: Development files for launchable applications +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Provides: meegotouch-applauncherd-devel > 3.0.3 +Obsoletes: meegotouch-applauncherd-devel <= 3.0.3 + +%description devel +Development files for creating applications that can be launched +using mapplauncherd. + + +%package testapps +Summary: Test applications for launchable applications +Group: Development/Tools +Requires: %{name} = %{version}-%{release} + +%description testapps +Test applications used for testing mapplauncherd. + + +%package tests +Summary: Test scripts for launchable applications +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: %{name}-testapps = %{version}-%{release} + +%description tests +Test scripts used for testing meegotouch-applauncherd. + + + +%prep +%setup -q -n %{name}-%{version} + +# >> setup +# << setup + +%build +# >> build pre +export BUILD_TESTS=1 +export MEEGO=1 +unset LD_AS_NEEDED +# << build pre + +%configure --disable-static +make %{?jobs:-j%jobs} + +# >> build post +# << build post + +%install +rm -rf %{buildroot} +# >> install pre +# << install pre +%make_install +mkdir -p %{buildroot}%{_libdir}/systemd/user/ +cp -a %{SOURCE1} %{buildroot}%{_libdir}/systemd/user/ + + +# >> install post +(cd %{buildroot}%{_libdir}/systemd/user; ln -s mapplauncherd.service meegotouch-applauncherd.service) + +# rpmlint complains about installing binaries in /usr/share, so +# move them elsewhere and leave a symlink in place. +mv %{buildroot}/usr/share/applauncherd-tests %{buildroot}/usr/lib +(cd %{buildroot}/usr/share; ln -s ../lib/applauncherd-tests) +# Don't use %exclude, remove at install phase +rm -f %{buildroot}/usr/share/fala_images/fala_qml_helloworld +# << install post + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + %{buildroot}%{_datadir}/applications/*.desktop + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_bindir}/invoker +%{_libdir}/libapplauncherd.so* +%{_libdir}/applauncherd/libebooster.so +%{_libdir}/applauncherd/libqtbooster.so +%{_libdir}/applauncherd/libqdeclarativebooster.so +%{_libdir}/libmdeclarativecache.so.0 +%{_libdir}/libmdeclarativecache.so.0.1 +%{_bindir}/applauncherd.bin +%{_bindir}/applauncherd +%{_bindir}/single-instance +%{_libdir}/systemd/user/mapplauncherd.service +%{_libdir}/systemd/user/meegotouch-applauncherd.service +# >> files +# << files + +%files devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/qdeclarative-boostable.pc +%{_libdir}/pkgconfig/qt-boostable.pc +%{_includedir}/applauncherd/* +%{_datadir}/qt4/mkspecs/features/qt-boostable.prf +%{_datadir}/qt4/mkspecs/features/qdeclarative-boostable.prf +%{_libdir}/libmdeclarativecache.so +# >> files devel +# << files devel + +%files testapps +%defattr(-,root,root,-) +%{_bindir}/fala_dbus +%{_bindir}/fala_focus +%{_bindir}/fala_gettime_ms +%{_bindir}/fala_pixelchanged +%{_bindir}/fala_status +%{_bindir}/fala_wl +%{_bindir}/fala_wol +%{_bindir}/fala_gettime +%{_bindir}/fala_windowid +%{_bindir}/fala_qml_helloworld +%{_bindir}/fala_qml_helloworld1 +%{_bindir}/fala_qml_helloworld2 +%{_bindir}/fala_qml_wl +%{_bindir}/fala_qml_wol +%{_bindir}/fala_wait +%{_bindir}/fala_windowless +%{_bindir}/xsendevent +%{_datadir}/dbus-1/services/com.nokia.fala_testapp.service +%{_datadir}/fala_images/landscape.jpg +%{_datadir}/fala_images/portrait.jpg +# >> files testapps +# << files testapps + +%files tests +%defattr(-,root,root,-) +%{_datadir}/applauncherd-M-art-tests/tests.xml +%{_datadir}/applauncherd-M-bug-tests/tests.xml +%{_datadir}/applauncherd-M-functional-tests/tests.xml +%{_datadir}/applauncherd-M-performance-tests/tests.xml +%{_datadir}/applauncherd-tests +%{_libdir}/applauncherd-tests/tests.xml +%{_libdir}/applauncherd-tests/ut_booster +%{_libdir}/applauncherd-tests/ut_daemon +%{_libdir}/applauncherd-tests/ut_ebooster +%{_libdir}/applauncherd-tests/ut_connection +%{_libdir}/applauncherd-tests/ut_qtbooster +%{_libdir}/applauncherd-tests/ut_socketmanager +%{_libdir}/applauncherd-tests/ut_dbooster +%{_libdir}/applauncherd-tests/libutplugin.so +%{_libdir}/applauncherd-tests/libutwithcreate.so +%{_libdir}/applauncherd-tests/libutwithcreatetype.so +%{_libdir}/applauncherd-tests/libutwithcreatetypesocketname.so +%{_libdir}/applauncherd-tests/libutwithlock.so +%{_libdir}/applauncherd-tests/libutwithlockunlock.so +%{_libdir}/applauncherd-tests/ut_appdata +%{_libdir}/applauncherd-tests/ut_boosterpluginregistry +%{_libdir}/applauncherd-tests/ut_logger +%{_libdir}/applauncherd-tests/ut_singleinstance +%{_datadir}/applauncherd-M-testscripts/check_pipes.py +%{_datadir}/applauncherd-M-testscripts/check_pipes.pyc +%{_datadir}/applauncherd-M-testscripts/check_pipes.pyo +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.py +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.pyc +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.pyo +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.sh +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.py +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.pyc +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.pyo +%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.sh +%{_datadir}/applauncherd-M-testscripts/tc_theming.rb +%{_datadir}/applauncherd-M-testscripts/test-func-launcher.py +%{_datadir}/applauncherd-M-testscripts/test-func-launcher.pyc +%{_datadir}/applauncherd-M-testscripts/test-func-launcher.pyo +%{_datadir}/applauncherd-M-testscripts/ts_prestartapp.rb +%{_datadir}/applauncherd-M-testscripts/fala_wid +%{_datadir}/applauncherd-M-testscripts/fala_xres_wl +%{_datadir}/applauncherd-M-testscripts/fala_xres_wol +%{_datadir}/applauncherd-M-testscripts/test-perf.rb +%{_datadir}/applauncherd-M-testscripts/utils.py +%{_datadir}/applauncherd-M-testscripts/utils.pyc +%{_datadir}/applauncherd-M-testscripts/utils.pyo +%{_datadir}/applauncherd-testscripts/view.qml +%{_datadir}/applications/fala_wl.desktop +%{_datadir}/applications/fala_wol.desktop +%{_datadir}/applications/fala_qml_wol.desktop +%{_datadir}/applications/fala_qml_wl.desktop +%{_datadir}/dbus-1/services/com.nokia.fala_wl.service +%{_datadir}/dbus-1/services/com.nokia.fala_wol.service +# >> files tests +# << files tests diff --git a/rpm/mapplauncherd.yaml b/rpm/mapplauncherd.yaml new file mode 100644 index 0000000..20a73f5 --- /dev/null +++ b/rpm/mapplauncherd.yaml @@ -0,0 +1,153 @@ +Name: mapplauncherd +Summary: Application launcher for fast startup +Version: 4.0.1 +Release: 1 +Group: System/Daemons +License: LGPLv2+ +URL: https://github.com/nemomobile/mapplauncherd/ +Sources: + - "%{name}-%{version}.tar.bz2" +ExtraSources: + - mapplauncherd.service;%{_libdir}/systemd/user/ +Description: | + Application invoker and launcher daemon that speed up + application startup time and share memory. Provides also + functionality to launch applications as single instances. +PkgConfigBR: + - QtCore + - x11 + - xtst + - xextproto + - xi + - xext + - systemd +PkgBR: + - cmake + - python +Provides: + - meegotouch-applauncherd > 3.0.3 +Obsoletes: + - meegotouch-applauncherd <= 3.0.3 +Builder: make +Files: + - "%{_bindir}/invoker" + - "%{_libdir}/libapplauncherd.so*" + - "%{_libdir}/applauncherd/libebooster.so" + - "%{_libdir}/applauncherd/libqtbooster.so" + - "%{_libdir}/applauncherd/libqdeclarativebooster.so" + - "%{_libdir}/libmdeclarativecache.so.0" + - "%{_libdir}/libmdeclarativecache.so.0.1" + - "%{_bindir}/applauncherd.bin" + - "%{_bindir}/applauncherd" + - "%{_bindir}/single-instance" + - "%{_libdir}/systemd/user/mapplauncherd.service" + # For compatibility + - "%{_libdir}/systemd/user/meegotouch-applauncherd.service" +SubPackages: + - Name: devel + Group: Development/Tools + Summary: Development files for launchable applications + Description: | + Development files for creating applications that can be launched + using mapplauncherd. + Provides: + - meegotouch-applauncherd-devel > 3.0.3 + Obsoletes: + - meegotouch-applauncherd-devel <= 3.0.3 + Files: + - "%{_libdir}/pkgconfig/qdeclarative-boostable.pc" + - "%{_libdir}/pkgconfig/qt-boostable.pc" + - "%{_includedir}/applauncherd/*" + - "%{_datadir}/qt4/mkspecs/features/qt-boostable.prf" + - "%{_datadir}/qt4/mkspecs/features/qdeclarative-boostable.prf" + - "%{_libdir}/libmdeclarativecache.so" + + - Name: testapps + Group: Development/Tools + Summary: Test applications for launchable applications + Description: | + Test applications used for testing mapplauncherd. + Files: + - "%{_bindir}/fala_dbus" + - "%{_bindir}/fala_focus" + - "%{_bindir}/fala_gettime_ms" + - "%{_bindir}/fala_pixelchanged" + - "%{_bindir}/fala_status" + - "%{_bindir}/fala_wl" + - "%{_bindir}/fala_wol" + - "%{_bindir}/fala_gettime" + - "%{_bindir}/fala_windowid" + - "%{_bindir}/fala_qml_helloworld" + - "%{_bindir}/fala_qml_helloworld1" + - "%{_bindir}/fala_qml_helloworld2" + - "%{_bindir}/fala_qml_wl" + - "%{_bindir}/fala_qml_wol" + - "%{_bindir}/fala_wait" + - "%{_bindir}/fala_windowless" + - "%{_bindir}/xsendevent" + - "%{_datadir}/dbus-1/services/com.nokia.fala_testapp.service" + - "%{_datadir}/fala_images/landscape.jpg" + - "%{_datadir}/fala_images/portrait.jpg" + + + - Name: tests + Group: Development/Tools + Summary: Test scripts for launchable applications + Description: | + Test scripts used for testing meegotouch-applauncherd. + Requires: + - "%{name}-testapps = %{version}-%{release}" + Files: + - "%{_datadir}/applauncherd-M-art-tests/tests.xml" + - "%{_datadir}/applauncherd-M-bug-tests/tests.xml" + - "%{_datadir}/applauncherd-M-functional-tests/tests.xml" + - "%{_datadir}/applauncherd-M-performance-tests/tests.xml" + - "%{_datadir}/applauncherd-tests" + - "%{_libdir}/applauncherd-tests/tests.xml" + - "%{_libdir}/applauncherd-tests/ut_booster" + - "%{_libdir}/applauncherd-tests/ut_daemon" + - "%{_libdir}/applauncherd-tests/ut_ebooster" + - "%{_libdir}/applauncherd-tests/ut_connection" + - "%{_libdir}/applauncherd-tests/ut_qtbooster" + - "%{_libdir}/applauncherd-tests/ut_socketmanager" + - "%{_libdir}/applauncherd-tests/ut_dbooster" + - "%{_libdir}/applauncherd-tests/libutplugin.so" + - "%{_libdir}/applauncherd-tests/libutwithcreate.so" + - "%{_libdir}/applauncherd-tests/libutwithcreatetype.so" + - "%{_libdir}/applauncherd-tests/libutwithcreatetypesocketname.so" + - "%{_libdir}/applauncherd-tests/libutwithlock.so" + - "%{_libdir}/applauncherd-tests/libutwithlockunlock.so" + - "%{_libdir}/applauncherd-tests/ut_appdata" + - "%{_libdir}/applauncherd-tests/ut_boosterpluginregistry" + - "%{_libdir}/applauncherd-tests/ut_logger" + - "%{_libdir}/applauncherd-tests/ut_singleinstance" + - "%{_datadir}/applauncherd-M-testscripts/check_pipes.py" + - "%{_datadir}/applauncherd-M-testscripts/check_pipes.pyc" + - "%{_datadir}/applauncherd-M-testscripts/check_pipes.pyo" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.py" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.pyc" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.pyo" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_m.sh" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.py" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.pyc" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.pyo" + - "%{_datadir}/applauncherd-M-testscripts/signal-forward/fala_sf_qt.sh" + - "%{_datadir}/applauncherd-M-testscripts/tc_theming.rb" + - "%{_datadir}/applauncherd-M-testscripts/test-func-launcher.py" + - "%{_datadir}/applauncherd-M-testscripts/test-func-launcher.pyc" + - "%{_datadir}/applauncherd-M-testscripts/test-func-launcher.pyo" + - "%{_datadir}/applauncherd-M-testscripts/ts_prestartapp.rb" + - "%{_datadir}/applauncherd-M-testscripts/fala_wid" + - "%{_datadir}/applauncherd-M-testscripts/fala_xres_wl" + - "%{_datadir}/applauncherd-M-testscripts/fala_xres_wol" + - "%{_datadir}/applauncherd-M-testscripts/test-perf.rb" + - "%{_datadir}/applauncherd-M-testscripts/utils.py" + - "%{_datadir}/applauncherd-M-testscripts/utils.pyc" + - "%{_datadir}/applauncherd-M-testscripts/utils.pyo" + - "%{_datadir}/applauncherd-testscripts/view.qml" + - "%{_datadir}/applications/fala_wl.desktop" + - "%{_datadir}/applications/fala_wol.desktop" + - "%{_datadir}/applications/fala_qml_wol.desktop" + - "%{_datadir}/applications/fala_qml_wl.desktop" + - "%{_datadir}/dbus-1/services/com.nokia.fala_wl.service" + - "%{_datadir}/dbus-1/services/com.nokia.fala_wol.service"