2012-02-09 08:40:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package yast2-installation
|
|
|
|
#
|
2017-01-09 10:21:59 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: yast2-installation
|
2017-12-11 09:45:38 +01:00
|
|
|
Version: 4.0.16
|
2012-02-09 08:40:52 +01:00
|
|
|
Release: 0
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-09 12:36:58 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2014-01-17 15:22:10 +01:00
|
|
|
Url: http://github.com/yast/yast-installation
|
2017-04-07 15:00:26 +02:00
|
|
|
# new y2start script
|
|
|
|
Requires: yast2-ruby-bindings >= 3.2.10
|
2013-07-30 14:24:09 +02:00
|
|
|
|
2012-06-26 10:57:59 +02:00
|
|
|
Summary: YaST2 - Installation Parts
|
2012-07-12 08:12:52 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/YaST
|
2012-02-09 08:40:52 +01:00
|
|
|
|
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
|
2016-09-15 13:39:21 +02:00
|
|
|
# needed for xml agent reading about products
|
|
|
|
BuildRequires: yast2-xml
|
2014-09-04 16:34:58 +02:00
|
|
|
BuildRequires: rubygem(rspec)
|
2016-09-15 13:39:21 +02:00
|
|
|
BuildRequires: rubygem(yast-rake)
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-09-26 14:49:22 +02:00
|
|
|
# Yast::WorkflowManager.merge_modules_extensions
|
|
|
|
BuildRequires: yast2 >= 4.0.8
|
2017-10-10 10:58:37 +02:00
|
|
|
# Yast::Packages.check_remote_installation_packages
|
|
|
|
BuildRequires: yast2-packager >= 4.0.9
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-12-01 12:44:32 +01:00
|
|
|
# Y2Storage::StorageManager#activate accepts an argument
|
|
|
|
BuildRequires: yast2-storage-ng >= 4.0.43
|
|
|
|
Requires: yast2-storage-ng >= 4.0.43
|
2017-08-14 21:19:22 +02:00
|
|
|
|
2017-09-26 14:49:22 +02:00
|
|
|
# Yast::WorkflowManager.merge_modules_extensions
|
|
|
|
Requires: yast2 >= 4.0.8
|
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
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2016-04-06 09:26:14 +02:00
|
|
|
# Pkg::ProvidePackage
|
|
|
|
Requires: yast2-pkg-bindings >= 3.1.33
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
# Mouse-related scripts moved to yast2-mouse
|
2012-07-12 08:12:52 +02:00
|
|
|
Conflicts: yast2-mouse < 2.18.0
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-10-10 10:58:37 +02:00
|
|
|
# Yast::Packages.check_remote_installation_packages
|
|
|
|
Requires: yast2-packager >= 4.0.9
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-08-14 21:19:22 +02:00
|
|
|
# FIXME: some code present in this package still depends on the old yast2-storage
|
|
|
|
# and will break without this dependency. That's acceptable at this point of the
|
|
|
|
# migration to storage-ng. See installer-hacks.md in the yast-storage-ng repo.
|
|
|
|
# Requires: yast2-storage >= 2.24.1
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
# use in startup scripts
|
2012-07-12 08:12:52 +02:00
|
|
|
Requires: initviocons
|
2012-02-09 08:40:52 +01:00
|
|
|
|
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.
|
|
|
|
Requires: yast2-services-manager >= 3.2.1
|
2013-11-12 10:42:16 +01:00
|
|
|
|
2017-08-14 21:19:22 +02:00
|
|
|
## storage-ng based version
|
|
|
|
Requires: yast2-network >= 3.3.7
|
2014-09-01 11:56:08 +02:00
|
|
|
|
2017-02-10 10:48:36 +01:00
|
|
|
# Augeas lenses
|
|
|
|
Requires: augeas-lenses
|
|
|
|
|
2012-02-09 08:40:52 +01:00
|
|
|
# Only in inst-sys
|
|
|
|
# Requires: yast2-add-on
|
|
|
|
# Requires: yast2-update
|
|
|
|
|
2016-12-15 15:31:43 +01:00
|
|
|
# new root password cwm widget
|
2017-01-31 11:54:36 +01:00
|
|
|
BuildRequires: yast2-users >= 3.2.8
|
|
|
|
Requires: yast2-users >= 3.2.8
|
2017-08-14 21:19:22 +02:00
|
|
|
# storage-ng based version
|
|
|
|
BuildRequires: yast2-country >= 3.3.1
|
|
|
|
Requires: yast2-country >= 3.3.1
|
2016-12-15 15:31:43 +01:00
|
|
|
|
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
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-08-14 21:19:22 +02:00
|
|
|
# storage-ng based version
|
|
|
|
Conflicts: yast2-bootloader < 3.3.1
|
2016-04-13 10:17:06 +02:00
|
|
|
|
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
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2014-04-23 11:16:23 +02:00
|
|
|
# Top bar with logo
|
|
|
|
Conflicts: yast2-ycp-ui-bindings < 3.1.7
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-02-16 11:42:36 +01:00
|
|
|
# Registration#get_updates_list does not handle exceptions
|
|
|
|
Conflicts: yast2-registration < 3.2.3
|
2016-08-04 15:49:19 +02:00
|
|
|
|
2016-06-09 17:17:48 +02:00
|
|
|
Obsoletes: yast2-installation-devel-doc
|
|
|
|
|
2012-02-09 08:40:52 +01:00
|
|
|
# tar-gzip some system files and untar-ungzip them after the installation (FATE #300421, #120103)
|
2012-07-12 08:12:52 +02:00
|
|
|
Requires: coreutils
|
|
|
|
Requires: gzip
|
|
|
|
Requires: tar
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
%{systemd_requires}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# 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
|
2012-07-12 08:12:52 +02:00
|
|
|
Requires: pciutils
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2017-06-19 12:26:36 +02:00
|
|
|
# install the registration module only in SLE (bsc#1043122)
|
|
|
|
%if !0%{?is_opensuse}
|
2012-07-12 08:12:52 +02:00
|
|
|
Recommends: yast2-registration
|
2017-06-19 12:26:36 +02:00
|
|
|
%endif
|
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
Recommends: yast2-online-update
|
|
|
|
Recommends: yast2-firewall
|
|
|
|
Recommends: release-notes
|
|
|
|
Recommends: curl
|
|
|
|
Recommends: yast2-update
|
|
|
|
Recommends: yast2-add-on
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
PreReq: %fillup_prereq
|
2012-02-09 08:40:52 +01: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
|
2013-10-09 12:36:58 +02:00
|
|
|
%setup -n %{name}-%{version}
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2016-09-15 13:39:21 +02:00
|
|
|
%check
|
|
|
|
rake test:unit
|
|
|
|
|
2012-02-09 08:40:52 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2016-09-15 13:39:21 +02:00
|
|
|
rake install DESTDIR="%{buildroot}"
|
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
|
|
|
|
|
|
|
|
%endif #suse_version
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
# systemd service files
|
2012-11-05 08:40:29 +01:00
|
|
|
%{_unitdir}/YaST2-Second-Stage.service
|
|
|
|
%{_unitdir}/YaST2-Firstboot.service
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2013-10-09 12:36:58 +02:00
|
|
|
%{yast_clientdir}/*.rb
|
|
|
|
%{yast_moduledir}/*.rb
|
|
|
|
%{yast_desktopdir}/*.desktop
|
2012-02-09 08:40:52 +01:00
|
|
|
/usr/share/autoinstall/modules/*.desktop
|
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/deploy_image.rnc
|
2016-07-12 16:41:28 +02:00
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/ssh_import.rnc
|
2012-02-09 08:40:52 +01:00
|
|
|
%dir /usr/share/autoinstall
|
|
|
|
%dir /usr/share/autoinstall/modules
|
2013-10-09 12:36:58 +02:00
|
|
|
%dir %{yast_yncludedir}/installation
|
|
|
|
%{yast_yncludedir}/installation/*
|
2014-01-17 15:22:10 +01:00
|
|
|
%{yast_libdir}/installation
|
2016-03-14 13:54:11 +01:00
|
|
|
%{yast_libdir}/transfer
|
2012-02-09 08:40:52 +01:00
|
|
|
|
|
|
|
# agents
|
2013-10-09 12:36:58 +02:00
|
|
|
%{yast_scrconfdir}/etc_passwd.scr
|
|
|
|
%{yast_scrconfdir}/cfg_boot.scr
|
|
|
|
%{yast_scrconfdir}/cfg_windowmanager.scr
|
|
|
|
%{yast_scrconfdir}/cfg_fam.scr
|
|
|
|
%{yast_scrconfdir}/etc_install_inf.scr
|
|
|
|
%{yast_scrconfdir}/etc_install_inf_alias.scr
|
|
|
|
%{yast_scrconfdir}/etc_install_inf_options.scr
|
|
|
|
%{yast_scrconfdir}/run_df.scr
|
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
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2013-11-28 14:27:18 +01:00
|
|
|
# installation hooks
|
|
|
|
%dir %{yast_vardir}/hooks
|
|
|
|
%dir %{yast_vardir}/hooks/installation
|
|
|
|
|
2013-10-09 12:36:58 +02:00
|
|
|
%dir %{yast_docdir}
|
2016-09-15 13:39:21 +02:00
|
|
|
%doc %{yast_docdir}/COPYING
|
|
|
|
%doc %{yast_docdir}/README.md
|
|
|
|
%doc %{yast_docdir}/CONTRIBUTING.md
|
2012-02-09 08:40:52 +01:00
|
|
|
|
2012-07-12 08:12:52 +02:00
|
|
|
%changelog
|