patterns-sles/patterns-sles.spec

104 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package patterns-sles
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%bcond_with betatest
%define all_patterns ha minimal_sap
Name: patterns-sles
Version: 16.0
Release: 0
Summary: Patterns for SUSE Linux Enterprise Server
License: MIT
Group: Metapackages
URL: http://en.opensuse.org/Patterns
Source0: %name.rpmlintrc
ExclusiveArch: x86_64 %arm32 aarch64 ppc64le s390x riscv64
%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.
##############################
# ha
##############################
%package ha
#%pattern_basetechnologies
Summary: High Availability System
Group: Metapackages
Provides: pattern() = sles_ha
Provides: pattern-category() = SLFO
Requires: pacemaker
%description ha
...
##############################
# minimal_sap
##############################
%package minimal_sap
#%pattern_basetechnologies
Summary: SAP Application Server Base
Group: Metapackages
Provides: pattern() = sles_minimal_sap
Provides: pattern-category() = SLFO
Provides: pattern-icon() = pattern-generic
Provides: pattern-order() = 3110
Provides: pattern-visible()
Requires: pattern() = enhanced_base
Requires: systemd-presets-branding-SLE-SAP
# shell for user <sid>adm
Requires: tcsh
# SAP-Note 1391070
Requires: uuidd
Requires: sysstat
Requires: sysctl-logger
Requires: util-linux
Requires: util-linux-systemd
Requires: supportutils
Requires: bpftool
Requires: saptune
ExclusiveArch: x86_64 ppc64le
%description minimal_sap
Set up the server for installing SAP systems.
%prep
# empty on purpose
%build
# empty on purpose
%install
mkdir -p %{buildroot}%{_docdir}/patterns-sles/
for i in %all_patterns; do
echo "This file marks the pattern $i to be installed." \
> %{buildroot}%{_docdir}/patterns-sles/${i}.txt
done
%files ha
%dir %{_docdir}/patterns-sles
%{_docdir}/patterns-sles/ha.txt
%files minimal_sap
%dir %{_docdir}/patterns-sles
%{_docdir}/patterns-sles/minimal_sap.txt
%changelog