From 76b584618506a82cf4467bf14f5986fd2e5d1b47 Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Thu, 14 Aug 2014 11:20:07 -0700 Subject: [PATCH] Setting up rygel to register itself as a Tizen app. This allows a settings app to launch it Change-Id: Iacab9c1831a69b341ad4e6de457fecfdbe0f184e --- org.tizen.rygel.xml | 8 ++++++++ packaging/rygel.spec | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100755 org.tizen.rygel.xml diff --git a/org.tizen.rygel.xml b/org.tizen.rygel.xml new file mode 100755 index 0000000..5f22de2 --- /dev/null +++ b/org.tizen.rygel.xml @@ -0,0 +1,8 @@ + + + + Rygel + + + + diff --git a/packaging/rygel.spec b/packaging/rygel.spec index a3a6686..cd8fac6 100644 --- a/packaging/rygel.spec +++ b/packaging/rygel.spec @@ -31,6 +31,7 @@ BuildRequires: pkgconfig(uuid) BuildRequires: intltool BuildRequires: libxslt-tools BuildRequires: docbook-xsl-stylesheets +Requires(post): /usr/bin/pkg_initdb %description Rygel is a collection of DLNA (UPnP AV) devices, implemented through a plug-in mechanism. @@ -71,6 +72,9 @@ NOCONFIGURE=y ./autogen.sh # << build post %install rm -rf %{buildroot} +mkdir -p %{buildroot}%{_datadir}/packages/ +install -m 0644 org.tizen.rygel.xml %{buildroot}%{_datadir}/packages/ + # >> install pre # << install pre %make_install @@ -89,6 +93,8 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop /bin/touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache \ --quiet %{_datadir}/icons/hicolor 2> /dev/null|| : +/usr/bin/pkg_initdb + # systemctl daemon-reload # systemctl restart rygel.service @@ -141,6 +147,7 @@ systemctl daemon-reload %{_datadir}/rygel/xml/X_MS_MediaReceiverRegistrar1.xml %{_datadir}/man/man1/rygel.1.gz %{_datadir}/man/man5/rygel.conf.5.gz +%{_datadir}/packages/org.tizen.rygel.xml # Rygel core libs %{_libdir}/librygel-*.so.* # Rygel plugins -- 2.7.4