File skelcd-control-leanos.spec of Package skelcd-control-leanos.27133

#
# spec file for package skelcd-control-leanos
#
# Copyright (c) 2022 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-leanos repository
#
#   See https://github.com/yast/skelcd-control-leanos/blob/master/CONTRIBUTING.md
#   for more details.
#
######################################################################

Name:           skelcd-control-leanos
# xmllint (for validation)
BuildRequires:  libxml2-tools
# Added 'lsm' section (jsc#SLE-22069)
BuildRequires:  yast2-installation-control >= 4.4.7

######################################################################
#
# Here is the list of Yast packages which are needed in the
# installation system (inst-sys) for the Yast installer
#

# leanos specific Yast packages needed in the inst-sys
# to provide the functionality needed by this control file
Requires:       yast2-registration >= 4.2.27
Requires:       yast2-theme

# Generic Yast packages needed for the installer
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
# $os_release_version expansion in the <self_update_url> tag
Requires:       yast2-installation >= 4.2.28
Requires:       yast2-iscsi-client
Requires:       yast2-kdump
Requires:       yast2-multipath
Requires:       yast2-network >= 3.1.42
Requires:       yast2-nfs-client
Requires:       yast2-ntp-client
# online medium support
Requires:       yast2-configuration-management
Requires:       yast2-packager >= 4.2.27
Requires:       yast2-proxy
Requires:       yast2-services-manager
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
# Support for security policies (jsc#SLE-24764)
Requires:       yast2-security >= 4.4.15

# Architecture specific packages
#
%ifarch s390 s390x
Requires:       yast2-reipl >= 3.1.4
Requires:       yast2-s390
%endif

%ifarch %ix86 x86_64
Requires:       yast2-vm
%endif

%ifarch x86_64 ppc64le
Requires:       sap-installation-wizard
%endif

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

URL:            https://github.com/yast/skelcd-control-leanos
AutoReqProv:    off
Version:        15.4.7
Release:        0
Summary:        Leanos control file needed for installation
License:        MIT
Group:          Metapackages
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2

%description
leanos control file needed for installation

%prep

%setup -n %{name}-%{version}

%check
#
# Verify syntax
#
make -C control check

%install
#
# Add control file
#
mkdir -p $RPM_BUILD_ROOT/usr/lib/skelcd/CD1
install -m 644 control/control.leanos.xml $RPM_BUILD_ROOT/usr/lib/skelcd/CD1/control.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)
/usr/lib/skelcd
%doc %dir %{_prefix}/share/doc/packages/%{name}
%doc %{_prefix}/share/doc/packages/%{name}/LICENSE

%changelog
openSUSE Build Service is sponsored by