Skip to content
Snippets Groups Projects
Verified Commit 4fa28c22 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Add control.in and code to generate d/control out of the list of known architectures

parent 07ef8a62
No related branches found
No related tags found
No related merge requests found
Source: mpi-defaults
Section: devel
Priority: extra
Maintainer: Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Uploaders: "Adam C. Powell, IV" <hazelsct@debian.org>, Manuel Prinz <manuel@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.
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment