# # spec file for package yast2-installation # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 Version: 3.2.40 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %{name}-%{version}.tar.bz2 Url: http://github.com/yast/yast-installation # new y2start script Requires: yast2-ruby-bindings >= 3.2.10 Summary: YaST2 - Installation Parts License: GPL-2.0 Group: System/YaST Source1: YaST2-Second-Stage.service Source2: YaST2-Firstboot.service BuildRequires: update-desktop-files BuildRequires: yast2-devtools >= 3.1.10 # needed for xml agent reading about products BuildRequires: yast2-xml BuildRequires: rubygem(rspec) BuildRequires: rubygem(yast-rake) # CWM::RadioButtons#vspacing BuildRequires: yast2 >= 3.2.20 # AutoinstSoftware.SavePackageSelection() Requires: autoyast2-installation >= 3.1.105 # PackageDownloader and PackageExtractor Requires: yast2 >= 3.2.19 # Language::GetLanguageItems and other API # Language::Set (handles downloading the translation extensions) Requires: yast2-country-data >= 2.16.11 # Pkg::ProvidePackage Requires: yast2-pkg-bindings >= 3.1.33 # Mouse-related scripts moved to yast2-mouse Conflicts: yast2-mouse < 2.18.0 # Lazy loading in ProductLicense Requires: yast2-packager >= 3.1.113 # Storage::GetDetectedDiskPaths Requires: yast2-storage >= 2.24.1 # use in startup scripts Requires: initviocons # Proxy settings for 2nd stage (bnc#764951) Requires: yast2-proxy # Systemd default target and services. This version supports # writing settings in the first installation stage. Requires: yast2-services-manager >= 3.2.1 ## Moved inst_install_inf from yast2-network to this package Requires: yast2-network >= 3.2.25 # Augeas lenses Requires: augeas-lenses # Only in inst-sys # Requires: yast2-add-on # Requires: yast2-update # new root password cwm widget BuildRequires: yast2-users >= 3.2.8 Requires: yast2-users >= 3.2.8 # new keyboard layout cwm widget BuildRequires: yast2-country >= 3.2.7 Requires: yast2-country >= 3.2.7 # Pkg::SourceProvideSignedFile Pkg::SourceProvideDigestedFile # pkg-bindings are not directly required Conflicts: yast2-pkg-bindings < 2.17.25 # InstError Conflicts: yast2 < 2.18.6 # lower version requires perl-Bootloader-YAML no longer installed Conflicts: yast2-bootloader < 3.1.166 # Added new function WFM::ClientExists Conflicts: yast2-core < 2.17.10 # Top bar with logo Conflicts: yast2-ycp-ui-bindings < 3.1.7 # Registration#get_updates_list does not handle exceptions Conflicts: yast2-registration < 3.2.3 Obsoletes: yast2-installation-devel-doc # tar-gzip some system files and untar-ungzip them after the installation (FATE #300421, #120103) Requires: coreutils Requires: gzip Requires: tar %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 Requires: pciutils Recommends: yast2-registration Recommends: yast2-online-update Recommends: yast2-firewall Recommends: release-notes Recommends: curl Recommends: yast2-update Recommends: yast2-add-on PreReq: %fillup_prereq BuildArch: noarch %description System installation code as present on installation media. %prep %setup -n %{name}-%{version} %check rake test:unit %build %install rake install DESTDIR="%{buildroot}" for f in `find %{buildroot}%{_datadir}/autoinstall/modules -name "*.desktop"`; do %suse_update_desktop_file $f done mkdir -p %{buildroot}%{yast_vardir}/hooks/installation 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 mkdir -p %{buildroot}%{_unitdir} install -m 644 %{SOURCE1} %{buildroot}%{_unitdir} install -m 644 %{SOURCE2} %{buildroot}%{_unitdir} %post %{fillup_only -ns security checksig} %if 0%{suse_version} > 1140 %service_add_post YaST2-Second-Stage.service YaST2-Firstboot.service # 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 # by the service_add_post macro. systemctl enable YaST2-Second-Stage.service systemctl enable YaST2-Firstboot.service %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 %{_unitdir}/YaST2-Second-Stage.service %{_unitdir}/YaST2-Firstboot.service %{yast_clientdir}/*.rb %{yast_moduledir}/*.rb %{yast_desktopdir}/*.desktop /usr/share/autoinstall/modules/*.desktop /usr/share/YaST2/schema/autoyast/rnc/deploy_image.rnc /usr/share/YaST2/schema/autoyast/rnc/ssh_import.rnc %dir /usr/share/autoinstall %dir /usr/share/autoinstall/modules %dir %{yast_yncludedir}/installation %{yast_yncludedir}/installation/* %{yast_libdir}/installation %{yast_libdir}/transfer # agents %{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 # fillup /var/adm/fillup-templates/sysconfig.security-checksig # programs and scripts %{yast_ystartupdir}/startup # installation hooks %dir %{yast_vardir}/hooks %dir %{yast_vardir}/hooks/installation %dir %{yast_docdir} %doc %{yast_docdir}/COPYING %doc %{yast_docdir}/README.md %doc %{yast_docdir}/CONTRIBUTING.md %changelog