forked from pool/patterns-hpc
Christian Goll
9e570a17e6
- added sudo to the hpc_compute_node pattern (bsc#1087938) - added slurm-node as recommends to the hpc_compute_node (bsc#1087940) - added ypbind to the hpc_compute_node pattern (bsc#1087935) - replaced explcit requires with the pattern devel_basis OBS-URL: https://build.opensuse.org/request/show/593436 OBS-URL: https://build.opensuse.org/package/show/science:HPC/patterns-hpc?expand=0&rev=25
147 lines
4.9 KiB
RPMSpec
147 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package patterns-hpc
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: patterns-hpc
|
|
Version: 20180226
|
|
Release: 0
|
|
Summary: Source Package for HPC Patterns
|
|
License: MIT
|
|
Group: Metapackages
|
|
Url: https://github.com/openSUSE/patterns
|
|
Source0: %{name}-rpmlintrc
|
|
Source1: library-inc.txt
|
|
Source2: devel-inc.txt
|
|
BuildRequires: patterns-rpm-macros
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
%description
|
|
This is an internal package that is used to create the patterns as part of
|
|
the installation source setup. Installation of this package does not make
|
|
sense.
|
|
This particular package contains all the HPC related patterns.
|
|
|
|
################################################################################
|
|
|
|
%package compute_node
|
|
%pattern_serverfunctions
|
|
Summary: HPC Basic Compute Node
|
|
Group: Metapackages
|
|
Provides: pattern() = hpc_compute_node
|
|
Provides: pattern-icon() = pattern-generic
|
|
Provides: pattern-visible()
|
|
|
|
Requires: nfs-client
|
|
Requires: openssh
|
|
Requires: sudo
|
|
|
|
Recommends: vim
|
|
Recommends: salt-minion
|
|
Recommends: slurm-node
|
|
Recommends: ypbind
|
|
Recommends: rsync
|
|
Recommends: wget
|
|
Recommends: ntp
|
|
Recommends: less
|
|
Recommends: pdsh
|
|
Recommends: mrsh
|
|
%if 0%{?is_opensuse}
|
|
Recommends: nss_ldap
|
|
%endif
|
|
# python 2.7 deps
|
|
Recommends: ganglia-gmond
|
|
Recommends: genders
|
|
Recommends: perl-genders
|
|
|
|
%description compute_node
|
|
A compute node has a minimal software image and mainly runs simulation programs. Services on this node should be reduced to a bare minimum and the node *must* be installed in a automatic manner.
|
|
The pattern HPC libraries should also be installed.
|
|
|
|
%files compute_node
|
|
%dir %{_defaultdocdir}/patterns
|
|
%{_defaultdocdir}/patterns/patterns-hpc-compute_node.txt
|
|
|
|
################################################################################
|
|
|
|
%package libraries
|
|
%pattern_serverfunctions
|
|
Summary: HPC modularized Libraries
|
|
Group: Metapackages
|
|
Provides: pattern() = hpc_libraries
|
|
Provides: pattern-icon() = pattern-generic
|
|
Provides: pattern-order() = 2030
|
|
Provides: pattern-visible()
|
|
Requires: pattern() = hpc_compute_node
|
|
|
|
Requires: lua-lmod
|
|
%include %{SOURCE1}
|
|
|
|
%description libraries
|
|
This package provides all the modularized libraries so that they can be used in an HPC environment. Especially these libraries allows you to install several MPI flavors in parallel.
|
|
In order to use this libraries you have them to load first via the module command.
|
|
|
|
%files libraries
|
|
%dir %{_defaultdocdir}/patterns
|
|
%{_defaultdocdir}/patterns/patterns-hpc-libraries.txt
|
|
|
|
################################################################################
|
|
%package development_node
|
|
%pattern_development
|
|
Summary: HPC Development Packages
|
|
Group: Metapackages
|
|
Provides: pattern() = hpc_development_node
|
|
Provides: pattern-icon() = pattern-basis-devel
|
|
Provides: pattern-order() = 2040
|
|
Provides: pattern-visible()
|
|
Requires: pattern() = hpc_compute_node
|
|
Requires: pattern() = hpc_libraries
|
|
%if 0%{?is_opensuse}
|
|
Requires: pattern() = devel_C_C++
|
|
Requires: pattern() = devel_basis
|
|
Requires: pattern() = devel_perl
|
|
Requires: pattern() = devel_python3
|
|
%else
|
|
Requires: pattern() = devel_basis
|
|
Recommends: python3
|
|
Recommends: python3-devel
|
|
%endif
|
|
Requires: gnu-compilers-hpc-devel
|
|
Requires: lua-lmod
|
|
%include %{SOURCE2}
|
|
|
|
%description development_node
|
|
This package provides all the relevant packages for developing HPC applications.
|
|
It depends on the HPC libraries and adds additionally the compilers and includes also the relevant management packages.
|
|
|
|
%files development_node
|
|
%dir %{_defaultdocdir}/patterns
|
|
%{_defaultdocdir}/patterns/patterns-hpc-development_node.txt
|
|
|
|
%prep
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p "%{buildroot}%{_defaultdocdir}/patterns"
|
|
for pack in patterns-hpc-compute_node patterns-hpc-libraries patterns-hpc-development_node; do
|
|
echo "This file marks the pattern $pack in version %{version} to be installed." \
|
|
>"%{buildroot}%{_defaultdocdir}/patterns/${pack}.txt"
|
|
done
|
|
|
|
%changelog
|