summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control47
-rw-r--r--debian/copyright27
-rw-r--r--debian/flatbuffers-compiler.install1
-rw-r--r--debian/libflatbuffers-dev.install4
-rw-r--r--debian/libflatbuffers.install1
-rwxr-xr-xdebian/rules26
8 files changed, 112 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..6eebe3b1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+flatbuffers (1.11.0-1) unstable; urgency=medium
+
+ * Initial debianization for v1.11.0
+
+ -- Wook Song <wook16.song@samsung.com> Tue, 11 Feb 2020 11:26:10 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..f11c82a4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9 \ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..572e5498
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,47 @@
+Source: flatbuffers
+Section: libdevel
+Priority: optional
+Build-Depends: debhelper (>=9), cmake, gcc
+Maintainer: Wook Song <wook16.song@samsung.com>
+Standards-Version: 3.6.1
+Homepage: https://github.com/google/flatbuffers
+
+Package: libflatbuffers
+Architecture: linux-any
+Multi-Arch: same
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Memory Efficient Serialization Library (libs)
+ 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.
+ .
+ This package contains the runtime library.
+
+Package: libflatbuffers-dev
+Architecture: linux-any
+Multi-Arch: same
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, libflatbuffers (= ${binary:Version})
+Description: Memory Efficient Serialization Library (dev-kit)
+ 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.
+ .
+ This package contains the development header and static library files.
+
+
+Package: flatbuffers-compiler
+Architecture: linux-any
+Multi-Arch: same
+Section: devel
+Depends: ${misc:Depends}
+Description: Memory Efficient Serialization Library (compiler)
+ 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.
+ .
+ This package contains the development header and static library files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..d0a579e2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: flatbuffers
+Source: https://github.com/google/flatbuffers
+
+Files: *
+Copyright: 2008-2020 Google Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2020, Wook Song <wook16.song@samsung.com>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ ․
+ https://www.apache.org/licenses/LICENSE-2.0
+ ․
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ․
+ On Debian systems, the complete text of the Apache License,
+ Version 2.0 can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/debian/flatbuffers-compiler.install b/debian/flatbuffers-compiler.install
new file mode 100644
index 00000000..d29ac35b
--- /dev/null
+++ b/debian/flatbuffers-compiler.install
@@ -0,0 +1 @@
+/usr/bin/flatc
diff --git a/debian/libflatbuffers-dev.install b/debian/libflatbuffers-dev.install
new file mode 100644
index 00000000..ecb5e929
--- /dev/null
+++ b/debian/libflatbuffers-dev.install
@@ -0,0 +1,4 @@
+/usr/lib/*/libflatbuffers.so
+/usr/lib/*/libflatbuffers.a
+/usr/include/flatbuffers/*
+/usr/lib/*/cmake/*
diff --git a/debian/libflatbuffers.install b/debian/libflatbuffers.install
new file mode 100644
index 00000000..5127e5ee
--- /dev/null
+++ b/debian/libflatbuffers.install
@@ -0,0 +1 @@
+/usr/lib/*/libflatbuffers.so.*.*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..0d8e27f7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+export DEB_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+else
+export DEB_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
+endif
+
+export DEB_CMAKE_EXTRA_FLAGS += -DFLATBUFFERS_INSTALL=ON \
+ -DFLATBUFFERS_BUILD_SHAREDLIB=ON \
+ -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
+ -DCMAKE_INSTALL_PREPIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_MULTIARCH) \
+ -DCMAKE_INSTALL_BINDIR=bin \
+ -DCMAKE_BUILD_TYPE=Release
+
+%:
+ dh $@ --parallel --buildsystem=cmake
+
+override_dh_auto_configure:
+ dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
+
+
+