diff options
author | Christian Benien <christian.benien@nuance.com> | 2018-07-27 17:25:38 +0200 |
---|---|---|
committer | Christian Benien <christian.benien@nuance.com> | 2018-07-27 17:41:02 +0200 |
commit | fdee159e0756528d6873cfe1526769975cad5c00 (patch) | |
tree | a352f39a35e31e2d0f556aabd1ea0e02300de92d /conf.d/packaging/agl-helloworld-service.spec | |
parent | bd52bb7d7a7785374c5e1c5f1fc6f92476de1c0c (diff) |
Imported initial content from https://github.com/Nuance-Mobility/agl-speech-interfaceflounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.35.99.65.99.55.99.45.99.3
Change-Id: I4c9fc3b9e8b3ea3b97bcbc4d8f099edd71b94b91
Signed-off-by: Christian Benien <christian.benien@nuance.com>
Diffstat (limited to 'conf.d/packaging/agl-helloworld-service.spec')
-rw-r--r-- | conf.d/packaging/agl-helloworld-service.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/conf.d/packaging/agl-helloworld-service.spec b/conf.d/packaging/agl-helloworld-service.spec new file mode 100644 index 0000000..d495571 --- /dev/null +++ b/conf.d/packaging/agl-helloworld-service.spec @@ -0,0 +1,66 @@ +########################################################################### +# Copyright 2015, 2016, 2017 IoT.bzh +# +# author: Iot-Team <secretaria@iot.bzh> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +########################################################################### + + +Name: agl-helloworld-service +Version: 1.0 +Release: 1 +Group: AGL +License: APL2.0 +Summary: Provide an AGL Helloworld Binding +Url: https://github.com/iotbzh/helloworld-service +Source0: %{name}_%{version}.orig.tar.gz + +BuildRequires: cmake +BuildRequires: gcc gcc-c++ +BuildRequires: pkgconfig(json-c) +BuildRequires: pkgconfig(libsystemd) >= 222 +BuildRequires: pkgconfig(afb-daemon) +BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.55 + + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%define _prefix /opt/AGL/helloworld-service +%define __cmake cmake + +%description +Provide an AGL Helloworld Binding + +%prep +%setup -q + +%build +%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_libdir} +make %{?_smp_mflags} + +%install +CURDIR=$(pwd) +[ -d build ] && cd build +make populate +mkdir -p %{?buildroot}%{_prefix} +cp -r package/* %{?buildroot}%{_prefix} + +cd $CURDIR +find %{?buildroot}%{_prefix} -type d -exec echo "%dir {}" \;>> pkg_file +find %{?buildroot}%{_prefix} -type f -exec echo "{}" \;>> pkg_file +sed -i 's@%{?buildroot}@@g' pkg_file + + +%files -f pkg_file +%defattr(-,root,root) |