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
|
|
|
#
|
2013-01-23 13:24:09 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
Name: autoyast2
|
2013-05-29 16:57:11 +02:00
|
|
|
Version: 2.24.3
|
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
|
2012-02-01 16:30:28 +01: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
|
|
|
|
BuildRequires: libxml2-tools
|
2012-07-03 15:36:17 +02:00
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: perl-XML-Writer
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-xml
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xorg-x11-libs
|
|
|
|
BuildRequires: yast2-bootloader
|
|
|
|
BuildRequires: yast2-country
|
|
|
|
BuildRequires: yast2-devtools
|
|
|
|
BuildRequires: yast2-mouse
|
|
|
|
BuildRequires: yast2-slp
|
|
|
|
BuildRequires: yast2-testsuite
|
|
|
|
BuildRequires: yast2-transfer
|
2008-03-14 17:18:57 +01:00
|
|
|
# API for Disabled Modules (ProductControl)
|
2011-09-05 18:12:35 +02:00
|
|
|
BuildRequires: yast2 >= 2.16.36
|
2009-04-02 16:06:06 +02:00
|
|
|
# After API cleanup
|
2011-09-05 18:12:35 +02:00
|
|
|
BuildRequires: yast2-storage >= 2.19.8
|
2012-07-03 15:36:17 +02:00
|
|
|
BuildRequires: yast2-update >= 2.18.3
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: autoyast2-installation = %{version}
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: libxslt
|
|
|
|
Requires: yast2
|
|
|
|
Requires: yast2 >= 2.16.36
|
|
|
|
Requires: yast2-core
|
|
|
|
Requires: yast2-country
|
|
|
|
Requires: yast2-schema
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: yast2-storage >= 2.19.13
|
|
|
|
Requires: yast2-transfer >= 2.21.0
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2-xml
|
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
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
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
|
|
|
|
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
|
2011-09-05 18:12:35 +02:00
|
|
|
Summary: YaST2 - Auto Installation Modules
|
|
|
|
Group: System/YaST
|
2008-03-14 17:18:57 +01:00
|
|
|
# API for Disabled Modules (ProductControl)
|
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-mouse
|
|
|
|
Requires: yast2-ncurses
|
|
|
|
Requires: yast2-packager
|
|
|
|
Requires: yast2-slp
|
|
|
|
Requires: yast2-storage
|
2011-09-05 18:12:35 +02:00
|
|
|
Requires: yast2-transfer >= 2.21.0
|
2012-07-03 15:36:17 +02:00
|
|
|
Requires: yast2-update >= 2.18.3
|
|
|
|
Requires: yast2-xml
|
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
|
2012-02-01 16:30:28 +01:00
|
|
|
%setup -n autoyast2-%{version}
|
2007-01-15 23:51:58 +01:00
|
|
|
|
|
|
|
%build
|
2012-02-01 16:30:28 +01:00
|
|
|
%{_prefix}/bin/y2tool y2autoconf
|
|
|
|
%{_prefix}/bin/y2tool y2automake
|
2007-01-15 23:51:58 +01:00
|
|
|
autoreconf --force --install
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2012-02-01 16:30:28 +01:00
|
|
|
./configure --libdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir}
|
2009-07-08 23:05:13 +02:00
|
|
|
# V=1: verbose build in case we used AM_SILENT_RULES(yes)
|
|
|
|
# so that RPM_OPT_FLAGS check works
|
|
|
|
make %{?jobs:-j%jobs} V=1
|
2007-01-15 23:51:58 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
2012-02-01 16:30:28 +01:00
|
|
|
[ -e "%{_prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
|
|
|
|
for f in `find $RPM_BUILD_ROOT/%{_prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
|
2007-01-15 23:51:58 +01:00
|
|
|
d=${f##*/}
|
|
|
|
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
|
|
|
|
done
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
for d in `ls $RPM_BUILD_ROOT/usr/share/autoinstall/modules/*.desktop`; do
|
|
|
|
%suse_update_desktop_file $d
|
|
|
|
done
|
2010-03-01 01:40:09 +01:00
|
|
|
|
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
|
|
|
|
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
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -n autoinstall}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir /etc/autoinstall
|
|
|
|
%dir /usr/share/YaST2/include/autoinstall
|
|
|
|
%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
|
2012-02-01 16:30:28 +01:00
|
|
|
%doc %{_prefix}/share/doc/packages/autoyast2
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2012-02-01 16:30:28 +01:00
|
|
|
%{_prefix}/share/applications/YaST2/autoyast.desktop
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/autoinstall/modules/*.desktop
|
|
|
|
/usr/share/YaST2/include/autoinstall/classes.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/conftree.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/dialogs.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/partition_dialogs.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/script_dialogs.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/general_dialogs.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/wizards.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/helps.ycp
|
|
|
|
/usr/share/YaST2/schema/autoyast/rnc/*.rnc
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/clients/general_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/report_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/classes_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/scripts_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/software_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/storage_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/autoyast.ycp
|
|
|
|
/usr/share/YaST2/clients/clone_system.ycp
|
2007-02-02 12:58:00 +01:00
|
|
|
/usr/share/YaST2/clients/ayast_setup.ycp
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/scrconf/ksimport.scr
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/modules/AutoinstClass.y*
|
|
|
|
/usr/share/YaST2/modules/Kickstart.y*
|
|
|
|
/usr/lib/YaST2/servers_non_y2/ag_ksimport
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
# additional files
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/var/adm/fillup-templates/sysconfig.autoinstall
|
|
|
|
|
|
|
|
%files installation
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/share/YaST2/scrconf/autoinstall.scr
|
|
|
|
/usr/share/YaST2/scrconf/cfg_autoinstall.scr
|
|
|
|
# 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
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/modules/AutoinstClone.y*
|
|
|
|
%dir /usr/share/YaST2/include/autoinstall
|
|
|
|
/usr/share/YaST2/include/autoinstall/autopart.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/io.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/autoinst_dialogs.ycp
|
2008-06-23 01:41:06 +02:00
|
|
|
/usr/share/YaST2/include/autoinstall/AdvancedPartitionDialog.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/DriveDialog.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/PartitionDialog.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/StorageDialog.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/VolgroupDialog.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/common.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/tree.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/types.ycp
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/control/*.xml
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/modules/AutoInstall.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstScripts.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstGeneral.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstImage.y*
|
|
|
|
/usr/share/YaST2/modules/Y2ModuleConfig.y*
|
|
|
|
/usr/share/YaST2/modules/Profile.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstFile.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstConfig.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstSoftware.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstLVM.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstRAID.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstStorage.y*
|
|
|
|
/usr/share/YaST2/modules/AutoInstallRules.y*
|
|
|
|
/usr/share/YaST2/modules/ProfileLocation.y*
|
2008-06-23 01:41:06 +02:00
|
|
|
/usr/share/YaST2/modules/AutoinstCommon.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstDrive.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstPartPlan.y*
|
|
|
|
/usr/share/YaST2/modules/AutoinstPartition.y*
|
2010-03-01 01:40:09 +01:00
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
#clients
|
|
|
|
/usr/share/YaST2/clients/inst_autoinit.ycp
|
|
|
|
/usr/share/YaST2/clients/inst_autoimage.ycp
|
|
|
|
/usr/share/YaST2/clients/inst_autosetup.ycp
|
|
|
|
/usr/share/YaST2/clients/inst_autoconfigure.ycp
|
|
|
|
/usr/share/YaST2/clients/inst_autopost.ycp
|
|
|
|
/usr/share/YaST2/clients/files_auto.ycp
|
|
|
|
/usr/share/YaST2/clients/autoinst_test_clone.ycp
|
|
|
|
/usr/share/YaST2/clients/autoinst_test_stage.ycp
|
|
|
|
/usr/share/YaST2/clients/autoinst_scripts1_finish.ycp
|
|
|
|
/usr/share/YaST2/clients/autoinst_scripts2_finish.ycp
|
|
|
|
/usr/share/YaST2/clients/ayast_probe.ycp
|
2011-01-19 15:22:44 +01:00
|
|
|
/usr/share/YaST2/clients/inst_autosetup_upgrade.ycp
|
|
|
|
/usr/share/YaST2/clients/inst_store_upgrade_software.ycp
|
|
|
|
|
2007-01-15 23:51:58 +01:00
|
|
|
/usr/share/YaST2/include/autoinstall/xml.ycp
|
|
|
|
/usr/share/YaST2/include/autoinstall/ask.ycp
|
2010-03-01 01:40:09 +01:00
|
|
|
|
|
|
|
# scripts
|
2012-02-01 16:30:28 +01:00
|
|
|
%{_prefix}/lib/YaST2/bin/fetch_image.sh
|
2012-11-13 18:03:11 +01:00
|
|
|
%{_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
|