input/grub2-theme.spec
raw · 2.9 KiB
Name: grub2-theme
Version: 5.0
Release: 3%{?dist}
Summary: Theme for GRUB2 bootloader
Summary(ru): Тема оформления для загрузчика GRUB2
License: Apache-2.0
URL: https://niceos.ru
Source0: %{name}-%{version}.tar.xz
Packager: NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor: NiceSOFT
Distribution: NiceOS.Core
BugURL: https://bugs.niceos.ru/
VCS: https://specs.niceos.ru/rmps/%{name}
BuildArch: noarch
%description
This package provides a GRUB2 theme that customizes the boot menu appearance. It
includes graphical assets and configuration files to personalize the GRUB2 boot
screen for NiceOS.
%description -l ru
Пакет предоставляет тему оформления для загрузчика GRUB2, позволяющую
персонализировать экран загрузки. Включает набор графических элементов и
конфигурационные файлы для изменения внешнего вида меню загрузки.
%package ostree
Summary: GRUB2 theme for OSTree
Summary(ru): Тема загрузчика GRUB2 для OSTree
Requires: %{name} = %{version}-%{release}
%description -n %{name}-ostree
This subpackage provides additional GRUB2 theme-related assets intended for
systems using OSTree.
%description -l ru -n %{name}-ostree
Этот подпакет содержит дополнительные элементы оформления для загрузчика GRUB2,
адаптированные для систем, использующих технологию OSTree.
%prep
%autosetup -p1
%install
install -d %{buildroot}/boot
cp -a grub2 %{buildroot}/boot/
ln -s grub2 %{buildroot}/boot/grub
mkdir -p %{buildroot}%{_sysconfdir}/default
cat > %{buildroot}%{_sysconfdir}/default/grub <<- "EOF"
GRUB_DEFAULT=saved
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_GFXMODE=640x480x32
GRUB_DISTRIBUTOR="NiceSOFT NiceOS"
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_FONT="/boot/grub2/fonts/fixedsys-regular-16.pf2"
GRUB_THEME="/boot/grub2/themes/niceos/theme.txt"
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 plymouth.enable=0 systemd.unified_cgroup_hierarchy=yes audit=1 audit_backlog_limit=8192"
GRUB_DISABLE_LINUX_UUID="false"
GRUB_DISABLE_LINUX_PARTUUID="false"
EOF
%files
/boot/grub
/boot/grub2/fonts/fixedsys-regular-16.pf2
%config(noreplace) %{_sysconfdir}/default/grub
%dir /boot/grub2/themes
%dir /boot/grub2/themes/niceos
/boot/grub2/themes/niceos/*
%files ostree
/boot/grub2/fonts/unicode.pf2
/boot/grub2/fonts/unifont.pf2
%changelog
* Sun May 10 2026 NiceOS Team <support@niceos.ru> - 4.0.6-1
- New look
* Mon Mar 02 2026 NiceOS Team <niceos@ncsgp.ru> - 5.0-2
- Audit default = on
* Sun Jan 11 2026 NiceOS Team <niceos@ncsgp.ru> - 5.0-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)