[flatbuffers] 01/01: Added debian/ directory

Jonathon Love jon at thon.cc
Sat Apr 30 09:15:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

jonathon-guest pushed a commit to branch master
in repository flatbuffers.

commit dfd74d9623dd5b462144866b58eb2c8654f39199
Author: Jonathon Love <jon at thon.cc>
Date:   Sat Apr 30 19:15:18 2016 +1000

    Added debian/ directory
---
 debian/changelog                     |   6 +
 debian/compat                        |   1 +
 debian/control                       |  79 +++++++++
 debian/copyright                     |  32 ++++
 debian/flatbuffers-compiler.install  |   1 +
 debian/flatbuffers-compiler.manpages |   1 +
 debian/flatc.xml                     | 316 +++++++++++++++++++++++++++++++++++
 debian/libflatbuffers-dev.install    |   2 +
 debian/libflatbuffers-java.javadoc   |   1 +
 debian/libflatbuffers-java.jlibs     |   1 +
 debian/libflatbuffers-java.manifest  |   2 +
 debian/libjs-flatbuffers.install     |   2 +
 debian/patches/cmake_cxx_flags.diff  |  16 ++
 debian/patches/fix-java-version.diff |  40 +++++
 debian/patches/series                |   2 +
 debian/rules                         |  18 ++
 debian/source/format                 |   1 +
 debian/watch                         |   3 +
 18 files changed, 524 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d382c8f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+flatbuffers (1.3.0-1) unstable; urgency=low
+
+  * Initial release. (Closes: #823037)
+
+ -- Jonathon Love <jon at thon.cc>  Sat, 30 Apr 2016 18:30:45 +1000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c1aed0f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,79 @@
+Source: flatbuffers
+Maintainer: Jonathon Love <jon at thon.cc>
+Section: libdevel
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cmake,
+               xmlto,
+               default-jdk,
+               javahelper,
+               maven,
+               libmaven-source-plugin-java (= 2.4-1),
+               libmaven-javadoc-plugin-java (= 2.10.3-2),
+               libmaven-clean-plugin-java,
+               libmaven-resources-plugin-java,
+               libmaven-compiler-plugin-java (= 3.2-5),
+               libmaven-jar-plugin-java,
+               libsurefire-java,
+               nodejs,
+               node-uglify
+Standards-Version: 3.9.7
+
+Package: libflatbuffers-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: efficient cross platform serialization library
+ FlatBuffers is an efficient cross platform serialization library for
+ games and other memory constrained apps. It allows you to directly
+ access serialized data without unpacking/parsing it first, while still
+ having great forwards/backwards compatibility.
+ .
+ This package contains the runtime library needed for C++ applications.
+
+
+Package: flatbuffers-compiler
+Architecture: any
+Section: devel
+Depends: libflatbuffers-dev (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: efficient cross platform serialization library
+ FlatBuffers is an efficient cross platform serialization library for
+ games and other memory constrained apps. It allows you to directly
+ access serialized data without unpacking/parsing it first, while still
+ having great forwards/backwards compatibility.
+ .
+ This package contains the FlatBuffer compiler that is used for
+ translating from .fbs files (containing the definitions) to the language
+ binding for the supported languages.
+
+
+Package: libflatbuffers-java
+Architecture: all
+Section: java
+Depends: ${java:Depends},
+         ${misc:Depends}
+Description: efficient cross platform serialization library
+ FlatBuffers is an efficient cross platform serialization library for
+ games and other memory constrained apps. It allows you to directly
+ access serialized data without unpacking/parsing it first, while still
+ having great forwards/backwards compatibility.
+ .
+ This package contains the FlatBuffers Java library
+
+
+Package: libjs-flatbuffers
+Architecture: all
+Section: web
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: efficient cross platform serialization library
+ FlatBuffers is an efficient cross platform serialization library for
+ games and other memory constrained apps. It allows you to directly
+ access serialized data without unpacking/parsing it first, while still
+ having great forwards/backwards compatibility.
+ .
+ This package contains the FlatBuffers Javascript librarys
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..26f4161
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: flatbuffers
+Source: https://github.com/google/flatbuffers
+
+Files: *
+Copyright: 2014-2016 Wouter van Oortmerssen, Robert Winslow, Mark Klara, Oli
+ Wilkinson, Evan Wallace, Amol Deshpande, Mikkel Fahnøe Jørgensen, Alex Ames,
+ Petr Kadlec, Gabriel Martinez, et al.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 Jonathon Love <jon at thon.cc>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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
+ .
+      http://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 full text of the Apache Software License version 2 can
+ be found in the file `/usr/share/common-licenses/Apache-2.0'.
diff --git a/debian/flatbuffers-compiler.install b/debian/flatbuffers-compiler.install
new file mode 100644
index 0000000..1df36c6
--- /dev/null
+++ b/debian/flatbuffers-compiler.install
@@ -0,0 +1 @@
+usr/bin/*
diff --git a/debian/flatbuffers-compiler.manpages b/debian/flatbuffers-compiler.manpages
new file mode 100644
index 0000000..606d488
--- /dev/null
+++ b/debian/flatbuffers-compiler.manpages
@@ -0,0 +1 @@
+flatc.1
diff --git a/debian/flatc.xml b/debian/flatc.xml
new file mode 100644
index 0000000..a484301
--- /dev/null
+++ b/debian/flatc.xml
@@ -0,0 +1,316 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!--
+
+`xsltproc -nonet \
+          -param man.charmap.use.subset "0" \
+          -param make.year.ranges "1" \
+          -param make.single.year.ranges "1" \
+          /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
+          manpage.xml'
+
+A manual page <package>.<section> will be generated. You may view the
+manual page with: nroff -man <package>.<section> | less'. A typical entry
+in a Makefile or Makefile.am is:
+
+DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
+XP     = xsltproc -nonet -param man.charmap.use.subset "0"
+
+manpage.1: manpage.xml
+        $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package. The XSL files are in
+docbook-xsl. A description of the parameters you can use can be found in the
+docbook-xsl-doc-* packages. Please remember that if you create the nroff
+version in one of the debian/rules file targets (such as build), you will need
+to include xsltproc and docbook-xsl in your Build-Depends control field.
+Alternatively use the xmlto command/package. That will also automatically
+pull in xsltproc and docbook-xsl.
+
+Notes for using docbook2x: docbook2x-man does not automatically create the
+AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
+<refsect1> ... </refsect1>.
+
+To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
+read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
+found in the docbook-xsl-doc-html package.
+
+Validation can be done using: `xmllint -noout -valid manpage.xml`
+
+General documentation about man-pages and man-page-formatting:
+man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
+
+-->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "Jonathon">
+  <!ENTITY dhsurname   "Love">
+  <!-- dhusername could also be set to "&firstname; &surname;". -->
+  <!ENTITY dhusername  "&dhfirstname; &dhsurname;">
+  <!ENTITY dhemail     "jon at thon.cc">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1) and
+       http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
+  <!ENTITY dhsection   "1">
+  <!-- TITLE should be something like "User commands" or similar (see
+       http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
+  <!ENTITY dhtitle     "flatbuffers compiler">
+  <!ENTITY dhucpackage "flatbuffers">
+  <!ENTITY dhpackage   "flatc">
+]>
+
+<refentry>
+  <refentryinfo>
+    <title>&dhtitle;</title>
+    <productname>&dhucpackage;</productname>
+    <authorgroup>
+      <author>
+       <firstname>&dhfirstname;</firstname>
+        <surname>&dhsurname;</surname>
+        <contrib>Assembled this manpage for the Debian system.</contrib>
+        <address>
+          <email>&dhemail;</email>
+        </address>
+      </author>
+    </authorgroup>
+    <copyright>
+      <year>2016</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    <legalnotice>
+      <para>This manual page was compiled for the Debian system
+        (but may be used by others).</para>
+      <para>Permission is granted to copy, distribute and/or modify this
+        document under the terms of the the Apache License, Version 2.0
+      </para>
+      <para>On Debian systems, the full text of the Apache Software
+License version 2 can be found in the file 
+        <filename>/usr/share/common-licenses/Apache-2.0</filename>.</para>
+    </legalnotice>
+    <date>2016-04-25</date>
+  </refentryinfo>
+  <refmeta>
+    <refentrytitle>&dhpackage;</refentrytitle>
+    <manvolnum>&dhsection;</manvolnum>
+    <refmiscinfo class="version">2.0.2</refmiscinfo>
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+    <refpurpose>compile protocol buffer description files</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <!-- These are several examples, how syntaxes could look -->
+      <arg choice="opt"><option><replaceable>GENERATOR_OPTIONS</replaceable></option></arg>
+      <arg choice="opt"><option>-o <replaceable>PATH</replaceable></option></arg>
+      <arg choice="opt"><option>-I <replaceable>PATH</replaceable></option></arg>
+      <arg choice="opt"><option>-S</option></arg>
+      <arg choice="plain"><replaceable>FILES</replaceable></arg>
+      <arg choice="opt"><option>-- <replaceable>BINARY_FILES</replaceable></option></arg>
+    </cmdsynopsis>
+    <!-- Normally the help and version options make the programs stop
+         right after outputting the requested information. -->
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <group choice="req">
+        <arg choice="plain"><option>-h</option></arg>
+        <arg choice="plain"><option>--help</option></arg>
+      </group>
+    </cmdsynopsis>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg choice="plain"><option>--version</option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1 id="description">
+    <title>DESCRIPTION</title>
+
+    <para><command>&dhpackage;</command> is a compiler for flat
+    buffers definitions files. It can can generate C++, Python, Javascript, Java, PHP, C#, and Go source code for the classes defined in
+    <replaceable>FILES</replaceable>.</para>
+
+  </refsect1>
+
+  <refsect1 id="code-generation">
+    <title>CODE GENERATION</title>
+      <para>For any schema input files, one or more generators can be specified:</para>
+    <variablelist>
+      <!-- Use the variablelist.term.separator and the
+           variablelist.term.break.after parameters to
+           control the term elements. -->
+      <varlistentry>
+        <term><option>-cpp</option></term>
+        <term><option>-c</option></term>
+        <listitem>
+          <para>Generate a C++ header for all definitions in this file.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--python</option></term>
+        <term><option>-p</option></term>
+        <listitem>
+          <para>Generate Python code.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--javascript</option></term>
+        <term><option>-s</option></term>
+        <listitem>
+          <simpara>Generate Javascript code.</simpara>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--java</option></term>
+        <term><option>-j</option></term>
+        <listitem>
+          <simpara>Generate Java code</simpara>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--php</option></term>
+        <listitem>
+          <simpara>Generate PHP code.</simpara>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--csharp</option></term>
+        <term><option>-n</option></term>
+        <listitem>
+          <simpara>Generate C# code.</simpara>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--go</option></term>
+        <term><option>-g</option></term>
+        <listitem>
+          <simpara>Generate Go code.</simpara>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
+  </refsect1>
+
+  <refsect1 id="data-input">
+    <title>DATA INPUT</title>
+    <variablelist>
+      <varlistentry>
+        <term><option>--binary</option></term>
+        <term><option>-b</option></term>
+        <listitem>
+          <para>If data is contained in this file, generate a <replaceable>filename</replaceable>.bin containing the binary flatbuffer (or a different extension if one is specified in the schema).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--json</option></term>
+        <term><option>-t</option></term>
+        <listitem>
+          <para> If data is contained in this file, generate a <replaceable>filename</replaceable>.json representing the data in the flatbuffer.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
+  </refsect1>
+
+  <refsect1 id="additional-options">
+    <title>ADDITIONAL OPTIONS</title>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-o <replaceable>PATH</replaceable></option></term>
+        <listitem>
+          <para>Output all generated files to PATH (either absolute, or relative to the current directory). If omitted, PATH will be the current directory. PATH should end in your systems path separator, e.g. / or \.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-I <replaceable>PATH</replaceable></option></term>
+        <listitem>
+          <para>when encountering include statements, attempt to load the files from this path. Paths will be tried in the order given, and if all fail (or none are specified) it will try to load relative to the path of the schema file being parsed.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-M</option></term>
+        <listitem>
+          <para>Print make rules for generated files.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--strict-json</option></term>
+        <listitem>
+          <para>Require and generate strict JSON (field names are enclosed in quotes, no trailing commas in tables/vectors). By default, no quotes are required/generated, and trailing commas are allowed.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--defaults-json</option></term>
+        <listitem>
+          <para>Output fields whose value is equal to the default value when writing JSON text.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--no-prefix</option></term>
+        <listitem>
+          <para>Don't prefix enum values in generated C++ by their enum type.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--scoped-enums</option></term>
+        <listitem>
+          <para>Use C++11 style scoped and strongly typed enums in generated C++. This also implies <option>--no-prefix</option>.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--gen-includes</option></term>
+        <listitem>
+          <para>(deprecated), this is the default behavior. If the original behavior is required (no include statements) use <option>--no-includes</option>.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--no-includes</option></term>
+        <listitem>
+          <para>Don't generate include statements for included schemas the generated file depends on (C++).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--gen-mutable</option></term>
+        <listitem>
+          <para>(deprecated), this is the default behavior. If the original behavior is required (no include statements) use <option>--no-includes</option>.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--gen-onefile</option></term>
+        <listitem>
+          <para>Generate single output file (useful for C#).</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--gen-all</option></term>
+        <listitem>
+          <para>Generate not just code for the current schema files, but for all files it includes as well. If the language uses a single file for output (by default the case for C++ and JS), all code will end up in this one file.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--raw-binary</option></term>
+        <listitem>
+          <para>Allow binaries without a file_indentifier to be read. This may crash flatc given a mismatched schema.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--proto</option></term>
+        <listitem>
+          <para>Expect input files to be .proto files (protocol buffers). Output the corresponding .fbs file. Currently supports: package, message, enum, nested declarations, import (use <option>-I</option> for paths), extend, oneof, group. Does not support, but will skip without error: option, service, extensions, and most everything else.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>--schema</option></term>
+        <listitem>
+          <para>Serialize schemas instead of JSON (use with <option>--binary</option>). This will output a binary version of the specified schema that itself corresponds to the reflection/reflection.fbs schema. Loading this binary file is the basis for reflection functionality.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
+    <para>NOTE: short-form options for generators are deprecated, use the long form whenever possible.</para>
+
+  </refsect1>
+</refentry>
diff --git a/debian/libflatbuffers-dev.install b/debian/libflatbuffers-dev.install
new file mode 100644
index 0000000..5a8f693
--- /dev/null
+++ b/debian/libflatbuffers-dev.install
@@ -0,0 +1,2 @@
+usr/include/flatbuffers/*
+usr/lib/*
diff --git a/debian/libflatbuffers-java.javadoc b/debian/libflatbuffers-java.javadoc
new file mode 100644
index 0000000..d8ad463
--- /dev/null
+++ b/debian/libflatbuffers-java.javadoc
@@ -0,0 +1 @@
+java/target/apidocs
diff --git a/debian/libflatbuffers-java.jlibs b/debian/libflatbuffers-java.jlibs
new file mode 100644
index 0000000..fdf6e7c
--- /dev/null
+++ b/debian/libflatbuffers-java.jlibs
@@ -0,0 +1 @@
+java/target/flatbuffers-1.3.0.jar
diff --git a/debian/libflatbuffers-java.manifest b/debian/libflatbuffers-java.manifest
new file mode 100644
index 0000000..526f67c
--- /dev/null
+++ b/debian/libflatbuffers-java.manifest
@@ -0,0 +1,2 @@
+usr/share/java/flatbuffers-1.3.0.jar:
+ Debian-Java-Home: /usr/lib/jvm/default-java
diff --git a/debian/libjs-flatbuffers.install b/debian/libjs-flatbuffers.install
new file mode 100644
index 0000000..e2fe327
--- /dev/null
+++ b/debian/libjs-flatbuffers.install
@@ -0,0 +1,2 @@
+js/flatbuffers.js     usr/share/javascript/flatbuffers/
+js/flatbuffers.min.js usr/share/javascript/flatbuffers/
diff --git a/debian/patches/cmake_cxx_flags.diff b/debian/patches/cmake_cxx_flags.diff
new file mode 100644
index 0000000..a283a45
--- /dev/null
+++ b/debian/patches/cmake_cxx_flags.diff
@@ -0,0 +1,16 @@
+
+From: Jonathon Love <jon at thon.cc>
+Description: Removes the date-time error
+
+Index: flatbuffers/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -81,7 +81,7 @@
+     "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wall -pedantic -Werror -Wextra")
+ elseif(CMAKE_COMPILER_IS_GNUCXX)
+   set(CMAKE_CXX_FLAGS
+-    "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -pedantic -Werror -Wextra -Werror=shadow -Wunused-result -Werror=unused-result")
++    "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -pedantic -Werror -Wextra -Werror=shadow -Wunused-result -Werror=unused-result -Wno-error=date-time")
+ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
+   set(CMAKE_CXX_FLAGS
+       "${CMAKE_CXX_FLAGS} -std=c++0x -stdlib=libc++ -Wall -pedantic -Werror -Wextra")
diff --git a/debian/patches/fix-java-version.diff b/debian/patches/fix-java-version.diff
new file mode 100644
index 0000000..7695b4c
--- /dev/null
+++ b/debian/patches/fix-java-version.diff
@@ -0,0 +1,40 @@
+
+From: Jonathon Love <jon at thon.cc>
+Description: Changes the version in the POM to match the source version
+
+--- a/java/pom.xml
++++ b/java/pom.xml
+@@ -4,8 +4,8 @@
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>com.google.flatbuffers</groupId>
+-  <artifactId>flatbuffers-java</artifactId>
+-  <version>1.2.0-SNAPSHOT</version>
++  <artifactId>flatbuffers</artifactId>
++  <version>1.3.0</version>
+   <packaging>jar</packaging>
+   <name>FlatBuffers Java API</name>
+   <description>
+@@ -50,12 +50,11 @@
+             <include>**/*Test.java</include>
+           </includes>
+         </configuration>
+-        <version>2.18.1</version>
+       </plugin>
+       <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-source-plugin</artifactId>
+-        <version>2.3</version>
++        <version>2.4</version>
+         <executions>
+           <execution>
+             <id>attach-sources</id>
+@@ -68,7 +67,7 @@
+       <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-javadoc-plugin</artifactId>
+-        <version>2.9.1</version>
++        <version>2.10.3</version>
+         <executions>
+           <execution>
+             <id>attach-javadocs</id>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e1f41e5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+cmake_cxx_flags.diff
+fix-java-version.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4007aa4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+JAVA_HOME=/usr/lib/jvm/default-java
+
+%:
+	dh $@ --with javahelper
+
+override_dh_auto_build:
+	dh_auto_build
+	xmlto man debian/flatc.xml
+	mvn -o -f java/pom.xml -Dmaven.repo.local=/usr/share/maven-repo -Dmaven.test.skip=true package
+	uglifyjs -o js/flatbuffers.min.js js/flatbuffers.js
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f flatc.1
+	mvn -o -f java/pom.xml -Dmaven.repo.local=/usr/share/maven-repo clean
+	dh_clean js/flatbuffers.min.js
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5bea4b5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/flatbuffers-$1\.tar\.gz/ \
+  https://github.com/google/flatbuffers/releases .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/flatbuffers.git



More information about the debian-science-commits mailing list