From 5a9347ff1aad28e12a327c8d1916f73181a50647 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 22 Oct 2013 13:01:41 +0200 Subject: [PATCH] add debian packaging --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 53 +++++++++++++++++++++++++++++ debian/copyright | 13 +++++++ debian/docs | 1 + debian/libopm-autodiff1-bin.install | 1 + debian/libopm-autodiff1-dev.install | 5 +++ debian/libopm-autodiff1-doc.install | 1 + debian/libopm-autodiff1.install | 1 + debian/rules | 29 ++++++++++++++++ debian/source/format | 1 + 11 files changed, 111 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/libopm-autodiff1-bin.install create mode 100644 debian/libopm-autodiff1-dev.install create mode 100644 debian/libopm-autodiff1-doc.install create mode 100644 debian/libopm-autodiff1.install create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..efb06a623 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +opm-autodiff (2013.10-2~precise) precise; urgency=low + + * New release + + -- Arne Morten Kvarving Mon, 14 Oct 2013 11:54:10 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..4c5fb10e6 --- /dev/null +++ b/debian/control @@ -0,0 +1,53 @@ +Source: opm-autodiff +Priority: extra +Maintainer: Arne Morten Kvarving +Build-Depends: build-essential, debhelper (>= 9), libboost-filesystem-dev, + libboost-system-dev, libboost-date-time-dev, libboost-test-dev, + libsuperlu3-dev, gfortran, libsuitesparse-dev, pkg-config, + libdune-common-dev, libdune-istl-dev, cmake, libtinyxml-dev, bc, + libert.ecl-dev, git, zlib1g-dev, libtool, doxygen, + texlive-latex-extra, texlive-latex-recommended, ghostscript, + libopm-core-dev, libeigen3-dev (>= 3.1.3) +Standards-Version: 3.9.2 +Section: libs +Homepage: http://opm-project.org +Vcs-Git: git://github.com/OPM/opm-autodiff.git +Vcs-Browser: https://github.com/OPM/opm-autodiff + +Package: libopm-autodiff1-dev +Section: libdevel +Architecture: any +Multi-Arch: foreign +Depends: libopm-autodiff1 (= ${binary:Version}) +Provides: libopm-autodiff-dev +Suggests: libopm-autodiff1-doc +Description: OPM auto differentation library -- development files + Utilities for automatic differentiation and simulators based on AD. + +Package: libopm-autodiff1 +Section: libs +Pre-Depends: ${misc:Pre-Depends}, multiarch-support +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: libopm-autodiff +Description: OPM auto differentation library + Utilities for automatic differentiation and simulators based on AD. + +Package: libopm-autodiff1-bin +Section: science +Pre-Depends: ${misc:Pre-Depends}, multiarch-support +Architecture: any +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: libopm-autodiff-bin +Description: OPM auto differentation library -- applications + Utilities for automatic differentiation and simulators based on AD. + +Package: libopm-autodiff1-doc +Section: doc +Architecture: all +Multi-Arch: foreign +Provides: libopm-autodiff-doc +Description: OPM auto differentation library -- documentation + Utilities for automatic differentiation and simulators based on AD. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..00e820065 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +License: GPL-3+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This package 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, see diff --git a/debian/docs b/debian/docs new file mode 100644 index 000000000..b43bf86b5 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/libopm-autodiff1-bin.install b/debian/libopm-autodiff1-bin.install new file mode 100644 index 000000000..1df36c612 --- /dev/null +++ b/debian/libopm-autodiff1-bin.install @@ -0,0 +1 @@ +usr/bin/* diff --git a/debian/libopm-autodiff1-dev.install b/debian/libopm-autodiff1-dev.install new file mode 100644 index 000000000..fb4c3a460 --- /dev/null +++ b/debian/libopm-autodiff1-dev.install @@ -0,0 +1,5 @@ +usr/include/* +usr/lib/*/lib*.so +usr/lib/dunecontrol/* +usr/lib/*/pkgconfig/* +usr/share/cmake/* diff --git a/debian/libopm-autodiff1-doc.install b/debian/libopm-autodiff1-doc.install new file mode 100644 index 000000000..d9d4f6f8a --- /dev/null +++ b/debian/libopm-autodiff1-doc.install @@ -0,0 +1 @@ +usr/share/doc/* diff --git a/debian/libopm-autodiff1.install b/debian/libopm-autodiff1.install new file mode 100644 index 000000000..3ddde5841 --- /dev/null +++ b/debian/libopm-autodiff1.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..d1e354a0f --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_clean: + dh_auto_clean --buildsystem=cmake + +override_dh_auto_build: + dh_auto_build --buildsystem=cmake + +# consider using -DUSE_VERSIONED_DIR=ON if backporting +override_dh_auto_configure: + dh_auto_configure --buildsystem=cmake -- -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_DOCDIR=share/doc/libopm-autodiff1 -DWHOLE_PROG_OPTIM=OFF -DUSE_RUNPATH=OFF + +override_dh_auto_install: + dh_auto_install -- install-html + +override_dh_installdocs: + dh_installdocs --link-doc=libopm-autodiff1 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..d3827e75a --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0