Package installer-distro-altlinux-server: Specfile

Name: installer-distro-altlinux-server
Version: 7.0.2
Release: alt3

Summary: Installer configuration (server)
License: GPL
Group: System/Configuration/Other

Url: http://www.altlinux.org/Installer
Source: %name-%version.tar
BuildArch: noarch

Packager: Michael Shigorin <mike@altlinux.org>

%description
This package contains installer configuration hopefully suitable
for an ALT Linux based server distribution.

It is derived from installer-distro-altlinux-generic.

%package stage2
Summary: Installer configuration and scripts (stage2 part)
License: GPL
Group: System/Configuration/Other
Requires: installer-stage2
# modules
Requires: alterator-sysconfig
Requires: alterator-datetime
Requires: alterator-pkg
Requires: alterator-vm
Requires: alterator-notes

%description stage2
This package contains installer configuration hopefully suitable
for an ALT Linux based server distribution.

The stage2 part is included into live installer system.

%package stage3
Summary: Installer configuration and scripts (stage3 part)
License: GPL
Group: System/Configuration/Other
Provides: installer-altlinux-generic-stage3 = %name-%version
# modules
Requires: alterator-users
Requires: alterator-root
Requires: alterator-luks
Requires: alterator-net-eth dhcpcd
Requires: alterator-net-general
Requires: installer-feature-powerbutton-stage3

%description stage3
This package contains installer configuration hopefully suitable
for an ALT Linux based server distribution.

The stage3 part is installed onto the new system's root
and executed off there during installation process.

%prep
%setup

%install
%define install2dir %_datadir/install2
mkdir -p %buildroot%install2dir
cp -a * %buildroot%install2dir/

# FIXME: /vm behaviour should be controllable in some sane manner
%post stage2
sed -i 's,^\(X-Alterator-URI=\).*$,\1/vm/ortodox,' \
	%_datadir/install2/steps/vm.desktop

%files stage2
%install2dir/*.d/*
%install2dir/alterator-menu
%install2dir/installer-steps

%files stage3

%changelog
* Wed Aug 24 2022 Anton Midyukov <antohami@altlinux.org> 7.0.2-alt3
- 05-vm-profile: fix calculation $max_disk for multiple disks

* Tue Mar 01 2022 Anton Midyukov <antohami@altlinux.org> 7.0.2-alt2
- 05-vm-profile: add support nvme*, mmc*

* Fri Mar 11 2016 Michael Shigorin <mike@altlinux.org> 7.0.2-alt1
- tweaked disk partitioning profiles towards capping the size
  of partitions differing from the "main" one (otherwise it's
  prone to e.g. three largish partitions of which two will be
  likely mostly empty forever)
- changed profile order so that "generic server" comes first

* Mon Oct 28 2013 Michael Shigorin <mike@altlinux.org> 7.0.1-alt1
- added a few more disk partitioning profiles (closes: #29483)
- fixed silly typo in steps file (non-root user *is* added now)

* Mon Jul 15 2013 Michael Shigorin <mike@altlinux.org> 7.0.0-alt1
- initial release based on installer-distro-altlinux-generic 7.0.1-alt1
- get things back somewhat closer to a useful (not test) distribution