2016-06-21 19:35:46 +03:00
%define brand alt
%define Brand ALT
2019-12-02 21:43:12 +03:00
%define theme server-v
%define Theme Server-V
2019-01-31 14:19:27 +03:00
%define codename FalcoRusticolus
2019-08-16 15:15:49 +03:00
%define status %nil
%define status_en %nil
2016-08-31 18:20:06 +03:00
%define flavour %brand-%theme
2009-07-06 00:59:02 +04:00
2013-10-25 17:15:40 +04:00
%define design_graphics_abi_epoch 0
%define design_graphics_abi_major 12
%define design_graphics_abi_minor 0
%define design_graphics_abi_bugfix 0
2017-03-10 16:42:06 +03:00
%define data_cur_dir %_datadir/branding-data-current
2017-10-17 14:46:49 +03:00
%define _unpackaged_files_terminate_build 1
2016-08-31 18:20:06 +03:00
Name : branding-%flavour
2019-10-17 12:52:39 +03:00
Version : 9.0
2020-03-17 15:34:40 +03:00
Release : alt4
2019-06-04 19:42:27 +03:00
Url : https://basealt.ru
2009-07-06 00:59:02 +04:00
2019-06-03 17:26:19 +03:00
%ifarch %ix86 x86_64
BuildRequires : gfxboot >= 4
BuildRequires : cpio fonts-ttf-dejavu fonts-ttf-google-droid-sans
2019-10-15 21:26:54 +03:00
BuildRequires : design-bootloader-source >= 5.0-alt2 fribidi
2019-10-09 17:46:35 +03:00
%endif
2009-07-06 00:59:02 +04:00
2016-08-31 18:20:06 +03:00
BuildRequires(pre): rpm-macros-branding
2009-07-06 00:59:02 +04:00
BuildRequires : libalternatives-devel
2019-05-17 13:16:03 +03:00
BuildRequires : qt5-base-devel
2009-07-06 00:59:02 +04:00
2019-10-15 21:28:02 +03:00
BuildRequires : ImageMagick fontconfig bc
2009-07-06 00:59:02 +04:00
2011-11-22 15:47:43 +04:00
Source : branding.tar
2009-07-06 00:59:02 +04:00
Group : Graphics
Summary : System/Base
2013-07-11 17:00:21 +04:00
License : GPLv2+
2009-07-06 00:59:02 +04:00
2019-12-12 19:54:08 +03:00
%define distro_name ALT Virtualization Server %version%status_en
2019-12-02 21:43:12 +03:00
%define distro_name_ru Альт Сервер Виртуализации %version%status
2016-08-31 18:26:38 +03:00
2009-07-06 00:59:02 +04:00
%description
2012-08-29 14:21:47 +04:00
Distro-specific packages with design and texts for %distro_name.
2009-08-19 13:43:15 +04:00
%description -l ru_RU.UTF-8
2012-08-29 14:21:47 +04:00
Пакеты оформления для дистрибутива %distro_name_ru.
2009-07-06 00:59:02 +04:00
%package bootloader
2013-09-25 17:29:10 +04:00
Group : System/Configuration/Boot and Init
2011-04-13 18:57:45 +04:00
Summary : Graphical boot logo for grub2, lilo and syslinux
2009-08-21 12:00:55 +04:00
Summary(ru_RU.UTF-8): Тема для экрана выбора вариантов загрузки (lilo и syslinux)
2013-07-11 17:00:21 +04:00
License : GPLv2+
2009-07-06 00:59:02 +04:00
2019-04-29 13:58:56 +03:00
Requires(pre) : coreutils
2013-10-16 18:53:08 +04:00
Provides : design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
2009-07-06 00:59:02 +04:00
Obsoletes : design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour bootloader
2009-07-06 00:59:02 +04:00
2013-08-06 13:03:13 +04:00
%define grub_normal white/light-blue
%define grub_high black/light-gray
2011-04-13 18:57:45 +04:00
2009-07-06 00:59:02 +04:00
%description bootloader
2012-08-29 14:21:47 +04:00
Here you find the graphical boot logo for %distro_name.
2009-08-19 13:43:15 +04:00
Suitable for both lilo and syslinux.
%description bootloader -l ru_RU.UTF-8
В данном пакете находится тема для экрана выбора вариантов загрузки (lilo и syslinux)
2012-08-29 14:21:47 +04:00
для дистрибутива %distro_name_ru.
2009-07-06 00:59:02 +04:00
%package bootsplash
2013-09-25 17:29:10 +04:00
Summary : Theme for splash animations during bootup
2013-09-25 17:29:10 +04:00
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License : Distributable
Group : System/Configuration/Boot and Init
2019-10-15 21:00:07 +03:00
BuildArch : noarch
2011-04-13 18:57:45 +04:00
Provides : plymouth-theme-%theme
Requires : plymouth-plugin-script
2019-04-29 13:58:56 +03:00
Requires(pre) : plymouth
2008-12-18 15:49:13 +03:00
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour bootsplash
2009-07-06 00:59:02 +04:00
%description bootsplash
2012-08-29 14:21:47 +04:00
This package contains graphics for boot process for %distro_name
2009-08-19 13:43:15 +04:00
(needs console splash screen enabled).
%description bootsplash -l ru_RU.UTF-8
2011-05-13 18:22:29 +04:00
В данном пакете находится тема для экрана загрузки для дистрибутива
2012-08-29 14:21:47 +04:00
%distro_name_ru.
2009-07-06 00:59:02 +04:00
%package alterator
2012-08-29 14:21:47 +04:00
Summary : Design for alterator for %distro_name
Summary(ru_RU.UTF-8): Тема для " Ц е н т р а у п р а в л е н и я с и с т е м о й " и QT для дистрибутива %distro_name_ru
2020-03-16 16:47:17 +03:00
License : GPLv2+
2009-07-06 00:59:02 +04:00
Group : System/Configuration/Other
2019-06-03 17:26:19 +03:00
BuildArch : noarch
2009-07-06 00:59:02 +04:00
Provides : design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Provides : alterator-icons design-alterator design-alterator-%theme
2013-09-25 17:29:10 +04:00
Obsoletes : branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
2009-07-06 00:59:02 +04:00
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour alterator
2009-11-24 11:01:44 +03:00
Obsoletes : design-alterator-server design-alterator-desktop design-altertor-browser-desktop design-altertor-browser-server branding-altlinux-backup-server-alterator
2019-04-29 13:58:56 +03:00
Requires(post,preun): alternatives >= 0.2 alterator
2009-07-06 00:59:02 +04:00
%description alterator
2012-08-29 14:21:47 +04:00
Design for QT and web alterator for %distro_name.
2009-08-19 13:43:15 +04:00
%description alterator -l ru_RU.UTF-8
В данном пакете находится тема для " Ц е н т р а у п р а в л е н и я с и с т е м о й " (Alterator)
2012-08-29 14:21:47 +04:00
и модулей библиотеки QT для дистрибутива %distro_name_ru.
2009-07-06 00:59:02 +04:00
%package graphics
2012-08-29 14:21:47 +04:00
Summary : Design for %distro_name
Summary(ru_RU.UTF-8): Тема для дистрибутива %distro_name_ru
2009-07-06 00:59:02 +04:00
License : Different licenses
Group : Graphics
2019-06-03 17:26:19 +03:00
BuildArch : noarch
2009-07-06 00:59:02 +04:00
Provides : design-graphics-%theme branding-alt-%theme-graphics
Obsoletes : branding-alt-%theme-graphics design-graphics-%theme
2013-10-25 17:15:40 +04:00
Provides : design-graphics = %design_graphics_abi_major.%design_graphics_abi_minor.%design_graphics_abi_bugfix
2011-04-13 18:57:45 +04:00
2019-04-29 13:58:56 +03:00
Requires(post,preun): alternatives >= 0.2
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour graphics
2009-07-06 00:59:02 +04:00
%description graphics
2012-08-29 14:21:47 +04:00
This package contains some graphics for %distro_name design.
2009-08-19 13:43:15 +04:00
%description graphics -l ru_RU.UTF-8
В данном пакете находится необходимые графические элементы для дистрибутива
2012-08-29 14:21:47 +04:00
%distro_name_ru.
2009-07-06 00:59:02 +04:00
%define provide_list altlinux fedora redhat system altlinux
%define obsolete_list altlinux-release fedora-release redhat-release
2016-08-31 18:20:06 +03:00
%package release
2019-06-03 17:26:19 +03:00
BuildArch : noarch
2013-09-25 17:29:10 +04:00
Summary : %distro_name release file
2012-08-29 14:21:47 +04:00
Summary(ru_RU.UTF-8): Описание дистрибутива %distro_name_ru
2020-03-16 16:47:17 +03:00
License : GPLv2+
2013-09-25 17:29:10 +04:00
Group : System/Configuration/Other
2009-07-06 00:59:02 +04:00
Provides : %(for n in %provide_list; do echo -n " $ n - r e l e a s e = % v e r s i o n - % r e l e a s e " ; done) altlinux-release-%theme branding-alt-%theme-release
Obsoletes : %obsolete_list branding-alt-%theme-release
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour release
2013-09-09 23:33:38 +04:00
2009-07-06 00:59:02 +04:00
%description release
2012-08-29 14:21:47 +04:00
%distro_name release file.
2009-08-19 13:43:15 +04:00
%description release -l ru_RU.UTF-8
2012-08-29 14:21:47 +04:00
В данном пакете находится описание дистрибутива %distro_name_ru.
2009-07-06 00:59:02 +04:00
%package notes
2011-04-26 14:36:14 +04:00
BuildArch : noarch
2013-09-25 17:29:10 +04:00
Provides : alt-license-theme = %version alt-notes-%theme
2009-02-10 22:40:03 +03:00
Obsoletes : alt-license-%theme alt-notes-%theme
2013-09-25 17:29:10 +04:00
Summary : Distribution license and release notes
2012-08-29 14:21:47 +04:00
Summary(ru_RU.UTF-8): Лицензия и дополнительные сведения для дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License : Distributable
Group : Documentation
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour notes
2009-07-06 00:59:02 +04:00
%description notes
Distribution license and release notes
2009-08-19 13:43:15 +04:00
%description notes -l ru_RU.UTF-8
2012-08-29 14:21:47 +04:00
В данном пакете находится лицензия и дополнительные сведения
для дистрибутива %distro_name_ru.
2009-08-19 13:43:15 +04:00
%package slideshow
2012-08-29 14:21:47 +04:00
Summary : Slideshow for %distro_name installer
Summary(ru_RU.UTF-8): Изображения для организации " с л а й д ш о у " в установщике дистрибутива %distro_name_ru
2009-07-06 00:59:02 +04:00
License : Distributable
Group : System/Configuration/Other
2013-10-14 17:42:53 +04:00
BuildArch : noarch
2019-06-03 17:26:19 +03:00
%branding_add_conflicts %flavour slideshow
2009-07-06 00:59:02 +04:00
%description slideshow
2012-08-29 14:21:47 +04:00
Slideshow for %distro_name installer.
2009-07-06 00:59:02 +04:00
2009-08-19 13:43:15 +04:00
%description slideshow -l ru_RU.UTF-8
2009-08-21 12:00:55 +04:00
В данном пакете находятся изображения для организации " с л а й д ш о у " в установщике
2012-08-29 14:21:47 +04:00
дистрибутива %distro_name_ru.
2009-07-06 00:59:02 +04:00
2009-08-19 13:43:15 +04:00
%package indexhtml
2011-04-26 14:36:14 +04:00
BuildArch : noarch
2013-09-25 17:29:10 +04:00
Summary : HTML welcome page for %distro_name
2012-08-29 14:21:47 +04:00
Summary(ru_RU.UTF-8): Стартовая страница для дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License : distributable
Group : System/Base
2009-07-06 00:59:02 +04:00
Provides : indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0
Obsoletes : indexhtml-desktop indexhtml-Desktop
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour indexhtml
2009-07-06 00:59:02 +04:00
2019-05-29 21:43:43 +03:00
Requires : docs-alt-%theme
2009-07-06 00:59:02 +04:00
Requires(post) : indexhtml-common
%description indexhtml
2013-09-25 17:29:10 +04:00
%distro_name welcome page.
2009-08-19 13:43:15 +04:00
%description indexhtml -l ru_RU.UTF-8
2011-05-13 18:22:29 +04:00
В данном пакете содержится стартовая страница для дистрибутива
2012-08-29 14:21:47 +04:00
%distro_name_ru.
2009-08-19 13:43:15 +04:00
2009-07-06 00:59:02 +04:00
%prep
2011-11-30 12:20:49 +04:00
%setup -n branding
2009-07-06 00:59:02 +04:00
%build
autoconf
2019-10-15 20:55:10 +03:00
THEME=%theme NAME='%Brand %Theme' BRAND_FNAME='%brand' BRAND='%brand' STATUS_EN=%status_en STATUS=%status VERSION=%version PRODUCT_NAME_RU='%distro_name_ru' PRODUCT_NAME='%distro_name' CODENAME='%codename' ./configure
2009-07-06 00:59:02 +04:00
make
%install
2011-04-13 18:57:45 +04:00
%makeinstall
2019-05-14 12:14:19 +03:00
find %buildroot -name \*.in -delete
2009-07-06 00:59:02 +04:00
#bootloader
2019-06-03 17:26:19 +03:00
%ifarch %ix86 x86_64
2009-07-06 00:59:02 +04:00
%pre bootloader
2011-04-28 20:40:25 +04:00
[ -s /usr/share/gfxboot/%theme ] && rm -fr /usr/share/gfxboot/%theme ||:
[ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||:
2019-06-03 17:26:19 +03:00
%endif
2009-07-06 00:59:02 +04:00
%post bootloader
2019-10-16 16:58:57 +03:00
[ " $ 1 " -eq 1 ] || exit 0
2019-06-03 17:26:19 +03:00
%ifarch %ix86 x86_64
2019-10-16 17:05:30 +03:00
ln -snf %theme/message /boot/splash/message
2009-07-06 00:59:02 +04:00
. /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1)
cd boot/splash/%theme/
echo $lang > lang
[ " $ l a n g " = " C " ] || echo lang | cpio -o --append -F message
2019-10-15 21:00:07 +03:00
%endif
2011-04-13 18:57:45 +04:00
. shell-config
2011-04-28 20:40:25 +04:00
shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme/theme.txt
#shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme
2011-04-13 18:57:45 +04:00
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_NORMAL %grub_normal
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
2009-07-06 00:59:02 +04:00
2019-06-03 17:26:19 +03:00
%ifarch %ix86 x86_64
2009-07-06 00:59:02 +04:00
%preun bootloader
2019-10-17 19:27:46 +03:00
[ " $ 1 " -eq 0 ] || exit 0
2009-07-06 00:59:02 +04:00
[ " ` r e a d l i n k / b o o t / s p l a s h / m e s s a g e ` " != " % t h e m e / m e s s a g e " ] ||
2019-10-18 15:49:31 +03:00
rm -f /boot/splash/message
2019-06-03 17:26:19 +03:00
%endif
2009-07-06 00:59:02 +04:00
%post indexhtml
%_sbindir /indexhtml-update
%files bootloader
2019-06-03 17:26:19 +03:00
%ifarch %ix86 x86_64
2009-07-06 00:59:02 +04:00
%_datadir /gfxboot/%theme
/boot/splash/%theme
2019-06-03 17:26:19 +03:00
%endif
2019-10-15 21:00:07 +03:00
/boot/grub/themes/%theme
2009-07-06 00:59:02 +04:00
#bootsplash
%post bootsplash
2019-10-16 16:58:57 +03:00
[ " $ 1 " -eq 1 ] || exit 0
2011-04-13 18:57:45 +04:00
subst " s / T h e m e = . * / T h e m e = % t h e m e / " /etc/plymouth/plymouthd.conf
[ -f /etc/sysconfig/grub2 ] && \
2011-04-28 20:40:25 +04:00
subst " s | G R U B _ W A L L P A P E R = . * | G R U B _ W A L L P A P E R = / u s r / s h a r e / p l y m o u t h / t h e m e s / % t h e m e / g r u b . j p g | " \
2011-04-13 18:57:45 +04:00
/etc/sysconfig/grub2 ||:
2009-07-06 00:59:02 +04:00
2017-03-10 16:42:06 +03:00
#release
%post release
if ! [ -e %_sysconfdir /altlinux-release ] && \
! [ -e %_sysconfdir /os-release ]; then
cp -a %data_cur_dir/release/*-release %_sysconfdir /
fi
#notes
%post notes
if ! [ -e %_datadir /alt-notes/license.all.html ]; then
cp -a %data_cur_dir/alt-notes/license.*.html %_datadir /alt-notes/
fi
2009-07-06 00:59:02 +04:00
%files alterator
2011-04-13 18:57:45 +04:00
%config %_altdir /*.rcc
/usr/share/alterator-browser-qt/design/*.rcc
2009-07-06 00:59:02 +04:00
/usr/share/alterator/design/*
%files graphics
%config /etc/alternatives/packages.d/%name-graphics
%_datadir /design
2019-06-04 20:06:34 +03:00
#_iconsdir/hicolor/*/apps/alt-%theme.png
2009-07-06 00:59:02 +04:00
%files bootsplash
2011-04-13 18:57:45 +04:00
%_datadir /plymouth/themes/%theme/*
2019-11-14 19:36:03 +03:00
%_pixmapsdir /system-logo.png
2009-07-06 00:59:02 +04:00
%files release
2017-03-10 16:42:06 +03:00
%dir %data_cur_dir
%data_cur_dir/release/
2009-07-06 00:59:02 +04:00
%_sysconfdir /buildreqs/packages/ignore.d/*
2017-03-10 16:42:06 +03:00
%ghost %config (noreplace) %_sysconfdir /*-release
2009-07-06 00:59:02 +04:00
%files notes
2017-03-10 16:42:06 +03:00
%dir %data_cur_dir
%data_cur_dir/alt-notes
%_datadir /alt-notes/livecd-*
%_datadir /alt-notes/release-notes.*
%ghost %config (noreplace) %_datadir /alt-notes/license.*.html
2009-07-06 00:59:02 +04:00
%files slideshow
2011-07-15 19:08:32 +04:00
/etc/alterator/slideshow.conf
2009-07-06 00:59:02 +04:00
/usr/share/install2/slideshow
2011-04-13 18:57:45 +04:00
%define indexhtmldir %_defaultdocdir/indexhtml
2009-07-06 00:59:02 +04:00
%files indexhtml
2019-04-30 11:53:43 +03:00
%ghost %_defaultdocdir /indexhtml/index.html
%_defaultdocdir /indexhtml/*
2013-09-26 15:11:43 +04:00
%_desktopdir /*
2016-08-31 17:04:51 +03:00
%_datadir /kf5/kio_desktop/DesktopLinks/indexhtml.desktop
2019-01-31 12:54:20 +03:00
%attr (0755,root,root) %_datadir /Desktop/indexhtml.desktop
2019-06-04 20:06:34 +03:00
#_iconsdir/hicolor/*/apps/alt-%theme-desktop.png
2009-07-06 00:59:02 +04:00
%changelog
2020-03-17 15:34:40 +03:00
* Tue Mar 17 2020 Andrew A. Vasilyev <andy@altlinux.org> 9.0-alt4
- minimize buttons border
2020-03-16 16:47:17 +03:00
* Mon Mar 16 2020 Andrew A. Vasilyev <andy@altlinux.org> 9.0-alt3
- AWizardFace QPushButton min-width
2019-12-12 19:54:08 +03:00
* Thu Dec 12 2019 Alexey Shabalin <shaba@altlinux.org> 9.0-alt2
- en: Server Virtualization -> Virtualization Server
2019-12-02 21:43:12 +03:00
* Fri Dec 06 2019 Alexey Shabalin <shaba@altlinux.org> 9.0-alt1
- initial build as server-v flavour (based on server)
2019-11-14 19:36:03 +03:00