File patterns-ha.spec of Package patterns-ha

#
# spec file for package patterns-ha
#
# Copyright (c) 2017 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-ha
BuildRequires:  package-translations
BuildRequires:  patterns-rpm-macros
BuildRequires:  perl(URI::Escape)
Summary:        Patterns for SLE HA
License:        MIT
Group:          Metapackages
Version:        15.1.0
Release:        0
Url:            http://en.opensuse.org/Patterns
Source0:        %{name}-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      patterns-openSUSE-dvd5 patterns-openSUSE-dvd9 patterns-openSUSE-cd patterns-openSUSE-addon-non-oss patterns-openSUSE-GNOME-cd patterns-openSUSE-KDE-cd

%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.

%{expand:%(perl /usr/share/package-translations/create_macros)}

%package ha_sles
%pattern_primaryfunctions
Summary:        High Availability
Group:          Metapackages
Provides:       pattern() = ha_sles
Provides:       pattern-icon() = pattern-server
Provides:       pattern-order() = 3000
Provides:       pattern-visible()
Recommends:     pattern() = yast2_basis
Requires:       conntrack-tools
Requires:       corosync
Requires:       crmsh
Requires:       csync2
Requires:       ctdb
Requires:       drbd
Requires:       drbd-utils
Requires:       fence-agents
Requires:       ha-cluster-bootstrap
Requires:       ha-cluster-webui
Requires:       ldirectord
Requires:       lvm2-lockd
Requires:       ocfs2-tools
Requires:       pacemaker
Requires:       python3-dateutil
Requires:       release-notes-ha
Requires:       resource-agents
Requires:       sbd
Requires:       yast2-cluster
Requires:       yast2-drbd
Requires:       yast2-iplb
Requires:       chrony
Recommends:     cluster-md-kmp-default

%description ha_sles
Provide tools to ensure a high degree of operational continuity and reduce the downtimes of your system.

%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-ha/
echo 'This file marks the pattern ha_sles to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-ha/ha_sles.txt

%files

%files ha_sles
%defattr(-,root,root)
%dir /usr/share/doc/packages/patterns-ha
/usr/share/doc/packages/patterns-ha/ha_sles.txt

%changelog
openSUSE Build Service is sponsored by