summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/libmedia-thumbnail.changes3
-rw-r--r--packaging/libmedia-thumbnail.spec9
-rw-r--r--packaging/thumbnail-server.service12
3 files changed, 23 insertions, 1 deletions
diff --git a/packaging/libmedia-thumbnail.changes b/packaging/libmedia-thumbnail.changes
new file mode 100644
index 0000000..9ce023f
--- /dev/null
+++ b/packaging/libmedia-thumbnail.changes
@@ -0,0 +1,3 @@
+* Thu Jun 21 2012 Patrick McCarty <patrick.mccarty@linux.intel.com> 91547d1
+- Add/install a systemd service file
+
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 38a5a85..e2c64ff 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -5,6 +5,7 @@ Release: 1
Group: System/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1: thumbnail-server.service
Source1001: packaging/libmedia-thumbnail.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
@@ -55,6 +56,10 @@ make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
+ln -s ../thumbnail-server.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/thumbnail-server.service
+
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
@@ -82,8 +87,10 @@ ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S47th
%files -n media-thumbnail-server
%manifest libmedia-thumbnail.manifest
%{_bindir}/media-thumbnail-server
+%exclude %{_bindir}/test-thumb
%attr(755,root,root) %{_sysconfdir}/init.d/thumbsvr
%attr(755,root,root) %{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
%attr(755,root,root) %{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
-%exclude %{_bindir}/test-thumb
+%{_libdir}/systemd/user/thumbnail-server.service
+%{_libdir}/systemd/user/tizen-middleware.target.wants/thumbnail-server.service
diff --git a/packaging/thumbnail-server.service b/packaging/thumbnail-server.service
new file mode 100644
index 0000000..c03c3b7
--- /dev/null
+++ b/packaging/thumbnail-server.service
@@ -0,0 +1,12 @@
+
+[Unit]
+Description=Start the thumbnailer service
+
+[Service]
+ExecStart=/usr/bin/media-thumbnail-server
+Nice=5
+OOMScoreAdjust=100
+
+[Install]
+WantedBy=tizen-middleware.target
+