2007-01-15 23:51:58 +01:00
|
|
|
#
|
2011-09-05 18:12:35 +02:00
|
|
|
# spec file for package autoyast2
|
2010-03-01 01:40:08 +01:00
|
|
|
#
|
2018-01-08 10:47:59 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-05 18:12:35 +02: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/
|
|
|
|
#
|
|
|
|
|
2010-02-26 09:45:39 +01:00
|
|
|
|
2017-11-30 10:51:17 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
Name: autoyast2
|
2018-02-06 10:34:04 +01:00
|
|
|
Version: 4.0.29
|
2011-09-23 17:07:21 +02:00
|
|
|
Release: 0
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-17 15:50:36 +02:00
|
|
|
Source0: autoyast2-%{version}.tar.bz2
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2012-11-13 18:03:11 +01:00
|
|
|
Source1: autoyast_en_html.tar.bz2
|
2012-07-03 15:36:17 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2013-12-19 10:45:29 +01:00
|
|
|
BuildRequires: yast2-devtools >= 3.1.15
|
|
|
|
# control.rng
|
|
|
|
BuildRequires: yast2-installation-control
|
2013-08-07 11:59:17 +02:00
|
|
|
# xmllint
|
|
|
|
BuildRequires: libxml2-tools
|
2015-05-06 11:15:08 +02:00
|
|
|
# xsltproc for AutoinstClass
|
|
|
|
BuildRequires: libxslt
|
2014-10-13 21:39:56 +02:00
|
|
|
BuildRequires: yast2
|
2016-11-11 15:14:12 +01:00
|
|
|
BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
|
|
|
|
# FileSystems.read_default_subvol_from_target
|
2017-11-20 16:06:02 +01:00
|
|
|
BuildRequires: yast2-country
|
2015-01-19 13:25:03 +01:00
|
|
|
BuildRequires: yast2-packager
|
2014-10-13 21:39:56 +02:00
|
|
|
BuildRequires: yast2-services-manager
|
2016-08-05 16:37:46 +02:00
|
|
|
BuildRequires: yast2-slp
|
2014-10-13 21:39:56 +02:00
|
|
|
BuildRequires: yast2-transfer
|
2017-08-14 21:33:19 +02:00
|
|
|
BuildRequires: yast2-update >= 3.3.0
|
2014-10-13 21:39:56 +02:00
|
|
|
BuildRequires: yast2-xml
|
2017-11-20 16:06:02 +01:00
|
|
|
# Y2Storage::AutoinstProfile::SkipListValue#to_hash
|
|
|
|
BuildRequires: yast2-storage-ng >= 4.0.23
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2014-01-06 08:38:20 +01:00
|
|
|
# %%{_unitdir} macro definition is in a separate package since 13.1
|
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%else
|
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: autoyast2-installation = %{version}
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: libxslt
|
|
|
|
Requires: yast2
|
2016-04-05 10:56:58 +02:00
|
|
|
Requires: yast2 >= 3.1.183
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2-core
|
2014-09-15 17:10:10 +02:00
|
|
|
Requires: yast2-country >= 3.1.13
|
2016-04-06 18:02:13 +02:00
|
|
|
Requires: yast2-network >= 3.1.145
|
2017-12-04 14:40:53 +01:00
|
|
|
Requires: yast2-ntp-client >= 4.0.1
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2-schema
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: yast2-transfer >= 2.21.0
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2-xml
|
2017-11-20 16:06:02 +01:00
|
|
|
# Y2Storage::AutoinstProfile::SkipListValue#to_hash
|
|
|
|
Requires: yast2-storage-ng >= 4.0.23
|
2016-01-11 16:36:12 +01:00
|
|
|
Conflicts: yast2-installation < 3.1.166
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2012-07-03 15:36:17 +02:00
|
|
|
Provides: yast2-config-autoinst
|
|
|
|
Provides: yast2-module-autoinst
|
|
|
|
Obsoletes: yast2-config-autoinst
|
|
|
|
Obsoletes: yast2-module-autoinst
|
2011-09-05 18:12:35 +02:00
|
|
|
Provides: yast2-lib-autoinst
|
|
|
|
Obsoletes: yast2-lib-autoinst
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
BuildArch: noarch
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2013-07-30 14:25:43 +02:00
|
|
|
Requires: yast2-ruby-bindings >= 1.0.0
|
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
Summary: YaST2 - Automated Installation
|
2012-07-03 15:36:17 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/YaST
|
2007-01-15 23:51:58 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package is intended for management of the control files and the
|
|
|
|
AutoYaST2 configurations. This system should only be used by
|
|
|
|
experienced system administrators. Warning: AutoYaST2 performs the
|
|
|
|
installation without any user intervention, warnings, or confirmations
|
|
|
|
(unless specified otherwise in the control file).
|
|
|
|
|
|
|
|
This file contains YaST2-independent files needed to create
|
|
|
|
installation sources.
|
|
|
|
|
|
|
|
%package installation
|
2013-07-30 14:25:43 +02:00
|
|
|
Requires: yast2-ruby-bindings >= 1.0.0
|
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
Summary: YaST2 - Auto Installation Modules
|
2008-03-14 17:18:57 +01:00
|
|
|
# API for Disabled Modules (ProductControl)
|
2016-11-16 15:40:47 +01:00
|
|
|
Group: System/YaST
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: yast2 >= 2.16.36
|
2009-04-02 16:06:06 +02:00
|
|
|
# After API cleanup
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2
|
|
|
|
Requires: yast2-bootloader
|
|
|
|
Requires: yast2-core
|
|
|
|
Requires: yast2-country
|
|
|
|
Requires: yast2-ncurses
|
2014-04-22 10:36:39 +02:00
|
|
|
# Packages.default_patterns
|
|
|
|
Requires: yast2-packager >= 3.1.10
|
2014-03-18 10:40:42 +01:00
|
|
|
# ServicesManagerTargetClass::BaseTargets
|
|
|
|
Requires: yast2-services-manager >= 3.1.10
|
2014-02-05 14:01:11 +01:00
|
|
|
Requires: yast2-slp
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: yast2-transfer >= 2.21.0
|
2017-08-14 21:33:19 +02:00
|
|
|
# storage-ng based version
|
|
|
|
Requires: yast2-update >= 3.3.0
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2-xml
|
2018-01-31 14:55:09 +01:00
|
|
|
# "transact_by" key in PkgPropertiesAll()
|
|
|
|
Requires: yast2-pkg-bindings >= 4.0.7
|
2017-10-31 18:27:20 +01:00
|
|
|
# Y2Storage::AutoinstIssues containing section information
|
|
|
|
BuildRequires: yast2-storage-ng >= 4.0.15
|
2011-09-05 18:12:35 +02:00
|
|
|
Provides: yast2-trans-autoinst
|
|
|
|
Obsoletes: yast2-trans-autoinst
|
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
%description installation
|
|
|
|
This package performs auto-installation relying on a control file
|
|
|
|
generated with the autoyast2 package.
|
|
|
|
|
|
|
|
%prep
|
2013-10-17 15:50:36 +02:00
|
|
|
%setup -n autoyast2-%{version}
|
2007-01-15 23:51:58 +01:00
|
|
|
|
|
|
|
%build
|
2013-12-19 10:45:29 +01:00
|
|
|
%yast_build
|
2007-01-15 23:51:58 +01:00
|
|
|
|
|
|
|
%install
|
2013-12-19 10:45:29 +01:00
|
|
|
%yast_install
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2014-06-06 10:31:20 +02:00
|
|
|
# Do not *blindly* remove the suse_update_desktop_file calls here. It is
|
|
|
|
# different from the code in the yast_install macro.
|
|
|
|
for d in $RPM_BUILD_ROOT/usr/share/autoinstall/modules/*.desktop ; do
|
|
|
|
%suse_update_desktop_file $d
|
|
|
|
done
|
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
# Class conf
|
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/etc/autoinstall
|
|
|
|
# Installation files
|
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/var/adm/autoinstall/scripts
|
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/var/adm/autoinstall/init.d
|
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/var/adm/autoinstall/logs
|
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/var/adm/autoinstall/files
|
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/var/adm/autoinstall/cache
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
# Repository
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/autoinstall/repository
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/autoinstall/repository/templates
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/autoinstall/repository/rules
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/autoinstall/repository/classes
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/autoinstall/autoconf
|
|
|
|
install -d $RPM_BUILD_ROOT/var/lib/autoinstall/tmp
|
|
|
|
|
2012-11-13 18:03:11 +01:00
|
|
|
# Systemd Stuff
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}/
|
|
|
|
install -m 644 scripts/autoyast-initscripts.service $RPM_BUILD_ROOT/%{_unitdir}/
|
|
|
|
|
|
|
|
# Documentation
|
2013-10-17 15:50:36 +02:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/autoyast2/html
|
|
|
|
tar xvpfC %{SOURCE1} $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/autoyast2/html
|
|
|
|
mv $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/autoyast2/html/autoyast/* $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/autoyast2/html/
|
|
|
|
rmdir $RPM_BUILD_ROOT/%{_prefix}/share/doc/packages/autoyast2/html/autoyast
|
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
%post
|
|
|
|
%{fillup_only -n autoinstall}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /etc/autoinstall
|
2013-12-19 10:45:29 +01:00
|
|
|
%dir %{yast_yncludedir}/autoinstall
|
2007-01-15 23:51:58 +01:00
|
|
|
%dir /var/lib/autoinstall/repository
|
|
|
|
%dir /var/lib/autoinstall/repository/templates
|
|
|
|
%dir /var/lib/autoinstall/repository/rules
|
|
|
|
%dir /var/lib/autoinstall/repository/classes
|
|
|
|
%dir /var/lib/autoinstall/tmp
|
2013-10-17 15:50:36 +02:00
|
|
|
%doc %{_prefix}/share/doc/packages/autoyast2
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2013-12-19 10:45:29 +01:00
|
|
|
%dir %yast_desktopdir
|
|
|
|
%{yast_desktopdir}/autoyast.desktop
|
2016-09-30 10:56:12 +02:00
|
|
|
%{yast_desktopdir}/clone_system.desktop
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/autoinstall/modules/*.desktop
|
2013-12-19 10:45:29 +01:00
|
|
|
%dir %{yast_yncludedir}
|
|
|
|
%{yast_yncludedir}/autoinstall/classes.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/conftree.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/dialogs.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/script_dialogs.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/general_dialogs.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/wizards.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/helps.rb
|
|
|
|
%dir %{yast_schemadir}
|
|
|
|
%dir %{yast_schemadir}/autoyast
|
|
|
|
%dir %{yast_schemadir}/autoyast/rnc
|
|
|
|
%{yast_schemadir}/autoyast/rnc/*.rnc
|
|
|
|
|
|
|
|
%dir %{yast_clientdir}
|
|
|
|
%{yast_clientdir}/general_auto.rb
|
|
|
|
%{yast_clientdir}/report_auto.rb
|
|
|
|
%{yast_clientdir}/classes_auto.rb
|
|
|
|
%{yast_clientdir}/scripts_auto.rb
|
|
|
|
%{yast_clientdir}/software_auto.rb
|
|
|
|
%{yast_clientdir}/storage_auto.rb
|
|
|
|
%{yast_clientdir}/autoyast.rb
|
|
|
|
%{yast_clientdir}/ayast_setup.rb
|
|
|
|
|
|
|
|
%dir %{yast_moduledir}
|
|
|
|
%{yast_moduledir}/AutoinstClass.rb
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
# additional files
|
2013-10-17 15:50:36 +02:00
|
|
|
|
2017-11-30 10:51:17 +01:00
|
|
|
%{_fillupdir}/sysconfig.autoinstall
|
2007-01-15 23:51:58 +01:00
|
|
|
|
|
|
|
%files installation
|
|
|
|
%defattr(-,root,root)
|
2013-12-19 10:45:29 +01:00
|
|
|
%dir %{yast_scrconfdir}
|
|
|
|
%{yast_scrconfdir}/autoinstall.scr
|
|
|
|
%{yast_scrconfdir}/cfg_autoinstall.scr
|
2007-01-15 23:51:58 +01:00
|
|
|
# DTD files
|
|
|
|
%dir /usr/share/autoinstall
|
2007-02-02 12:58:00 +01:00
|
|
|
#%dir /usr/share/autoinstall/dtd
|
2007-01-15 23:51:58 +01:00
|
|
|
%dir /usr/share/autoinstall/modules
|
2007-02-02 12:58:00 +01:00
|
|
|
#/usr/share/autoinstall/dtd/*
|
2012-11-13 18:03:11 +01:00
|
|
|
|
|
|
|
# systemd service file
|
|
|
|
%{_unitdir}/autoyast-initscripts.service
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
%dir /usr/share/autoinstall/xslt
|
|
|
|
/usr/share/autoinstall/xslt/merge.xslt
|
|
|
|
# config file
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2013-12-19 10:45:29 +01:00
|
|
|
%dir %{yast_moduledir}
|
|
|
|
%{yast_moduledir}/AutoinstClone.rb
|
|
|
|
%dir %{yast_yncludedir}/autoinstall
|
|
|
|
%{yast_yncludedir}/autoinstall/io.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/autoinst_dialogs.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/AdvancedPartitionDialog.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/DriveDialog.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/PartitionDialog.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/StorageDialog.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/VolgroupDialog.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/common.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/tree.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/types.rb
|
|
|
|
|
2014-02-26 14:36:38 +01:00
|
|
|
%dir %{yast_controldir}
|
2013-12-19 10:45:29 +01:00
|
|
|
%{yast_controldir}/*.xml
|
|
|
|
|
|
|
|
%{yast_moduledir}/AutoInstall.rb
|
|
|
|
%{yast_moduledir}/AutoinstScripts.rb
|
|
|
|
%{yast_moduledir}/AutoinstGeneral.rb
|
|
|
|
%{yast_moduledir}/AutoinstImage.rb
|
|
|
|
%{yast_moduledir}/Y2ModuleConfig.rb
|
|
|
|
%{yast_moduledir}/Profile.rb
|
|
|
|
%{yast_moduledir}/AutoinstFile.rb
|
|
|
|
%{yast_moduledir}/AutoinstConfig.rb
|
|
|
|
%{yast_moduledir}/AutoinstSoftware.rb
|
|
|
|
%{yast_moduledir}/AutoinstStorage.rb
|
|
|
|
%{yast_moduledir}/AutoInstallRules.rb
|
|
|
|
%{yast_moduledir}/ProfileLocation.rb
|
|
|
|
%{yast_moduledir}/AutoinstCommon.rb
|
|
|
|
%{yast_moduledir}/AutoinstDrive.rb
|
|
|
|
%{yast_moduledir}/AutoinstPartPlan.rb
|
|
|
|
%{yast_moduledir}/AutoinstPartition.rb
|
2015-09-08 07:20:43 +02:00
|
|
|
%{yast_moduledir}/AutoinstFunctions.rb
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
#clients
|
2013-12-19 10:45:29 +01:00
|
|
|
%{yast_clientdir}/inst_autoinit.rb
|
|
|
|
%{yast_clientdir}/inst_autoimage.rb
|
|
|
|
%{yast_clientdir}/inst_autosetup.rb
|
|
|
|
%{yast_clientdir}/inst_autoconfigure.rb
|
|
|
|
%{yast_clientdir}/inst_autopost.rb
|
|
|
|
%{yast_clientdir}/files_auto.rb
|
|
|
|
%{yast_clientdir}/autoinst_test_clone.rb
|
|
|
|
%{yast_clientdir}/autoinst_test_stage.rb
|
|
|
|
%{yast_clientdir}/autoinst_scripts1_finish.rb
|
|
|
|
%{yast_clientdir}/autoinst_scripts2_finish.rb
|
|
|
|
%{yast_clientdir}/ayast_probe.rb
|
|
|
|
%{yast_clientdir}/inst_autosetup_upgrade.rb
|
|
|
|
%{yast_clientdir}/inst_store_upgrade_software.rb
|
2014-01-08 10:07:08 +01:00
|
|
|
%{yast_clientdir}/clone_system.rb
|
2013-12-19 10:45:29 +01:00
|
|
|
|
|
|
|
%{yast_yncludedir}/autoinstall/xml.rb
|
|
|
|
%{yast_yncludedir}/autoinstall/ask.rb
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2015-10-09 17:15:34 +02:00
|
|
|
%dir %{yast_libdir}/autoinstall
|
|
|
|
%{yast_libdir}/autoinstall/*.rb
|
|
|
|
|
2017-10-24 09:57:31 +02:00
|
|
|
%dir %{yast_libdir}/autoinstall/dialogs
|
|
|
|
%{yast_libdir}/autoinstall/dialogs/*.rb
|
|
|
|
|
2017-11-20 16:06:02 +01:00
|
|
|
%dir %{yast_libdir}/autoinstall/clients
|
|
|
|
%{yast_libdir}/autoinstall/clients/*.rb
|
|
|
|
|
2010-03-01 01:40:09 +01:00
|
|
|
# scripts
|
2013-10-17 15:50:36 +02:00
|
|
|
%{_prefix}/lib/YaST2/bin/fetch_image.sh
|
|
|
|
%{_prefix}/lib/YaST2/bin/autoyast-initscripts.sh
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
%dir /var/adm/autoinstall/
|
|
|
|
%dir /var/adm/autoinstall/scripts
|
|
|
|
%dir /var/adm/autoinstall/init.d
|
|
|
|
%dir /var/adm/autoinstall/logs
|
|
|
|
%dir /var/adm/autoinstall/files
|
|
|
|
%dir /var/adm/autoinstall/cache
|
|
|
|
%dir /var/lib/autoinstall
|
|
|
|
%dir /var/lib/autoinstall/autoconf
|
2011-09-23 17:07:21 +02:00
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
%changelog
|