[flexpart] 02/26: Initial checkin of Debian

Alastair McKinstry mckinstry at moszumanska.debian.org
Thu Aug 27 12:42:13 UTC 2015


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

mckinstry pushed a commit to tag debian/9.02-10
in repository flexpart.

commit b77866f44e8a55da8f1e4e5dcf6e6ef54096efdb
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Mon Sep 23 12:46:18 2013 +0100

    Initial checkin of Debian
---
 debian/changelog             |  5 +++
 debian/compat                |  1 +
 debian/control               | 18 +++++++++
 debian/copyright             | 22 +++++++++++
 debian/flexpart.examples     |  1 +
 debian/flexpart.install      |  2 +
 debian/flexpart.postinst     | 24 ++++++++++++
 debian/flextra.examples      |  1 +
 debian/patches/fortran.patch | 90 ++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 debian/rules                 | 20 ++++++++++
 debian/source/format         |  1 +
 debian/watch                 |  2 +
 13 files changed, 188 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c829777
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+flexpart (9.02-1) unstable; urgency=low
+
+  * Initial release. (Closes: #693833)
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Sun, 22 Sep 2013 21:08:25 +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..3b3fdb0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: flexpart
+Section: utils
+Priority: optional
+Maintainer: Alastair McKinstry <mckinstry at debian.org>
+Build-Depends: debhelper (>= 9), gfortran
+Standards-Version: 3.9.4
+Homepage: http://transport.nil.no/flexpart
+
+Package: flexpart
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Particle Dispersion model for tracing air transport phenomena
+ The FLEXPART model is a Lagrangian Particle Dispersion Model
+ developed at the Norwegian Institute for Air Research in the 
+ Department of Atmospheric and Climate Research. 
+ The model development team consists of Andreas Stohl 
+ (who originally wrote FLEXPART), Sabine Eckhardt, 
+ Harald Sodemann, and John Burkhart. 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2e785e1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+
+Copyright 1998-2010 Andreas Stohl <ast at nilu.no>
+
+Authors:
+Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa,
+Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann
+
+ FLEXPART 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.
+
+ FLEXPART 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 GNU GPLv3 is available at /usr/share/common-licenses/GPL-3
+
+The file convect4c.f90 was written by  Kerry Emanuel  and downloaded from:
+http://www-paoc.mit.edu/~emanuel/home.html
+
diff --git a/debian/flexpart.examples b/debian/flexpart.examples
new file mode 100644
index 0000000..f0ca805
--- /dev/null
+++ b/debian/flexpart.examples
@@ -0,0 +1 @@
+options/*
diff --git a/debian/flexpart.install b/debian/flexpart.install
new file mode 100644
index 0000000..fc83083
--- /dev/null
+++ b/debian/flexpart.install
@@ -0,0 +1,2 @@
+flexpart.ecmwf /usr/bin
+flexpart.gfs /usr/bin
diff --git a/debian/flexpart.postinst b/debian/flexpart.postinst
new file mode 100644
index 0000000..13bdc3f
--- /dev/null
+++ b/debian/flexpart.postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+    configure|abort-remove|abort-deconfigure)
+        # Install alternatives
+        update-alternatives --install /usr/bin/flexpart flexpart /usr/bin/flexpart.ecmwf 20
+        update-alternatives --auto flexpart
+        ;;
+    abort-upgrade)
+        # Nothing to undo
+        :;
+        ;;
+
+    *)
+        echo "$0: Undocumented call: \"$@\"" >&2
+        exit 1
+        ;;
+esac
+
+
diff --git a/debian/flextra.examples b/debian/flextra.examples
new file mode 100644
index 0000000..55bdd06
--- /dev/null
+++ b/debian/flextra.examples
@@ -0,0 +1 @@
+options
diff --git a/debian/patches/fortran.patch b/debian/patches/fortran.patch
new file mode 100644
index 0000000..89b471f
--- /dev/null
+++ b/debian/patches/fortran.patch
@@ -0,0 +1,90 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: Makefile changes needed for Debian
+Last-Updated: 2013-07-07
+Forwarded: not-needed
+
+Index: flexpart-90.02/makefile.gfs_gfortran
+===================================================================
+--- flexpart-90.02.orig/makefile.gfs_gfortran	2013-09-22 12:16:47.000000000 +0100
++++ flexpart-90.02/makefile.gfs_gfortran	2013-09-22 12:16:47.000000000 +0100
+@@ -1,14 +1,14 @@
+ SHELL = /bin/bash
+-MAIN = FLEXPART_GFS_GFORTRAN
++MAIN = flexpart.gfs
+ INCF	= incl* 
+ #
+ 
+ FC       = gfortran
+-INCPATH  = /xnilu_wrk/flex_wrk/bin64/grib_api/include
+-LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
+-LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/
+-FFLAGS   =   -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
+-LDFLAGS  = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
++INCPATH  = /usr/include
++LIBPATH1 = /usr/lib
++LIBPATH2 = 
++FFLAGS   = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) 
++LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed  -lgrib_api_f90 -lgrib_api -lm -ljasper
+ #
+ 
+ MODOBJS = \
+@@ -78,7 +78,7 @@
+ 
+ 
+ $(MAIN): $(MODOBJS) $(OBJECTS)
+-	$(FC) *.o -o $(MAIN) $(LDFLAGS)
++	$(FC) *.o -o $(MAIN) $(LFLAGS)
+ 
+ $(OBJECTS): $(MODOBJS)
+ 
+@@ -86,5 +86,5 @@
+ 	$(FC) -c $(FFLAGS) $<
+ 
+ clean:
+-	rm *.o *.mod
++	rm -f *.o *.mod $(MAIN)
+ 
+Index: flexpart-90.02/makefile.ecmwf_gfortran
+===================================================================
+--- flexpart-90.02.orig/makefile.ecmwf_gfortran	2011-12-16 10:26:06.000000000 +0000
++++ flexpart-90.02/makefile.ecmwf_gfortran	2013-09-23 12:16:32.000000000 +0100
+@@ -1,15 +1,14 @@
+ SHELL = /bin/bash
+-MAIN = FLEXPART_GFORTRAN
++MAIN = flexpart.ecmwf
+ #
+ 
+ FC       = gfortran
+-INCPATH  = /xnilu_wrk/flex_wrk/bin64/grib_api/include
+-LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib
+-LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/
+-#FFLAGS   =   -O3 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
+-FFLAGS   =   -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
+-#FFLAGS   =   -fbounds-check -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)
+-LDFLAGS  = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
++INCPATH  = /usr/include
++LIBPATH1 = /usr/lib
++LIBPATH2 = 
++FFLAGS   = -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) 
++LFLAGS  = $(LDFLAGS) $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper
++MODPATH = /usr/include
+ #
+ 
+ MODOBJS = \
+@@ -79,13 +78,13 @@
+ 
+ 
+ $(MAIN): $(MODOBJS) $(OBJECTS)
+-	$(FC) *.o -o $(MAIN) $(LDFLAGS)
++	$(FC) *.o -o $(MAIN) $(LFLAGS)
+ 
+ $(OBJECTS): $(MODOBJS)
+ 
+ %.o: %.f90
+-	$(FC) -c $(FFLAGS) $<
++	$(FC) -c $(FFLAGS) -I$(MODPATH) $<
+ 
+ clean:
+-	rm *.o *.mod
++	rm -f *.o *.mod
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0cd92db
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fortran.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..191dd1b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+
+# magic debhelper rule
+%:
+	dh $@
+
+override_dh_auto_build:
+	$(MAKE) -f makefile.gfs_gfortran LDFLAGS=$(LDFLAGS)
+	rm -f *.o *.mod
+	$(MAKE) -f makefile.ecmwf_gfortran LDFLAGS=$(LDFLAGS)
+
+override_dh_auto_clean:
+	$(MAKE) -f makefile.gfs_gfortran clean
+	$(MAKE) -f makefile.ecmwf_gfortran clean
+	rm -f *.mod erf.f90.185r.combine flexpart.gfs flexpart.ecmwf
+
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..239028c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://zardoz.nilu.no/~flexpart/flexpart/FLEXPART_(\d)0.(\d+).tar.gz

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



More information about the debian-science-commits mailing list