[Dist/Debian] Initial debianization for v1.11.0
authorWook Song <wook16.song@samsung.com>
Wed, 12 Feb 2020 07:25:15 +0000 (16:25 +0900)
committerYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 2 Dec 2022 07:37:24 +0000 (16:37 +0900)
Initial debianization for v1.11.0.

Change-Id: Ie27a37855e782277c60908ebea9b363d296d34a3
Signed-off-by: Wook Song <wook16.song@samsung.com>
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/flatbuffers-compiler.install [new file with mode: 0644]
debian/libflatbuffers-dev.install [new file with mode: 0644]
debian/libflatbuffers.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..6eebe3b
--- /dev/null
@@ -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 (file)
index 0000000..f11c82a
--- /dev/null
@@ -0,0 +1 @@
+9
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..572e549
--- /dev/null
@@ -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 (file)
index 0000000..d0a579e
--- /dev/null
@@ -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 (file)
index 0000000..d29ac35
--- /dev/null
@@ -0,0 +1 @@
+/usr/bin/flatc
diff --git a/debian/libflatbuffers-dev.install b/debian/libflatbuffers-dev.install
new file mode 100644 (file)
index 0000000..ecb5e92
--- /dev/null
@@ -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 (file)
index 0000000..ee17e4a
--- /dev/null
@@ -0,0 +1 @@
+/usr/lib/*/libflatbuffers.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..0d8e27f
--- /dev/null
@@ -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)
+
+
+