[segyio] 376/376: Initial debian packaging

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:05:01 UTC 2017


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

jokva-guest pushed a commit to branch debian
in repository segyio.

commit ce5d2998f7271adadb014a6e8657c54c0c915e8e
Author: Jørgen Kvalsvik <jokva at statiol.com>
Date:   Wed Sep 20 10:02:03 2017 +0200

    Initial debian packaging
---
 debian/changelog              |  5 ++++
 debian/compat                 |  1 +
 debian/control                | 63 +++++++++++++++++++++++++++++++++++++++++++
 debian/copyright              | 23 ++++++++++++++++
 debian/libsegyio-dev.install  |  4 +++
 debian/libsegyio1.install     |  1 +
 debian/python3-segyio.install |  2 ++
 debian/rules                  | 17 ++++++++++++
 debian/segyio-bin.install     |  4 +++
 debian/segyio-bin.manpages    |  4 +++
 debian/source/format          |  1 +
 debian/tests/control          |  2 ++
 debian/tests/link-with-shared |  9 +++++++
 debian/watch                  |  3 +++
 14 files changed, 139 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3a4596a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+segyio (1.3.3-2) unstable; urgency=medium
+
+  * Initial release (Closes: #864710)
+
+ -- Jørgen Kvalsvik <jokva at statoil.com>  Tue, 19 Sep 2017 23:53:19 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e7f817f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,63 @@
+Source: segyio
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jørgen Kvalsvik <jokva at statoil.com>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               cmake,
+               dh-python,
+               python3 (>= 3.4),
+               python3-all-dev,
+               python3-numpy
+Standards-Version: 3.9.8
+Vcs-git: https://anonscm.debian.org/git/debian-science/packages/segyio.git
+Vcs-browser: https://anonscm.debian.org/cgit/debian-science/packages/segyio.git
+Homepage: https://github.com/statoil/segyio
+X-Python3-Version: >= 3.4
+
+Package: libsegyio1
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: SEG-Y read/write library for seismic processing (runtime)
+ segyio is a fast and practical library for reading and writing seismic data in
+ SEG-Y format. segyio is random access oriented for modern computers with
+ simple read/write primitives on lines.
+
+Package: libsegyio-dev
+Architecture: any
+Section: libdevel
+Depends: libsegyio1 (= ${binary:Version}),
+         ${misc:Depends}
+Description: SEG-Y read/write library for seismic processing (development)
+ segyio is a fast and practical library for reading and writing seismic data in
+ SEG-Y format. segyio is random access oriented for modern computers with
+ simple read/write primitives on lines.
+ .
+ This package includes the header files and the static library.
+
+Package: segyio-bin
+Architecture: any
+Depends: libsegyio1 (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: SEG-Y read/write library for seismic processing (shell utilities)
+ segyio is a fast and practical library for reading and writing seismic data in
+ SEG-Y format. segyio is random access oriented for modern computers with
+ simple read/write primitives on lines.
+ .
+ This package contains useful shell programs.
+
+Package: python3-segyio
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends},
+         ${python3:Depends},
+         ${misc:Depends}
+Description: SEG-Y read/write library for seismic processing (python3 bindings)
+ segyio is a fast and practical library for reading and writing seismic data in
+ SEG-Y format. segyio is random access oriented for modern computers simple
+ read/write primitives on lines.
+ .
+ This package contain the python3 interface.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7acff8b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,23 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: segyio
+Source: https://github.com/statoil/segyio
+
+Files: *
+Copyright: 2016 Statoil ASA <fg_gpl at statoil.com>
+License: LGPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program 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.
+ .
+ You should have received a copy of the GNU General Public License along with
+ this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
+ St, Fifth Floor, Boston, MA, 02110-1301 USA
+ .
+ On Debian systems, the full text of the LGPL v3 can be found in
+ /usr/share/common-licenses/LGPL-3.
diff --git a/debian/libsegyio-dev.install b/debian/libsegyio-dev.install
new file mode 100644
index 0000000..31b39d9
--- /dev/null
+++ b/debian/libsegyio-dev.install
@@ -0,0 +1,4 @@
+usr/lib/*/libsegyio.a
+usr/lib/*/libsegyio.so
+usr/include/segyio/segy.h
+usr/share/segyio/cmake/segyio-config.cmake
diff --git a/debian/libsegyio1.install b/debian/libsegyio1.install
new file mode 100644
index 0000000..a78ced0
--- /dev/null
+++ b/debian/libsegyio1.install
@@ -0,0 +1 @@
+usr/lib/*/libsegyio.so.*
diff --git a/debian/python3-segyio.install b/debian/python3-segyio.install
new file mode 100644
index 0000000..b8406be
--- /dev/null
+++ b/debian/python3-segyio.install
@@ -0,0 +1,2 @@
+usr/lib/python3.*/dist-packages/segyio/*.py
+usr/lib/python3.*/dist-packages/segyio/*.so
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d131aca
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+DEB_MAINT_BUILD_OPTIONS := hardening=+all
+DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+export PYBUILD_SYSTEM=cmake
+
+%:
+	dh $@ --buildsystem=pybuild --with python3
+
+override_dh_auto_configure:
+	dh_auto_configure -- --configure-args="-DBUILD_SHARED_LIBS=ON"
+
+override_dh_missing:
+	dh_missing --list-missing
diff --git a/debian/segyio-bin.install b/debian/segyio-bin.install
new file mode 100644
index 0000000..413cec8
--- /dev/null
+++ b/debian/segyio-bin.install
@@ -0,0 +1,4 @@
+usr/bin/segyio-cath
+usr/bin/segyio-catb
+usr/bin/segyio-catr
+usr/bin/segyio-crop
diff --git a/debian/segyio-bin.manpages b/debian/segyio-bin.manpages
new file mode 100644
index 0000000..7e99361
--- /dev/null
+++ b/debian/segyio-bin.manpages
@@ -0,0 +1,4 @@
+man/segyio-catb.1
+man/segyio-cath.1
+man/segyio-catr.1
+man/segyio-crop.1
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..ba7d7a7
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: link-with-shared
+Depends: @, gcc
diff --git a/debian/tests/link-with-shared b/debian/tests/link-with-shared
new file mode 100755
index 0000000..5e3e0d9
--- /dev/null
+++ b/debian/tests/link-with-shared
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+set -C -e -f -u
+cp applications/segyinfo.c "$ADTTMP"/
+cp test-data/small.sgy "$ADTTMP"/
+cd "$ADTTMP"
+
+gcc -Dsegyio_MAJOR=0 -Dsegyio_MINOR=0 segyinfo.c -lsegyio
+./a.out small.sgy
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..6855acf
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+https://github.com/statoil/segyio/releases \
+.*/segyio- at ANY_VERSION@@ARCHIVE_EXT@

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



More information about the debian-science-commits mailing list