From bb700f5b758c2c54ea172c8dcc0478245ee1a9ed Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Mon, 26 Jan 2015 15:35:16 +0200 Subject: [PATCH] packaging: generate D-Bus service file with correct @LIBDIR@. Change-Id: I26511ad15ed81ccfdb406504c12ee4abd302ef01 --- packaging/org.tizen.srs.service | 3 --- packaging/org.tizen.srs.service.in | 3 +++ packaging/speech-recognition.spec | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 packaging/org.tizen.srs.service create mode 100644 packaging/org.tizen.srs.service.in diff --git a/packaging/org.tizen.srs.service b/packaging/org.tizen.srs.service deleted file mode 100644 index 4324101..0000000 --- a/packaging/org.tizen.srs.service +++ /dev/null @@ -1,3 +0,0 @@ -[D-BUS Service] -Name=org.tizen.srs -Exec=/usr/lib/srs/scripts/start-speech-service.sh diff --git a/packaging/org.tizen.srs.service.in b/packaging/org.tizen.srs.service.in new file mode 100644 index 0000000..a2cc851 --- /dev/null +++ b/packaging/org.tizen.srs.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.tizen.srs +Exec=@LIBDIR@/srs/scripts/start-speech-service.sh diff --git a/packaging/speech-recognition.spec b/packaging/speech-recognition.spec index 535c9d5..244d58a 100644 --- a/packaging/speech-recognition.spec +++ b/packaging/speech-recognition.spec @@ -123,6 +123,9 @@ cat packaging/speech-recognition.conf.in | \ cat packaging/speech-recognition.service.in | \ sed "s#@LIBDIR@#%{_libdir}#g" \ > packaging/speech-recognition.service +cat packaging/org.tizen.srs.service.in | \ + sed "s#@LIBDIR@#%{_libdir}#g" \ + > packaging/org.tizen.srs.service /usr/bin/install -m 644 packaging/speech-recognition.conf \ $RPM_BUILD_ROOT%{_sysconfdir}/speech-recognition -- 2.7.4