diff options
-rw-r--r-- | debian/changelog | 27 | ||||
-rw-r--r-- | debian/control | 62 | ||||
-rw-r--r-- | debian/copyright | 37 | ||||
-rw-r--r-- | debian/gbp.conf | 2 | ||||
-rw-r--r-- | debian/libocplib-endian-ocaml-dev.docs | 1 | ||||
-rw-r--r-- | debian/libocplib-endian-ocaml-dev.install.in | 14 | ||||
-rw-r--r-- | debian/libocplib-endian-ocaml.install.in | 5 | ||||
-rwxr-xr-x | debian/rules | 23 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/upstream/metadata | 5 | ||||
-rw-r--r-- | debian/watch | 2 |
11 files changed, 179 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..bdd17ed --- /dev/null +++ b/debian/changelog @@ -0,0 +1,27 @@ +ocplib-endian (1.1-3) UNRELEASED; urgency=low + + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + + -- Debian Janitor <janitor@jelmer.uk> Thu, 27 Aug 2020 18:35:57 -0000 + +ocplib-endian (1.1-2) unstable; urgency=medium + + * Run tests only on native architectures + + -- Stéphane Glondu <glondu@debian.org> Fri, 07 Aug 2020 12:55:52 +0200 + +ocplib-endian (1.1-1) unstable; urgency=medium + + * New upstream release + * Bump debhelper compat level to 13 + * Bump Standards-Version to 4.5.0 + * Add Rules-Requires-Root: no + + -- Stéphane Glondu <glondu@debian.org> Thu, 06 Aug 2020 14:48:46 +0200 + +ocplib-endian (1.0-1) unstable; urgency=medium + + * Initial release (Closes: #940039) + + -- Stéphane Glondu <glondu@debian.org> Thu, 12 Sep 2019 15:54:38 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..cf05be2 --- /dev/null +++ b/debian/control @@ -0,0 +1,62 @@ +Source: ocplib-endian +Priority: optional +Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org> +Uploaders: + Stéphane Glondu <glondu@debian.org> +Build-Depends: + debhelper-compat (= 13), + ocaml-nox, + ocaml-dune, + cppo, + dh-ocaml +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Section: ocaml +Homepage: https://github.com/OCamlPro/ocplib-endian +Vcs-Git: https://salsa.debian.org/ocaml-team/ocplib-endian.git +Vcs-Browser: https://salsa.debian.org/ocaml-team/ocplib-endian + +Package: libocplib-endian-ocaml-dev +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Recommends: ocaml-findlib +Description: optimised functions to read and write int16/32/64 (development) + Optimised functions to read and write int16/32/64 from strings, bytes + and bigarrays, based on primitives added in version 4.01. + . + The library implements three modules: + * EndianString works directly on strings, and provides submodules + BigEndian and LittleEndian, with their unsafe counter-parts; + * EndianBytes works directly on bytes, and provides submodules + BigEndian and LittleEndian, with their unsafe counter-parts; + * EndianBigstring works on bigstrings (Bigarrays of chars), and + provides submodules BigEndian and LittleEndian, with their unsafe + counter-parts. + . + This package contains the development files. + +Package: libocplib-endian-ocaml +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Description: optimised functions to read and write int16/32/64 (runtime) + Optimised functions to read and write int16/32/64 from strings, bytes + and bigarrays, based on primitives added in version 4.01. + . + The library implements three modules: + * EndianString works directly on strings, and provides submodules + BigEndian and LittleEndian, with their unsafe counter-parts; + * EndianBytes works directly on bytes, and provides submodules + BigEndian and LittleEndian, with their unsafe counter-parts; + * EndianBigstring works on bigstrings (Bigarrays of chars), and + provides submodules BigEndian and LittleEndian, with their unsafe + counter-parts. + . + This package contains the runtime files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1610f26 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: © 2012-2014 OCamlPro +License: LGPL-2.2+-with-linking-exception + +Files: debian/* +Copyright: © 2019 Stéphane Glondu +License: LGPL-2.2+-with-linking-exception + +License: LGPL-2.2+-with-linking-exception + These files are distributed under the terms of the GNU Lesser General + Public License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version, + with the OCaml static compilation exception. + . + ocplib-endian is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + On Debian systems, the full text of the LGPL 2.1 can be found in + `/usr/share/common-licenses/LGPL-2.1'. + . + As a special exception to the GNU Library General Public License, you + may link, statically or dynamically, a "work that uses the Library" + with a publicly distributed version of the Library to produce an + executable file containing portions of the Library, and distribute + that executable file under terms of your choice, without any of the + additional requirements listed in clause 6 of the GNU Library General + Public License. By "a publicly distributed version of the Library", + we mean either the unmodified Library as distributed by upstream + author, or a modified version of the Library that is distributed + under the conditions defined in clause 3 of the GNU Library General + Public License. This exception does not however invalidate any other + reasons why the executable file might be covered by the GNU Library + General Public License. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/libocplib-endian-ocaml-dev.docs b/debian/libocplib-endian-ocaml-dev.docs new file mode 100644 index 0000000..44cf08d --- /dev/null +++ b/debian/libocplib-endian-ocaml-dev.docs @@ -0,0 +1 @@ +usr/doc/ocplib-endian/* diff --git a/debian/libocplib-endian-ocaml-dev.install.in b/debian/libocplib-endian-ocaml-dev.install.in new file mode 100644 index 0000000..aa4cada --- /dev/null +++ b/debian/libocplib-endian-ocaml-dev.install.in @@ -0,0 +1,14 @@ +@OCamlStdlibDir@/ocplib-endian/*opam* +@OCamlStdlibDir@/ocplib-endian/*dune* +@OCamlStdlibDir@/ocplib-endian/*.ml* +@OCamlStdlibDir@/ocplib-endian/*.cmi +@OCamlStdlibDir@/ocplib-endian/*.cmt* +OPT: @OCamlStdlibDir@/ocplib-endian/*.cmx +OPT: @OCamlStdlibDir@/ocplib-endian/*.cmxa +OPT: @OCamlStdlibDir@/ocplib-endian/*.a +@OCamlStdlibDir@/ocplib-endian/*/*.ml* +@OCamlStdlibDir@/ocplib-endian/*/*.cmi +@OCamlStdlibDir@/ocplib-endian/*/*.cmt* +OPT: @OCamlStdlibDir@/ocplib-endian/*/*.cmx +OPT: @OCamlStdlibDir@/ocplib-endian/*/*.cmxa +OPT: @OCamlStdlibDir@/ocplib-endian/*/*.a diff --git a/debian/libocplib-endian-ocaml.install.in b/debian/libocplib-endian-ocaml.install.in new file mode 100644 index 0000000..e8ab789 --- /dev/null +++ b/debian/libocplib-endian-ocaml.install.in @@ -0,0 +1,5 @@ +@OCamlStdlibDir@/ocplib-endian/META +@OCamlStdlibDir@/ocplib-endian/*.cma +DYN: @OCamlStdlibDir@/ocplib-endian/*.cmxs +@OCamlStdlibDir@/ocplib-endian/*/*.cma +DYN: @OCamlStdlibDir@/ocplib-endian/*/*.cmxs diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ef3411f --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/ocaml/ocamlvars.mk + +DESTDIR=$(CURDIR)/debian/tmp + +%: + dh $@ --with ocaml + +override_dh_auto_build: + dune build -p ocplib-endian + +override_dh_auto_install: + dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=..$(OCAML_STDLIB_DIR) + rm -f $(DESTDIR)/usr/doc/ocplib-endian/COPYING.txt + +override_dh_auto_test: +ifeq ($(OCAML_HAVE_OCAMLOPT),yes) + dh_auto_test +endif + +override_dh_dwz: 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..11e86e8 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/OCamlPro/ocplib-endian/issues +Bug-Submit: https://github.com/OCamlPro/ocplib-endian/issues/new +Repository: https://github.com/OCamlPro/ocplib-endian.git +Repository-Browse: https://github.com/OCamlPro/ocplib-endian diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..a62529a --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/OCamlPro/ocplib-endian/tags .*/([0-9.]+)\.tar\.gz |