File skelcd-control-SLES.spec of Package skelcd-control-SLES
#
# spec file
#
# 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/
#
######################################################################
#
# IMPORTANT: Please do not change the control file or this spec file
# in build service directly, use
# https://github.com/yast/skelcd-control-SLES repository
#
# See https://github.com/yast/.github/blob/master/CONTRIBUTING.md
# for more details.
#
######################################################################
%define skelcd_name SLES
Name: skelcd-control-%{skelcd_name}
# xmllint (for validation)
BuildRequires: libxml2-tools
# Added skelcd macros
BuildRequires: yast2-installation-control >= 4.1.5
# add it for migration of old KDE desktop
Requires: sle15-desktop-migration
######################################################################
#
# Here is the list of Yast packages which are needed in the
# installation system (inst-sys) for the Yast installer
#
# SLES specific Yast packages needed in the inst-sys
# to provide the functionality needed by this control file
Requires: yast2-registration
Requires: yast2-theme
# Generic Yast packages needed for the installer
# Needed for special product SLES_BCL
Requires: yast2 >= 4.1.52
Requires: autoyast2
Requires: yast2-add-on
Requires: yast2-buildtools
Requires: yast2-devtools
Requires: yast2-fcoe-client
# For creating the AutoYast profile at the end of installation (bnc#887406)
Requires: yast2-firewall
# instsys_cleanup
Requires: yast2-installation >= 3.1.201
Requires: yast2-configuration-management
Requires: yast2-iscsi-client
Requires: yast2-kdump
Requires: yast2-multipath
Requires: yast2-network >= 3.1.42
Requires: yast2-nfs-client
Requires: yast2-ntp-client
Requires: yast2-proxy
Requires: yast2-services-manager
# clients/inst_product_upgrade_license.rb
Requires: yast2-packager >= 4.0.29
Requires: yast2-slp
Requires: yast2-trans-stats
Requires: yast2-tune
Requires: yast2-update
Requires: yast2-users
Requires: yast2-x11
# Ruby debugger in the inst-sys (FATE#318421)
Requires: rubygem(%{rb_default_ruby_abi}:byebug)
# Install and enable xrdp by default (FATE#320363)
Requires: yast2-rdp
Provides: system-installation() = SLES
# Additional provides to use SLES version with BCL bundle
Provides: system-installation() = SLES_BCL
# Architecture specific packages
#
%ifarch s390 s390x
Requires: yast2-reipl >= 3.1.4
Requires: yast2-s390
%endif
%ifarch %ix86 x86_64
Requires: yast2-vm
%endif
#
######################################################################
URL: https://github.com/yast/skelcd-control-SLES
AutoReqProv: off
Version: 15.6.0
Release: 0
Summary: SLES control file needed for installation
License: MIT
Group: Metapackages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.bz2
%description
SLES control file needed for installation
%prep
%setup -n %{name}-%{version}
%check
#
# Verify syntax
#
make -C control check
%install
#
# Add installation.xml file
#
mkdir -p $RPM_BUILD_ROOT/%{skelcd_control_datadir}
install -m 644 control/installation.SLES.xml $RPM_BUILD_ROOT/%{skelcd_control_datadir}/%{skelcd_name}.xml
# install LICENSE (required by build service check)
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/%{name}
install -m 644 LICENSE $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/%{name}
%files
%defattr(644,root,root,755)
%{skelcd_control_datadir}
%doc %dir %{_prefix}/share/doc/packages/%{name}
%doc %{_prefix}/share/doc/packages/%{name}/LICENSE
%changelog