[mpi-defaults] 06/07: Add control.in and code to generate d/control out of the list of known architectures

Mattia Rizzolo mattia at debian.org
Tue Feb 16 18:20:26 UTC 2016


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

mattia pushed a commit to branch master
in repository mpi-defaults.

commit 4fa28c22bca0aeed959bdeca4ada4ec7514b4c4d
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Tue Feb 16 18:10:09 2016 +0000

    Add control.in and code to generate d/control out of the list of known architectures
---
 debian/control.in | 34 ++++++++++++++++++++++++++++++++++
 debian/rules      | 17 +++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..b9236f9
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,34 @@
+Source: mpi-defaults
+Section: devel
+Priority: extra
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: "Adam C. Powell, IV" <hazelsct at debian.org>, Manuel Prinz <manuel at debian.org>
+Standards-Version: 3.9.7
+Build-Depends: debhelper (>= 9),
+ libopenmpi-dev (>= 1.4.3-2.1) [%OPENMPI_ARCHITECTURES%],
+ openmpi-bin (>= 1.4.3-2.1) [%OPENMPI_ARCHITECTURES%],
+ libmpich-dev [%MPICH_ARCHITECTURES%],
+ mpich [%MPICH_ARCHITECTURES%]
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/mpi-defaults.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/mpi-defaults.git
+
+Package: mpi-default-dev
+Architecture: any
+Section: libdevel
+Depends: ${mpi-dev}, ${misc:Depends}
+Description: Standard MPI development files (metapackage)
+ This metapackage depends on the development files of the recommended MPI
+ implementation for each platform, currently Open MPI on all of the platforms
+ where it exists, and MPICH on the others. The package which this depends on
+ has alternatives links for the shared libraries libmpi and libmpi++, and for
+ compilers mpicc, mpic++/mpicxx/mpiCC, mpif77 and mpi90 and their manpages.
+
+Package: mpi-default-bin
+Architecture: any
+Section: net
+Depends: ${mpi}, ${misc:Depends}
+Description: Standard MPI runtime programs (metapackage)
+ This metapackage depends on the runtime programs of the recommended MPI
+ implementation for each platform, currently Open MPI on all of the platforms
+ where it exists, and MPICH on the others. The package which this depends on
+ has alternatives links for mpirun and mpiexec.
diff --git a/debian/rules b/debian/rules
index a7617fa..ce839c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -58,3 +58,20 @@ override_dh_gencontrol:
 
 override_dh_install:
 	dh_install -pmpi-default-dev $d usr/share/mpi-default-dev/
+
+override_dh_clean:
+	dh_clean
+	cp debian/control.in debian/control.tmp
+	@echo "Generating the control file..."
+	sed -i "s,%OPENMPI_ARCHITECTURES%,$(OPENMPI_ARCHITECTURES),g" debian/control.tmp
+	sed -i "s,%MPICH_ARCHITECTURES%,$(MPICH_ARCHITECTURES),g" debian/control.tmp
+	set -e ; if ! diff -q debian/control debian/control.tmp > /dev/null; then \
+		echo ;\
+		echo "The generated control file differs from the actual one." ;\
+		echo "A sourceful upload of this package is needed." ;\
+		echo ;\
+		echo "Differences:" ;\
+		diff -u debian/control debian/control.tmp ;\
+	else \
+		rm debian/control.tmp ;\
+	fi

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



More information about the debian-science-commits mailing list