2012-02-09 08:40:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package yast2-installation
|
|
|
|
#
|
2021-02-03 15:31:49 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-02-09 08:40:52 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-09-01 17:30:48 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-09 08:40:52 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: yast2-installation
|
2021-02-26 09:16:15 +01:00
|
|
|
Version: 4.3.28
|
2012-02-09 08:40:52 +01:00
|
|
|
Release: 0
|
2012-06-26 10:57:59 +02:00
|
|
|
Summary: YaST2 - Installation Parts
|
2018-08-22 09:38:16 +02:00
|
|
|
License: GPL-2.0-only
|
2012-07-12 08:12:52 +02:00
|
|
|
Group: System/YaST
|
2020-09-01 17:30:48 +02:00
|
|
|
URL: https://github.com/yast/yast-installation
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2019-06-10 13:06:45 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2012-07-12 08:12:52 +02:00
|
|
|
Source1: YaST2-Second-Stage.service
|
|
|
|
Source2: YaST2-Firstboot.service
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2013-12-11 15:21:10 +01:00
|
|
|
BuildRequires: yast2-devtools >= 3.1.10
|
2018-04-09 10:03:04 +02:00
|
|
|
# for AbortException and handle direct abort
|
|
|
|
BuildRequires: yast2-ruby-bindings >= 4.0.6
|
2016-09-15 13:39:21 +02:00
|
|
|
# needed for xml agent reading about products
|
|
|
|
BuildRequires: yast2-xml
|
2019-08-22 17:22:42 +02:00
|
|
|
BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
|
|
|
|
BuildRequires: rubygem(%{rb_default_ruby_abi}:yast-rake)
|
2021-02-10 16:44:13 +01:00
|
|
|
# Yast2::FsSnapshotStore::IOError
|
|
|
|
BuildRequires: yast2 >= 4.3.53
|
2019-09-20 17:06:07 +02:00
|
|
|
# Y2Packager::MediumType
|
|
|
|
BuildRequires: yast2-packager >= 4.2.27
|
2020-07-29 14:12:40 +02:00
|
|
|
# CIOIgnore
|
|
|
|
BuildRequires: yast2-bootloader
|
2021-02-26 09:16:15 +01:00
|
|
|
# For selinux classes
|
|
|
|
BuildRequires: yast2-security
|
|
|
|
# For firewall widgets
|
|
|
|
BuildRequires: yast2-firewall
|
2020-01-15 10:32:58 +01:00
|
|
|
# using /usr/bin/udevadm
|
|
|
|
BuildRequires: yast2-storage-ng >= 4.2.71
|
2020-02-20 21:25:24 +01:00
|
|
|
# Y2Network::NtpServer
|
|
|
|
BuildRequires: yast2-network >= 4.2.55
|
2019-06-10 13:06:45 +02:00
|
|
|
# new root password cwm widget
|
|
|
|
BuildRequires: yast2-users >= 3.2.8
|
|
|
|
# storage-ng based version
|
2020-08-24 11:51:07 +02:00
|
|
|
BuildRequires: yast2-bootloader
|
2019-06-10 13:06:45 +02:00
|
|
|
BuildRequires: yast2-country >= 3.3.1
|
2017-08-14 21:19:22 +02:00
|
|
|
|
2019-06-10 13:06:45 +02:00
|
|
|
PreReq: %fillup_prereq
|
|
|
|
Requires: yast2-country >= 3.3.1
|
|
|
|
Requires: yast2-users >= 3.2.8
|
|
|
|
# tar-gzip some system files and untar-ungzip them after the installation (FATE #300421, #120103)
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: gzip
|
|
|
|
Requires: tar
|
|
|
|
# Augeas lenses
|
|
|
|
Requires: augeas-lenses
|
|
|
|
# Only in inst-sys
|
|
|
|
Requires: yast2-storage-ng >= 4.0.175
|
2012-02-09 08:40:52 +01:00
|
|
|
# Language::GetLanguageItems and other API
|
|
|
|
# Language::Set (handles downloading the translation extensions)
|
2012-07-12 08:12:52 +02:00
|
|
|
Requires: yast2-country-data >= 2.16.11
|
2016-04-06 09:26:14 +02:00
|
|
|
# Pkg::ProvidePackage
|
|
|
|
Requires: yast2-pkg-bindings >= 3.1.33
|
2019-09-20 17:06:07 +02:00
|
|
|
# Y2Packager::MediumType
|
|
|
|
Requires: yast2-packager >= 4.2.22
|
2020-07-29 14:12:40 +02:00
|
|
|
# CIOIgnore
|
|
|
|
Requires: yast2-bootloader
|
2012-02-09 08:40:52 +01:00
|
|
|
# use in startup scripts
|
2012-07-12 08:12:52 +02:00
|
|
|
Requires: initviocons
|
2012-06-06 15:38:58 +02:00
|
|
|
# Proxy settings for 2nd stage (bnc#764951)
|
|
|
|
Requires: yast2-proxy
|
2017-03-06 10:50:15 +01:00
|
|
|
# Systemd default target and services. This version supports
|
|
|
|
# writing settings in the first installation stage.
|
2019-06-10 13:06:45 +02:00
|
|
|
Requires: yast2-services-manager >= 3.2.1
|
2021-02-10 16:44:13 +01:00
|
|
|
# Yast2::FsSnapshotStore::IOError
|
|
|
|
Requires: yast2 >= 4.3.53
|
2020-02-20 21:25:24 +01:00
|
|
|
# Y2Network::NtpServer
|
|
|
|
Requires: yast2-network >= 4.2.55
|
2019-06-10 13:06:45 +02:00
|
|
|
# for AbortException and handle direct abort
|
|
|
|
Requires: yast2-ruby-bindings >= 4.0.6
|
|
|
|
# for the first/second stage of installation
|
|
|
|
# currently not used
|
|
|
|
# bugzilla #208307
|
|
|
|
#Requires: /usr/bin/jpegtopnm
|
|
|
|
#Requires: /usr/bin/pnmtopng
|
|
|
|
# BNC 446533, /sbin/lspci called but not installed
|
|
|
|
Requires: pciutils
|
|
|
|
# Needed call /sbin/ip in vnc.sh/network.sh
|
|
|
|
Requires: iproute2
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
%{systemd_requires}
|
|
|
|
%endif
|
2016-12-15 15:31:43 +01:00
|
|
|
|
2019-11-14 10:54:34 +01:00
|
|
|
# SingleItemSelector not enforcing an initial selection
|
|
|
|
Conflicts: libyui < 3.8.2
|
2012-02-09 08:40:52 +01:00
|
|
|
# Pkg::SourceProvideSignedFile Pkg::SourceProvideDigestedFile
|
|
|
|
# pkg-bindings are not directly required
|
2012-07-12 08:12:52 +02:00
|
|
|
Conflicts: yast2-pkg-bindings < 2.17.25
|
2012-02-09 08:40:52 +01:00
|
|
|
# InstError
|
2012-07-12 08:12:52 +02:00
|
|
|
Conflicts: yast2 < 2.18.6
|
2017-08-14 21:19:22 +02:00
|
|
|
# storage-ng based version
|
|
|
|
Conflicts: yast2-bootloader < 3.3.1
|
2012-02-09 08:40:52 +01:00
|
|
|
# Added new function WFM::ClientExists
|
2012-07-12 08:12:52 +02:00
|
|
|
Conflicts: yast2-core < 2.17.10
|
2014-04-23 11:16:23 +02:00
|
|
|
# Top bar with logo
|
|
|
|
Conflicts: yast2-ycp-ui-bindings < 3.1.7
|
2017-02-16 11:42:36 +01:00
|
|
|
# Registration#get_updates_list does not handle exceptions
|
|
|
|
Conflicts: yast2-registration < 3.2.3
|
2019-06-10 13:06:45 +02:00
|
|
|
# Mouse-related scripts moved to yast2-mouse
|
|
|
|
Conflicts: yast2-mouse < 2.18.0
|
2020-07-20 09:58:23 +02:00
|
|
|
# new autoinst_files_finish call
|
|
|
|
Conflicts: autoyast2 < 4.3.26
|
2016-08-04 15:49:19 +02:00
|
|
|
|
2016-06-09 17:17:48 +02:00
|
|
|
Obsoletes: yast2-installation-devel-doc
|
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
Recommends: yast2-online-update
|
|
|
|
Recommends: yast2-firewall
|
|
|
|
Recommends: yast2-add-on
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2020-09-10 14:22:48 +02:00
|
|
|
Supplements: autoyast(deploy_image:ssh_import)
|
2020-08-12 13:46:55 +02:00
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
BuildArch: noarch
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
System installation code as present on installation media.
|
|
|
|
|
|
|
|
%prep
|
2019-06-10 13:06:45 +02:00
|
|
|
%setup -q
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2016-09-15 13:39:21 +02:00
|
|
|
%check
|
2019-06-10 13:06:45 +02:00
|
|
|
%yast_check
|
2016-09-15 13:39:21 +02:00
|
|
|
|
2012-02-09 08:40:52 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2019-06-10 13:06:45 +02:00
|
|
|
%yast_install
|
|
|
|
%yast_metainfo
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
for f in `find %{buildroot}%{_datadir}/autoinstall/modules -name "*.desktop"`; do
|
|
|
|
%suse_update_desktop_file $f
|
2016-09-15 13:39:21 +02:00
|
|
|
done
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2013-11-28 14:27:18 +01:00
|
|
|
mkdir -p %{buildroot}%{yast_vardir}/hooks/installation
|
2016-09-15 13:39:21 +02:00
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/preFirstCall
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/preSecondCall
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/postFirstCall
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/postSecondCall
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/preFirstStage
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/preSecondStage
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/postFirstStage
|
|
|
|
mkdir -p %{buildroot}%{yast_ystartupdir}/startup/hooks/postSecondStage
|
2013-11-28 14:27:18 +01:00
|
|
|
|
2012-11-05 08:40:29 +01:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -ns security checksig}
|
|
|
|
|
|
|
|
%if 0%{suse_version} > 1140
|
|
|
|
|
|
|
|
%service_add_post YaST2-Second-Stage.service YaST2-Firstboot.service
|
|
|
|
|
2015-04-16 14:45:18 +02:00
|
|
|
# bsc#924278 Always enable these services by default, they are already listed
|
|
|
|
# in systemd-presets-branding package, but that works for new installations
|
|
|
|
# only, it does not work for upgrades from SLE 11 where scripts had different
|
|
|
|
# name and were not handled by systemd.
|
|
|
|
# When we upgrade/update from systemd-based system, scripts are always enabled
|
2016-03-14 16:01:51 +01:00
|
|
|
# by the service_add_post macro.
|
2015-04-16 14:45:18 +02:00
|
|
|
systemctl enable YaST2-Second-Stage.service
|
|
|
|
systemctl enable YaST2-Firstboot.service
|
|
|
|
|
2012-02-09 08:40:52 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre YaST2-Second-Stage.service YaST2-Firstboot.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun YaST2-Second-Stage.service YaST2-Firstboot.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun YaST2-Second-Stage.service YaST2-Firstboot.service
|
|
|
|
|
2020-07-29 14:12:40 +02:00
|
|
|
#suse_version
|
|
|
|
%endif
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
# systemd service files
|
2019-06-10 13:06:45 +02:00
|
|
|
%{_unitdir}
|
2020-02-21 13:29:34 +01:00
|
|
|
# yupdate script
|
|
|
|
%{_bindir}/
|
2019-06-10 13:06:45 +02:00
|
|
|
%{yast_clientdir}
|
|
|
|
%{yast_moduledir}
|
|
|
|
%{yast_desktopdir}
|
|
|
|
%{yast_metainfodir}
|
|
|
|
%{_datadir}/autoinstall/
|
|
|
|
%{yast_schemadir}
|
|
|
|
%{yast_yncludedir}
|
|
|
|
%{yast_libdir}
|
2012-02-09 08:40:52 +01:00
|
|
|
# agents
|
2019-06-10 13:06:45 +02:00
|
|
|
%{yast_scrconfdir}
|
2012-02-09 08:40:52 +01:00
|
|
|
# fillup
|
2017-11-30 14:26:56 +01:00
|
|
|
%{_fillupdir}/sysconfig.security-checksig
|
2012-02-09 08:40:52 +01:00
|
|
|
# programs and scripts
|
2013-10-09 12:36:58 +02:00
|
|
|
%{yast_ystartupdir}/startup
|
2013-11-28 14:27:18 +01:00
|
|
|
# installation hooks
|
2019-06-10 13:06:45 +02:00
|
|
|
%{yast_vardir}
|
|
|
|
%doc %{yast_docdir}
|
2018-10-16 17:45:19 +02:00
|
|
|
%license COPYING
|
2018-11-29 08:52:43 +01:00
|
|
|
%{yast_icondir}
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
%changelog
|