--- /dev/null
+Format: 1.0
+Source: agl-libafb-helpers
+Binary: agl-libafb-helpers-bin, agl-libafb-helpers-dev
+Architecture: any
+Version: 2.0-0
+Maintainer: romain.forlot <romain.forlot@iot.bzh>
+Standards-Version: 3.8.2
+Homepage: https://gerrit.automotivelinux.org/gerrit/src/libafb-helpers
+Build-Depends: debhelper (>= 5),
+ cmake,
+ dpkg-dev,
+ pkg-config,
+ libjson-c-dev,
+ libsystemd-dev,
+ libcurl4-openssl-dev,
+ libqt5websockets5-dev,
+ agl-app-framework-binder-bin,
+ agl-app-framework-binder-dev,
+DEBTRANSFORM-RELEASE: 1
+Files:
+ libafb-helpers_2.0.tar.gz
--- /dev/null
+/opt/AGL/lib/*/libafb-helpers*.a
--- /dev/null
+/opt/AGL/lib/*/pkgconfig/*.pc
+/opt/AGL/include/*
--- /dev/null
+agl-libafb-helpers (2.0-0) unstable; urgency=low
+
+ * init build
+
+ -- Romain Forlot <romain.forlot@iot.bzh> Fri, 28 Dec 2018 10:50:38 +0100
--- /dev/null
+Priority: optional
+Maintainer: romain.forlot <romain.forlot@iot.bzh>
+Source: agl-libafb-helpers
+Build-Depends:
+ debhelper (>= 5),
+ pkg-config,
+ cmake,
+ libjson-c-dev,
+ libsystemd-dev,
+ libcurl4-openssl-dev,
+ libqt5websockets5-dev,
+ agl-app-framework-binder-bin,
+ agl-app-framework-binder-dev,
+Standards-Version: 3.8.2
+Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/libafb-helpers
+
+Package: agl-libafb-helpers-bin
+Section: libs
+Architecture: any
+Description: libafb-helpers provides helpful functions to be used in a binding for the
+ Application Framework Binder
+
+Package: agl-libafb-helpers-dev
+Section: libs
+Architecture: any
+Depends: agl-libafb-helpers-bin
+Description: libafb-helpers provides helpful functions to be used in a binding for the
+ Application Framework Binder
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+export VERSION=$(shell grep -E "^Version" ../*dsc | sed -r 's/^.*: (.*)-.*/\1/')
+
+%:
+ bash /etc/profile.d/AGL-app-framework-binder.sh
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DVERSION=${VERSION} -DAFB_HELPERS_QT=ON -DCMAKE_INSTALL_PREFIX=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/${DEB_HOST_MULTIARCH}
+
+override_dh_auto_install:
+ dh_auto_install --destdir=/usr/src/packages/BUILD/debian/tmp
+
+override_dh_auto_test:
--- /dev/null
+#
+# spec file for package libafb-helpers
+#
+
+%define _prefix /opt/AGL
+%define __cmake cmake
+
+%if 0%{?fedora_version}
+%global debug_package %{nil}
+%endif
+
+Name: agl-libafb-helpers
+# WARNING {name} is not used for tar file name in source nor for setup
+# Check hard coded values required to match git directory naming
+Version: 2.0
+Release: 0
+License: Apache-2.0
+Summary: AGL libafb-helpers
+Group: Development/Libraries/C and C++
+Url: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/libafb-helpers
+Source: libafb-helpers-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: curl
+BuildRequires: gcc-c++
+BuildRequires: pkgconfig(json-c)
+BuildRequires: pkgconfig(libcurl)
+BuildRequires: pkgconfig(afb-daemon)
+BuildRequires: pkgconfig(Qt5WebSockets)
+BuildRequires: pkgconfig(libsystemd) >= 222
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+libafb-helpers provides helpful functions to be used in a binding for the
+Application Framework Binder
+
+%package devel
+Group: Development/Libraries/C and C++
+Requires: %{name} = %{version}
+Provides: pkgconfig(%{name}) = %{version}
+Summary: AGL libafb-helpers-devel
+%description devel
+libafb-helpers provides helpful functions to be used in a binding for the
+Application Framework Binder
+
+%prep
+%setup -q -n libafb-helpers-%{version}
+
+%build
+export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
+[ ! -d build ] && mkdir build
+cd build
+cmake -DCMAKE_INSTALL_PREFIX=/opt/AGL -DCMAKE_BUILD_TYPE=DEBUG -DVERSION=%{version} ..
+%__make %{?_smp_mflags}
+
+%install
+[ -d build ] && cd build
+%make_install
+
+%files
+
+%files devel
+%defattr(-,root,root)
+%dir %{_includedir}
+%dir %{_libdir}
+%{_includedir}/*
+%{_libdir}/*.a
+%{_libdir}/pkgconfig/*.pc
+
+%changelog
+* Fri Dec 28 2018 Romain Forlot
+- initial creation