From 36f662074ea24e500debe7de64ada4cded7a0bb5 Mon Sep 17 00:00:00 2001 From: Parichay Kapoor Date: Fri, 15 Nov 2019 15:22:27 +0900 Subject: [Dist/Tizen] Add rpm spec and manifest files to support GBS This PR provides tizen packages, flatbuffers and flatbuffers-devel. Signed-off-by: Parichay Kapoor --- packaging/flatbuffers.manifest | 5 ++++ packaging/flatbuffers.spec | 66 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 packaging/flatbuffers.manifest create mode 100644 packaging/flatbuffers.spec diff --git a/packaging/flatbuffers.manifest b/packaging/flatbuffers.manifest new file mode 100644 index 00000000..017d22d3 --- /dev/null +++ b/packaging/flatbuffers.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/flatbuffers.spec b/packaging/flatbuffers.spec new file mode 100644 index 00000000..609e67db --- /dev/null +++ b/packaging/flatbuffers.spec @@ -0,0 +1,66 @@ +Name: flatbuffers +Summary: cross platform serialization library +Version: 1.11.0 +Release: 1%{?dist} +Group: Development/Libraries +Packager: Parichay Kapoor +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +FlatBuffers is a cross platform serialization library architected for maximum +memory efficiency. It allows you to directly access serialized data without +parsing/unpacking it first, while still having great forwards/backwards +compatibility. + +%package devel +Summary: Development package to use flatbuffers +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +%description devel +This package provides headers and other miscellaneous files required to use flatbuffers. + +%prep +%setup -q +cp %{SOURCE1} . + +%build +%{cmake} \ + -DFLATBUFFERS_INSTALL=ON \ + -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ + -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \ + -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \ + -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ + -DCMAKE_INSTALL_BINDIR=%{_bindir} \ + -DFB_CMAKE_DIR=%{_libdir}/cmake \ + -DCMAKE_BUILD_TYPE=Release . +%{__make} %{?_smp_mflags} + +%check +make test + +%install +%{__make} DESTDIR=%{?buildroot:%{buildroot}} install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%license LICENSE.txt +%{_libdir}/libflatbuffers.so* + +%files devel +%{_bindir}/flatc +%{_includedir}/flatbuffers +%{_libdir}/libflatbuffers.a +%{_libdir}/cmake/flatbuffers/* + +%changelog +* Fri Nov 15 2019 Parichay kapoor +- Release of 1.11.0 -- cgit v1.2.3