diff options
author | Parichay Kapoor <pk.kapoor@samsung.com> | 2019-11-15 15:22:27 +0900 |
---|---|---|
committer | Gichan Jang <gichan2.jang@samsung.com> | 2021-05-13 11:40:27 +0900 |
commit | 36f662074ea24e500debe7de64ada4cded7a0bb5 (patch) | |
tree | b7ddd829f2b33deea3f589b3ce678b5b8d1a6cc0 /packaging/flatbuffers.spec | |
parent | a9a295fecf3fbd5a4f571f53b01f63202a3e2113 (diff) | |
download | flatbuffers-36f662074ea24e500debe7de64ada4cded7a0bb5.tar.gz flatbuffers-36f662074ea24e500debe7de64ada4cded7a0bb5.tar.bz2 flatbuffers-36f662074ea24e500debe7de64ada4cded7a0bb5.zip |
[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 <pk.kapoor@samsung.com>
Diffstat (limited to 'packaging/flatbuffers.spec')
-rw-r--r-- | packaging/flatbuffers.spec | 66 |
1 files changed, 66 insertions, 0 deletions
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 <pk.kapoor@samsung.com> +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 <pk.kapoor@samsung.com> +- Release of 1.11.0 |