[exodus] 01/03: Re-add debian/

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Aug 28 10:16:43 UTC 2015


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

mckinstry pushed a commit to branch debian/experimental/6.09
in repository exodus.

commit bbb2e657ba4ca028e38cd17b37c265341ef7dcc4
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Mon May 4 12:44:39 2015 +0100

    Re-add debian/
---
 debian/changelog               | 36 ++++++++++++++++++++
 debian/compat                  |  1 +
 debian/control                 | 42 ++++++++++++++++++++++++
 debian/copyright               | 32 ++++++++++++++++++
 debian/libexodusii-dev.install |  4 +++
 debian/libexodusii5.postinst   |  4 +++
 debian/libexodusii5.postrm     |  4 +++
 debian/libnemesis3.postinst    |  4 +++
 debian/libnemesis3.postrm      |  4 +++
 debian/patches/series          |  2 ++
 debian/patches/soversion.patch | 44 +++++++++++++++++++++++++
 debian/rules                   | 74 ++++++++++++++++++++++++++++++++++++++++++
 debian/source/format           |  1 +
 debian/source/options          |  1 +
 14 files changed, 253 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..550bcdf
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,36 @@
+exodusii (6.09.dfsg.1-1) UNRELEASED; urgency=medium
+
+  * New upstream release.
+  * Standards-Version: 3.9.6
+  * Use 'xz' compression.
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Mon, 04 May 2015 12:21:48 +0100
+
+exodusii (6.02.dfsg.1-2) unstable; urgency=medium
+
+  * Add zlib1g-dev and libhdf5-dev to B-D. Closes: #732325. 
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Mon, 16 Dec 2013 17:38:24 +0000
+
+exodusii (6.02.dfsg.1-1) unstable; urgency=low
+
+  * New upstream release. Closes: #699919.
+  * Standards-Version: 3.9.5
+  * Move arch-dep files from M-A: same. Closes: #728781.
+  * Add CPPFLAGS to CFLAGS in rules to enable hardening.
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Sat, 14 Dec 2013 14:34:55 +0000
+
+exodusii (5.24.dfsg.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Standards-Version: 3.9.4
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Sun, 16 Jun 2013 12:33:49 +0100
+
+exodusii (5.14.dfsg.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #644586)
+  * DFSG version does not ship the PDFs.
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Thu, 13 Oct 2011 10:28:10 +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..5eaf04d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: exodusii
+Section: science
+Priority: optional
+Maintainer: Alastair McKinstry <mckinstry at debian.org>
+Build-Depends: debhelper (>= 9), cmake (>= 2.4.0), libnetcdf-dev, gfortran, chrpath, libhdf5-serial-dev, zlib1g-dev
+Standards-Version: 3.9.6
+Homepage: http://sourceforge.net/projects/exodusii/
+
+Package: libexodusii5
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: exodusII datamodel for finite element analysis 
+ EXODUS II is a model developed to store and retrieve transient data for
+ finite element analyses. It is used for preprocessing, postprocessing,
+ as well as code to code data transfer. ExodusII is based on netcdf.
+
+Package: libnemesis3
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, libexodusii5 (= ${binary:Version})
+Description: Parallel extension to the EXODUSII datamodel
+ NEMESIS is an enhancement to the EXODUSII finite element database
+ model used to store and retrieve data for unstructured parallel finite
+ element analyses. NEMESIS adds data structures which facilitate the
+ partitioning of a scalar (standard serial) EXODUSII file onto parallel
+ disk systems found on many parallel computers.
+
+Package:  libexodusii-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, libnetcdf-dev, libnemesis3 ( = ${binary:Version}), libexodusii5 (= ${binary:Version})
+Description: exodusII datamodel for finite element analysis
+ EXODUS II is a model developed to store and retrieve transient data for
+ finite element analyses. It is used for preprocessing, postprocessing, 
+ as well as code to code data transfer. ExodusII is based on netcdf.
+ It includes the nemesis parallel extension.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f11b681
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Copyright (c) 2005 Sandia Corporation. Under the terms of Contract
+DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement
+retains certain rights in this software.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.  
+
+    * Neither the name of Sandia Corporation nor the names of its
+      contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/libexodusii-dev.install b/debian/libexodusii-dev.install
new file mode 100644
index 0000000..e77d6c2
--- /dev/null
+++ b/debian/libexodusii-dev.install
@@ -0,0 +1,4 @@
+usr/include/exodusII.h  
+usr/include/exodusII_int.h
+nemesis/ne_nemesisI.h usr/include
+nemesis/ne_nemesisI_int.h /usr/include
diff --git a/debian/libexodusii5.postinst b/debian/libexodusii5.postinst
new file mode 100644
index 0000000..6060c4f
--- /dev/null
+++ b/debian/libexodusii5.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
diff --git a/debian/libexodusii5.postrm b/debian/libexodusii5.postrm
new file mode 100644
index 0000000..6060c4f
--- /dev/null
+++ b/debian/libexodusii5.postrm
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
diff --git a/debian/libnemesis3.postinst b/debian/libnemesis3.postinst
new file mode 100644
index 0000000..6060c4f
--- /dev/null
+++ b/debian/libnemesis3.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
diff --git a/debian/libnemesis3.postrm b/debian/libnemesis3.postrm
new file mode 100644
index 0000000..6060c4f
--- /dev/null
+++ b/debian/libnemesis3.postrm
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0f5df8f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+# security_warnings.patch
+soversion.patch
diff --git a/debian/patches/soversion.patch b/debian/patches/soversion.patch
new file mode 100644
index 0000000..b4e7e7b
--- /dev/null
+++ b/debian/patches/soversion.patch
@@ -0,0 +1,44 @@
+Author: Alastair mcKinstry <mckinstry at debian.org>
+Description: Add SOVERSION to the shared libraries. Needed for Debian.
+Forwarded: no
+Last-Updated: 2011-10-11
+
+Index: exodusii-6.02.dfsg.1/exodus/cbind/CMakeLists.txt
+===================================================================
+--- exodusii-6.02.dfsg.1.orig/exodus/cbind/CMakeLists.txt	2013-12-15 18:16:04.000000000 +0000
++++ exodusii-6.02.dfsg.1/exodus/cbind/CMakeLists.txt	2013-12-15 18:16:07.000000000 +0000
+@@ -284,6 +284,8 @@
+   set_target_properties(exoIIv2c PROPERTIES COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS)
+ ENDIF(MSVC)
+ 
++set_target_properties(exoIIv2c PROPERTIES VERSION 5.14.0 SOVERSION 5)
++
+ IF(EXODUS_LIBRARY_PROPERTIES)
+   SET_TARGET_PROPERTIES(exoIIv2c PROPERTIES ${EXODUS_LIBRARY_PROPERTIES})
+ ENDIF(EXODUS_LIBRARY_PROPERTIES)
+Index: exodusii-6.02.dfsg.1/nemesis/CMakeLists.txt
+===================================================================
+--- exodusii-6.02.dfsg.1.orig/nemesis/CMakeLists.txt	2013-12-15 18:16:04.000000000 +0000
++++ exodusii-6.02.dfsg.1/nemesis/CMakeLists.txt	2013-12-15 18:16:07.000000000 +0000
+@@ -74,6 +74,7 @@
+ 
+ ADD_LIBRARY(nemesis ${SOURCES})
+ TARGET_LINK_LIBRARIES(nemesis ${EXODUS_LIBRARY} ${NETCDF_LIBRARY} ${HDF5HL_LIBRARY} ${HDF5_LIBRARY} ${Z_LIBRARY} ${MATH_LIBRARY})
++set_target_properties(nemesis PROPERTIES VERSION 3.09.0 SOVERSION 3)
+ 
+ ADD_EXECUTABLE(ne_test ne_ctest_wrap.c)
+ TARGET_LINK_LIBRARIES( ne_test nemesis ${EXODUS_LIBRARY} ${NETCDF_LIBRARY} ${HDF5HL_LIBRARY} ${HDF5_LIBRARY} ${Z_LIBRARY} ${MATH_LIBRARY})
+Index: exodusii-6.02.dfsg.1/exodus/CMakeLists.txt
+===================================================================
+--- exodusii-6.02.dfsg.1.orig/exodus/CMakeLists.txt	2013-12-15 18:16:04.000000000 +0000
++++ exodusii-6.02.dfsg.1/exodus/CMakeLists.txt	2013-12-15 19:40:00.000000000 +0000
+@@ -7,7 +7,8 @@
+ SET(EXODUSII_VERSION "${EXODUSII_VERSION_MAJOR}.${EXODUSII_VERSION_MINOR}")
+ SET(EXODUSII_VERSION_FULL "${EXODUSII_VERSION}.${EXODUSII_VERSION_PATCH}")
+ 
+-OPTION(BUILD_SHARED "Build the exodus libraries shared." OFF)
++# OPTION(BUILD_SHARED "Build the exodus libraries shared." OFF)
++SET(BUILD_SHARED "${BUILD_SHARED_LIBS}")
+ 
+ IF(BUILD_SHARED)
+   SET(EXODUS_LIBRARY_TYPE SHARED)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..99a7116
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+
+# export DH_VERBOSE=1
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# Version numbers
+EX_SO_MAJOR=5
+EX_SO_MINOR=14
+EX_SO_PATCH=0
+EX_SONAME:=libexoIIv2c.so.$(EX_SO_MAJOR)
+EX_SONAME_FULL=$(EX_SONAME).$(EX_SO_MINOR).$(EX_SO_PATCH)
+NE_SO_MAJOR=3
+NE_SO_MINOR=09
+NE_SO_PATCH=0
+NE_SONAME=libnemesis.so.$(NE_SO_MAJOR)
+NE_SONAME_FULL=$(NE_SONAME).$(NE_SO_MINOR).$(NE_SO_PATCH)
+
+TOPDIR=$(shell pwd)
+PKGDIR=debian/libexodusii-dev
+PREFIX=$(TOPDIR)/debian/tmp/usr
+LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+
+# Magic debhelper rule
+%:
+	dh $@ --buildsystem cmake --sourcedirectory=exodus
+
+# Workaround to cmake ignoring CPPFLAGS; needed for hardening
+CFLAGS=$(shell  dpkg-buildflags --get CFLAGS) $(shell  dpkg-buildflags --get CPPFLAGS)
+LDFLAGS=$(shell  dpkg-buildflags --get LDFLAGS) 
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf *build exodusii
+
+override_dh_auto_build:
+	dh_auto_build
+	# Shared build.
+	mkdir -p exodus-shared-build
+	( cd exodus-shared-build && \
+		cmake ../exodus -DCMAKE_INSTALL_PREFIX=$(PREFIX)  \
+			-DBUILD_SHARED_LIBS=TRUE -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--as-needed"  && \
+		$(MAKE))
+	mkdir -p exodus-static-build
+	( cd exodus-static-build && \
+		cmake ../exodus -DCMAKE_INSTALL_PREFIX=$(PREFIX)  \
+			-DBUILD_SHARED_LIBS=FALSE && $(MAKE) )
+	# Then build nemesis
+	ln -sf exodus exodusii
+	mkdir -p nemesis-static-build
+	(cd nemesis-static-build && \
+		cmake ../nemesis -DEXODUS_LIBRARY=$(TOPDIR)/exodus-shared-build/cbind/$(EX_SONAME_FULL)  && \
+		$(MAKE))
+	mkdir -p nemesis-shared-build
+	( cd nemesis-shared-build && \
+		cmake ../nemesis  -DEXODUS_LIBRARY=$(TOPDIR)/exodus-shared-build/cbind/$(EX_SONAME_FULL) \
+			 -DBUILD_SHARED_LIBS=TRUE -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--as-needed" && \
+		$(MAKE) )	
+
+override_dh_auto_install:
+	$(MAKE) -C exodus-shared-build install
+	dh_auto_install
+	dh_install -p libexodusii-dev nemesis-static-build/libnemesis.a $(LIBDIR)
+	dh_install -p libexodusii-dev usr/lib/libexoIIv2c.a $(LIBDIR)
+	dh_install -p libexodusii-dev usr/lib/libexoIIv2for.a $(LIBDIR)
+	dh_install -p libexodusii5  exodus-shared-build/cbind/$(EX_SONAME_FULL) $(LIBDIR)
+	dh_install -p libnemesis3  nemesis-shared-build/$(NE_SONAME_FULL) $(LIBDIR)
+	chrpath -d debian/libnemesis3/$(LIBDIR)/$(NE_SONAME_FULL)
+	dh_link -p libexodusii5 $(LIBDIR)/$(EX_SONAME_FULL) $(LIBDIR)/$(EX_SONAME).$(EX_SO_MINOR)
+	dh_link -p libexodusii5 $(LIBDIR)/$(EX_SONAME_FULL) $(LIBDIR)/$(EX_SONAME)
+	dh_link -p libnemesis3  $(LIBDIR)/$(NE_SONAME_FULL) $(LIBDIR)/$(NE_SONAME).$(NE_SO_MINOR)
+	dh_link -p libnemesis3  $(LIBDIR)/$(NE_SONAME_FULL) $(LIBDIR)/$(NE_SONAME)
+	dh_link -p libexodusii-dev $(LIBDIR)/$(EX_SONAME_FULL) $(LIBDIR)/libexoIIv2.so
+	dh_link -p libexodusii-dev $(LIBDIR)/$(NE_SONAME_FULL) $(LIBDIR)/libnemesis.so
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/source/options b/debian/source/options
new file mode 100644
index 0000000..b7bc1f2
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+compression = "xz"

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



More information about the debian-science-commits mailing list