[openems] 01/01: Added debian dir

Ruben Undheim rubund-guest at moszumanska.debian.org
Wed Jul 6 06:25:10 UTC 2016


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

rubund-guest pushed a commit to branch master
in repository openems.

commit 2c734be5cdd5179be78ebaa39af653c665859200
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Tue Jul 5 18:07:23 2016 +0200

    Added debian dir
---
 debian/changelog              |  5 +++++
 debian/compat                 |  1 +
 debian/control                | 44 +++++++++++++++++++++++++++++++++++++++++++
 debian/copyright              | 28 +++++++++++++++++++++++++++
 debian/gbp.conf               |  2 ++
 debian/libopenems-dev.install |  2 ++
 debian/libopenems0.install    |  1 +
 debian/octave-openems.install |  1 +
 debian/openems.install        |  1 +
 debian/rules                  | 37 ++++++++++++++++++++++++++++++++++++
 debian/source/format          |  1 +
 debian/watch                  |  3 +++
 12 files changed, 126 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..be2faff
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+openems (0.0.34-1) unstable; urgency=low
+
+  * Initial release (Closes: #XXXXXX)
+
+ -- Ruben Undheim <ruben.undheim at gmail.com>  Sat, 13 Dec 2014 12:38:34 +0100
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..5c0f8ff
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: openems
+Maintainer: Ruben Undheim <ruben.undheim at gmail.com>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cmake,
+               libhdf5-dev,
+               libvtk6-dev,
+               libboost-all-dev,
+               libcgal-dev,
+               libtinyxml-dev,
+               libqt4-dev,
+               libvtk6-qt-dev,
+               octave-pkg-dev
+Standards-Version: 3.9.6
+
+Package: openems
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         libopenems0
+Recommends: octave-openems
+Description: Electromagnetic simulator
+
+Package: libopenems0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: Libraries for openems
+
+Package: libopenems-dev
+Architecture: any
+Section: libdevel
+Depends: libopenems0
+Description: Development files for openems
+
+Package: octave-openems
+Architecture: all
+Depends:    openems,
+            octave,
+            epstool,
+            transfig
+Description: Octave interface for openems
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fadf1b5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: openEMS
+Source: 
+
+#Files: *
+#Copyright: 2014 Ruben Undheim <ruben.undheim at gmail.com>
+#License: GPL-3+
+#
+#Files: debian/*
+#Copyright: 2014-2015 Ruben Undheim <ruben.undheim at gmail.com>
+#License: GPL-3+
+#
+#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 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, see <http://www.gnu.org/licenses/>.
+# .
+# On Debian systems, the complete text of the GNU General
+# Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
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/libopenems-dev.install b/debian/libopenems-dev.install
new file mode 100644
index 0000000..b02ffd9
--- /dev/null
+++ b/debian/libopenems-dev.install
@@ -0,0 +1,2 @@
+usr/lib/*/lib*.so
+usr/include
diff --git a/debian/libopenems0.install b/debian/libopenems0.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libopenems0.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/octave-openems.install b/debian/octave-openems.install
new file mode 100644
index 0000000..1aa5c0e
--- /dev/null
+++ b/debian/octave-openems.install
@@ -0,0 +1 @@
+usr/share/
diff --git a/debian/openems.install b/debian/openems.install
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/openems.install
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4984079
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,37 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+
+override_dh_auto_build:
+
+override_dh_auto_install:
+	cd fparser && cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) . && make && make install DESTDIR=../debian/tmp
+	cd CSXCAD && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) . && make && make install DESTDIR=../debian/tmp
+	cd QCSXCAD && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DCSXCAD_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) . && make && make install DESTDIR=../debian/tmp
+	cd openEMS && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DCSXCAD_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) .
+	cd openEMS && make
+	cd openEMS && make install DESTDIR=../debian/tmp
+	cd AppCSXCAD && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DCSXCAD_ROOT_DIR=../debian/tmp/usr -DQCSXCAD_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) .
+	cd AppCSXCAD && make
+	cd AppCSXCAD && make install DESTDIR=../debian/tmp
+
+
+
+get-orig-source: $(info I: $(PKG)_$(VER))
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-version $(VER) $(PKD)
+
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..9e47b3b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="pgpsigurlmangle=s/\/mrtdreader\/archive\/(\d\S+)\.tar\.(bz2|gz|xz)$/\/mrtdreader\/releases\/download\/\1\/\1\.tar\.\2\.asc/" \
+https://github.com/rubund/mrtdreader/releases /rubund/mrtdreader/archive/(\d\S+)\.tar\.(?:bz2|gz|xz)

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



More information about the debian-science-commits mailing list