From a1976ff1b2bccc8689182505828f7e3814d0d21b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 28 Dec 2018 15:15:47 +0100 Subject: Adding packaging files Adding the necessary packaging files for the AGL supported distributions. OpenSUSE, Fedora, Ubuntu and Debian. Bug-AGL: SPEC-2097 Change-Id: I81fe9b614366c2d9f3337f18082ed221b8931e6a Signed-off-by: Romain Forlot --- packaging/rpm/agl-libafb-helpers.spec | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 packaging/rpm/agl-libafb-helpers.spec (limited to 'packaging/rpm') diff --git a/packaging/rpm/agl-libafb-helpers.spec b/packaging/rpm/agl-libafb-helpers.spec new file mode 100644 index 0000000..ab2edd7 --- /dev/null +++ b/packaging/rpm/agl-libafb-helpers.spec @@ -0,0 +1,72 @@ +# +# 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 -- cgit 1.2.3-korg