File patterns-uyuni.spec of Package patterns-uyuni

#
# spec file for package patterns-uyuni
#
# Copyright (c) 2021 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/
#

%global debug_package %{nil}

Name:           patterns-uyuni
# Macros are not part of package-translations for SLE15
%if 0%{?suse_version} > 1320
BuildRequires:  patterns-rpm-macros
%else
BuildRequires:  package-translations
%endif
BuildRequires:  perl(URI::Escape)
Summary:        Patterns for Uyuni
License:        GPL-2.0+
Group:          Metapackages
Version:        2021.09
Release:        0
URL:            http://en.opensuse.org/Patterns
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-rpmlintrc

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

# Macros are provided patterns-rpm-macros for SLE15
%if 0%{?suse_version} <= 1320
%{expand:%(perl /usr/share/package-translations/create_macros)}
%endif

%package -n patterns-uyuni_server
%pattern_primaryfunctions
Summary:        Uyuni Server
Group:          Metapackages
Provides:       pattern() = uyuni_server
Provides:       pattern-icon() = pattern-generic
Provides:       pattern-order() = 3010
Provides:       pattern-visible()

Requires:       salt-api
Requires:       salt-master
Requires:       python3-ws4py
Requires:       py26-compat-salt
Requires:       py27-compat-salt

Requires:       mgr-osa-dispatcher
Requires:       release-notes-uyuni
Requires:       spacewalk-base-minimal
Requires:       smdba
Requires:       spacewalk-postgresql
Requires:       spacewalk-reports
Requires:       spacewalk-utils
Requires:       supportutils-plugin-susemanager
Requires:       susemanager
Requires:       uyuni-docs_en
Requires:       uyuni-docs_en-pdf
Requires:       Uyuni-Server-release
Requires:       susemanager-tools
Requires:       postgresql-server >= 12
Requires:       postgresql-contrib >= 12

%ifarch %ix86 x86_64
Requires:       syslinux
%else
Requires:       syslinux-x86_64
%endif

Requires:       cpu-mitigations-formula
Requires:       openvpn-formula
Recommends:     susemanager-tftpsync
Recommends:     golang-github-prometheus-node_exporter
Recommends:     golang-github-wrouesnel-postgres_exporter
Recommends:     golang-github-QubitProducts-exporter_exporter
Recommends:     prometheus-jmx_exporter
Recommends:     prometheus-jmx_exporter-tomcat
Recommends:     spacecmd
Recommends:     grafana-formula
Recommends:     locale-formula
Recommends:     prometheus-exporters-formula
Recommends:     prometheus-formula

# Retail packages
Recommends:     bind-formula
Recommends:     dhcpd-formula
Recommends:     tftpd-formula
Recommends:     virtualization-formulas
Recommends:     vsftpd-formula
# end of Retail packages

# Monitoring
Recommends:     golang-github-lusitaniae-apache_exporter
Recommends:     golang-github-prometheus-node_exporter
Recommends:     golang-github-wrouesnel-postgres_exporter
Recommends:     golang-github-QubitProducts-exporter_exporter
Recommends:     prometheus-jmx_exporter
# End of Monitoring

%description -n patterns-uyuni_server
Uyuni Server packages.

%files -n patterns-uyuni_server
%defattr(-,root,root)
%dir /usr/share/doc/packages/patterns-uyuni-server
/usr/share/doc/packages/patterns-uyuni-server/uyuni_server.txt

#####################################################################

%package -n patterns-uyuni_retail
%pattern_primaryfunctions
Summary:        Uyuni for Retail
Group:          Metapackages
Provides:       pattern() = uyuni_retail
Provides:       pattern-icon() = pattern-generic
Provides:       pattern-order() = 3011
Provides:       pattern-visible()

Requires:       bind-formula
Requires:       dhcpd-formula
Requires:       tftpd-formula
Requires:       vsftpd-formula
Requires:       branch-network-formula
Requires:       pxe-formula
Requires:       saltboot-formula
Requires:       image-sync-formula
Recommends:     virtualization-host-formula
Requires:       python3-susemanager-retail
Requires:       susemanager-retail-tools

%description -n patterns-uyuni_retail
Uyuni for Retail packages.


%files -n patterns-uyuni_retail
%defattr(-,root,root)
%dir /usr/share/doc/packages/patterns-uyuni-retail
/usr/share/doc/packages/patterns-uyuni-retail/uyuni_retail.txt


#####################################################################

%package -n patterns-uyuni_proxy
%pattern_primaryfunctions
Summary:        Uyuni Proxy
Group:          Metapackages
Provides:       pattern() = uyuni_proxy
Provides:       pattern-icon() = pattern-generic
Provides:       pattern-order() = 3010
Provides:       pattern-visible()

Requires:       Uyuni-Proxy-release
Requires:       spacewalk-proxy-broker
Requires:       spacewalk-proxy-common
Requires:       spacewalk-proxy-installer
Requires:       spacewalk-proxy-management
Requires:       spacewalk-proxy-package-manager
Requires:       spacewalk-proxy-redirect
Requires:       spacewalk-ssl-cert-check
Requires:       release-notes-uyuni-proxy
Requires:       supportutils-plugin-susemanager-proxy
Requires:       supportutils-plugin-susemanager-client

Requires:       python3-rhnlib

Recommends:     susemanager-tftpsync-recv
Recommends:     spacewalk-proxy-docs

# Monitoring
Recommends:     golang-github-boynux-squid_exporter
Recommends:     golang-github-prometheus-node_exporter
Recommends:     golang-github-lusitaniae-apache_exporter
Recommends:     golang-github-QubitProducts-exporter_exporter
# End of Monitoring

%description -n patterns-uyuni_proxy
Uyuni Proxy packages.


%files -n patterns-uyuni_proxy
%defattr(-,root,root)
%dir /usr/share/doc/packages/patterns-uyuni-proxy
/usr/share/doc/packages/patterns-uyuni-proxy/uyuni_proxy.txt

#####################################################################


%prep
# empty on purpose

%build
# empty on purpose

%install

mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-uyuni-server/
echo 'This file marks the pattern uyuni_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-uyuni-server/uyuni_server.txt

mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-uyuni-retail/
echo 'This file marks the pattern uyuni_retail to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-uyuni-retail/uyuni_retail.txt

mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-uyuni-proxy/
echo 'This file marks the pattern uyuni_proxy to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-uyuni-proxy/uyuni_proxy.txt

%changelog
openSUSE Build Service is sponsored by