summaryrefslogtreecommitdiffstats
path: root/packaging/rpm/agl-libappcontroller.spec
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-01-03 15:03:39 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-01-03 16:48:48 +0100
commit680af25d7b89e734b77ddad0f4e2d2a4d1bc8826 (patch)
tree53a3377e1c681678164e8e276c41ddf7b019d638 /packaging/rpm/agl-libappcontroller.spec
parent565e5a7fac5db9a35fd0b2cb8e12f1bdf4772821 (diff)
Adding packaging files
Add necessary files to build native packages for AGL supported linux distributions Bug-AGL: SPEC-2097 Change-Id: Ife6d1ec8a05f40e0bd70e741859133003716b37a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'packaging/rpm/agl-libappcontroller.spec')
-rw-r--r--packaging/rpm/agl-libappcontroller.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/packaging/rpm/agl-libappcontroller.spec b/packaging/rpm/agl-libappcontroller.spec
new file mode 100644
index 0000000..194ebdd
--- /dev/null
+++ b/packaging/rpm/agl-libappcontroller.spec
@@ -0,0 +1,72 @@
+#
+# spec file for package libappcontroller
+#
+
+%define _prefix /opt/AGL
+%define __cmake cmake
+
+%if 0%{?fedora_version}
+%global debug_package %{nil}
+%endif
+
+Name: agl-libappcontroller
+# 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 libappcontroller
+Group: Development/Libraries/C and C++
+Url: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/libappcontroller
+Source: libappcontroller-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: curl
+BuildRequires: gcc-c++
+BuildRequires: pkgconfig(json-c)
+BuildRequires: pkgconfig(afb-daemon)
+BuildRequires: pkgconfig(lua) >= 5.3
+BuildRequires: pkgconfig(afb-helpers)
+BuildRequires: pkgconfig(libsystemd) >= 222
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+libappcontroller 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 libappcontroller-devel
+%description devel
+libappcontroller provides helpful functions to be used in a binding for the
+Application Framework Binder
+
+%prep
+%setup -q -n libappcontroller-%{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