branding-alt-virtualization.../branding.spec

347 lines
11 KiB
RPMSpec
Raw Normal View History

%define brand alt
%define Brand ALT
%define theme server-v
%define Theme Server-V
%define codename Altostratus
2019-08-16 15:15:49 +03:00
%define status %nil
%define status_en %nil
%define flavour %brand-%theme
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 1
2013-10-25 17:15:40 +04:00
%define design_graphics_abi_bugfix 0
2017-10-17 14:46:49 +03:00
%define _unpackaged_files_terminate_build 1
Name: branding-%flavour
2021-05-18 15:23:19 +03:00
Version: 9.2
Release: alt2
Url: https://basealt.ru
%ifarch %ix86 x86_64
BuildRequires: gfxboot >= 4
BuildRequires: design-bootloader-source >= 5.0-alt2
2021-04-15 02:26:58 +03:00
BuildRequires: cpio
%endif
BuildRequires: fonts-ttf-dejavu fonts-ttf-google-droid-sans
BuildRequires(pre): rpm-macros-branding
BuildRequires: libalternatives-devel
BuildRequires: qt5-base-devel
BuildRequires: ImageMagick fontconfig bc fribidi
2011-11-22 15:47:43 +04:00
Source: branding.tar
Group: Graphics
Summary: System/Base
License: GPLv2+
%define distro_name ALT Virtualization Server %version%status_en
%define distro_name_ru Альт Сервер Виртуализации %version%status
%description
Distro-specific packages with design and texts for %distro_name.
%description -l ru_RU.UTF-8
Пакеты оформления для дистрибутива %distro_name_ru.
%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
Summary(ru_RU.UTF-8): Тема для экрана выбора вариантов загрузки (lilo и syslinux)
License: GPLv2+
Requires(pre): coreutils
Provides: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
%branding_add_conflicts %flavour bootloader
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
%description bootloader
Here you find the graphical boot logo for %distro_name.
Suitable for both lilo and syslinux.
%description bootloader -l ru_RU.UTF-8
В данном пакете находится тема для экрана выбора вариантов загрузки (lilo и syslinux)
для дистрибутива %distro_name_ru.
%package bootsplash
2013-09-25 17:29:10 +04:00
Summary: Theme for splash animations during bootup
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License: Distributable
Group: System/Configuration/Boot and Init
BuildArch: noarch
2011-04-13 18:57:45 +04:00
Provides: plymouth-theme-%theme
Requires: plymouth-plugin-script
Requires(pre): plymouth
2008-12-18 15:49:13 +03:00
%branding_add_conflicts %flavour bootsplash
%description bootsplash
This package contains graphics for boot process for %distro_name
(needs console splash screen enabled).
%description bootsplash -l ru_RU.UTF-8
2011-05-13 18:22:29 +04:00
В данном пакете находится тема для экрана загрузки для дистрибутива
%distro_name_ru.
%package alterator
Summary: Design for alterator for %distro_name
Summary(ru_RU.UTF-8): Тема для "Центра управления системой" и QT для дистрибутива %distro_name_ru
License: GPLv2+
Group: System/Configuration/Other
BuildArch: noarch
Provides: design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Provides: alterator-icons design-alterator design-alterator-%theme
%branding_add_conflicts %flavour alterator
Obsoletes: design-alterator-server design-alterator-desktop design-altertor-browser-desktop design-altertor-browser-server branding-altlinux-backup-server-alterator
Requires(post,preun): alternatives >= 0.2 alterator
%description alterator
Design for QT and web alterator for %distro_name.
%description alterator -l ru_RU.UTF-8
В данном пакете находится тема для "Центра управления системой" (Alterator)
и модулей библиотеки QT для дистрибутива %distro_name_ru.
%package graphics
Summary: Design for %distro_name
Summary(ru_RU.UTF-8): Тема для дистрибутива %distro_name_ru
License: Different licenses
Group: Graphics
BuildArch: noarch
Provides: 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
Requires(post,preun): alternatives >= 0.2
%branding_add_conflicts %flavour graphics
%description graphics
This package contains some graphics for %distro_name design.
%description graphics -l ru_RU.UTF-8
В данном пакете находится необходимые графические элементы для дистрибутива
%distro_name_ru.
%define provide_list altlinux fedora redhat system altlinux
%define obsolete_list altlinux-release fedora-release redhat-release
%package release
BuildArch: noarch
Summary: %distro_name release file
Summary(ru_RU.UTF-8): Описание дистрибутива %distro_name_ru
License: GPLv2+
2013-09-25 17:29:10 +04:00
Group: System/Configuration/Other
Provides: %(for n in %provide_list; do echo -n "$n-release = %version-%release "; done) altlinux-release-%theme branding-alt-%theme-release
Obsoletes: %obsolete_list
%branding_add_conflicts %flavour release
Requires: alt-os-release
%description release
%distro_name release file.
%description release -l ru_RU.UTF-8
В данном пакете находится описание дистрибутива %distro_name_ru.
%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
Summary: Distribution license and release notes
Summary(ru_RU.UTF-8): Лицензия и дополнительные сведения для дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License: Distributable
Group: Documentation
%branding_add_conflicts %flavour notes
%description notes
Distribution license and release notes
%description notes -l ru_RU.UTF-8
В данном пакете находится лицензия и дополнительные сведения
для дистрибутива %distro_name_ru.
%package slideshow
Summary: Slideshow for %distro_name installer
Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива %distro_name_ru
License: Distributable
Group: System/Configuration/Other
Merge branch 'school-teacher' into school-server Conflicts: Makefile.in branding.spec components.mk components/ahttpd/images/first-page-button.svg components/ahttpd/images/groups/firewall.png components/ahttpd/images/groups/network.png components/ahttpd/images/groups/pkg.png components/ahttpd/images/groups/system.png components/ahttpd/images/groups/users.png components/ahttpd/images/groups/xorg.png components/ahttpd/images/last-page-button.svg components/ahttpd/images/next-page-button.svg components/ahttpd/images/prev-page-button.svg components/ahttpd/images/steps/datetime.png components/ahttpd/images/steps/finish.png components/ahttpd/images/steps/greeting.png components/ahttpd/images/steps/install.png components/ahttpd/images/steps/install2-basesystem.png components/ahttpd/images/steps/lilo.png components/ahttpd/images/steps/net-eth.png components/ahttpd/images/steps/notes-license.png components/ahttpd/images/steps/notes-release-notes.png components/ahttpd/images/steps/pkg-groups.png components/ahttpd/images/steps/preinstall.png components/ahttpd/images/steps/root.png components/ahttpd/images/steps/sysconfig-base.png components/ahttpd/images/steps/sysconfig-kbd.png components/ahttpd/images/steps/sysconfig-language.png components/ahttpd/images/steps/user.png components/ahttpd/images/steps/users.png components/ahttpd/images/steps/vm.png components/ahttpd/images/steps/x11.png components/bootloader/config.in components/bootloader/gfxboot.cfg.in components/browser-qt/design/design.ini.in components/browser-qt/design/design.qss.in components/browser-qt/theme.qrc components/grub2/theme.txt components/indexhtml/images/altlinux-logo.png components/indexhtml/images/bullet.png components/indexhtml/images/community.png components/indexhtml/images/documentation.png components/indexhtml/images/facebook.png components/indexhtml/images/lines.png components/indexhtml/images/twitter.png components/indexhtml/images/vkontakte.png components/indexhtml/index-en.html.in components/indexhtml/index-ru.html.in components/indexhtml/index.css components/indexhtml/indexhtml.desktop.in components/systemd/os-release.in configure.ac graphics/kde/kdm-logo.png images/product-logo.png notes/Makefile notes/license.all.html.in notes/license.ru.html.in notes/release-notes.all.html.in xfce-settings/etcskel/.config/xfce4/desktop/icons.screen0.rc xfce-settings/etcskel/.config/xfce4/helpers.rc xfce-settings/etcskel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml xfce-settings/etcskel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml xfce-settings/etcskel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml xfce-settings/etcskel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml xfce-settings/etcskel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
2013-10-14 17:42:53 +04:00
BuildArch: noarch
%branding_add_conflicts %flavour slideshow
%description slideshow
Slideshow for %distro_name installer.
%description slideshow -l ru_RU.UTF-8
В данном пакете находятся изображения для организации "слайдшоу" в установщике
дистрибутива %distro_name_ru.
%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
Summary(ru_RU.UTF-8): Стартовая страница для дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License: distributable
Group: System/Base
Provides: indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0
%branding_add_conflicts %flavour indexhtml
Requires: docs-alt-%theme
Requires(post): indexhtml-common
%description indexhtml
%distro_name welcome page.
%description indexhtml -l ru_RU.UTF-8
2011-05-13 18:22:29 +04:00
В данном пакете содержится стартовая страница для дистрибутива
%distro_name_ru.
%prep
2011-11-30 12:20:49 +04:00
%setup -n branding
%build
autoconf
2021-04-15 02:26:58 +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
make
%install
2011-04-13 18:57:45 +04:00
%makeinstall
2019-05-14 12:14:19 +03:00
find %buildroot -name \*.in -delete
#bootloader
%pre bootloader
%ifarch %ix86 x86_64
2011-04-28 20:40:25 +04:00
[ -s /usr/share/gfxboot/%theme ] && rm -fr /usr/share/gfxboot/%theme ||:
%endif
%ifarch %ix86 x86_64 aarch64
2011-04-28 20:40:25 +04:00
[ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||:
%endif
%post bootloader
%ifarch %ix86 x86_64 aarch64
2019-10-16 17:05:30 +03:00
ln -snf %theme/message /boot/splash/message
. /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1)
cd boot/splash/%theme/
echo $lang > lang
[ "$lang" = "C" ] || echo lang | cpio -o --append -F message
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
%endif
%ifarch %ix86 x86_64 aarch64
%preun bootloader
[ "$1" -eq 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
rm -f /boot/splash/message
%endif
%post indexhtml
%_sbindir/indexhtml-update
%files bootloader
%ifarch %ix86 x86_64
%_datadir/gfxboot/%theme
/boot/splash/%theme
%endif
/boot/grub/themes/%theme
#bootsplash
%post bootsplash
[ "$1" -eq 1 ] || exit 0
2011-04-13 18:57:45 +04:00
subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
[ -f /etc/sysconfig/grub2 ] && \
2011-04-28 20:40:25 +04:00
subst "s|GRUB_WALLPAPER=.*|GRUB_WALLPAPER=/usr/share/plymouth/themes/%theme/grub.jpg|" \
2011-04-13 18:57:45 +04:00
/etc/sysconfig/grub2 ||:
#release
%post release
if ! [ -e %_sysconfdir/altlinux-release ] && \
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
%files alterator
2011-04-13 18:57:45 +04:00
%config %_altdir/*.rcc
/usr/share/alterator-browser-qt/design/*.rcc
/usr/share/alterator/design/*
%files graphics
%config /etc/alternatives/packages.d/%name-graphics
%_datadir/design
#_iconsdir/hicolor/*/apps/alt-%theme.png
%files bootsplash
2011-04-13 18:57:45 +04:00
%_datadir/plymouth/themes/%theme/*
%_pixmapsdir/system-logo.png
%files release
%_prefix/lib/os-release
%dir %data_cur_dir
%data_cur_dir/release/
%_sysconfdir/buildreqs/packages/ignore.d/*
%ghost %config(noreplace) %_sysconfdir/*-release
%files notes
%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
%files slideshow
2011-07-15 19:08:32 +04:00
/etc/alterator/slideshow.conf
/usr/share/install2/slideshow
2011-04-13 18:57:45 +04:00
%define indexhtmldir %_defaultdocdir/indexhtml
%files indexhtml
%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
%attr(0755,root,root) %_datadir/Desktop/indexhtml.desktop
#_iconsdir/hicolor/*/apps/alt-%theme-desktop.png
%changelog
* Mon Aug 02 2021 Alexey Shabalin <shaba@altlinux.org> 9.2-alt2
- Revert "Don't change license and *-release files during update"
- indexhtml: update copyright years
- Do not obsolete packages itself without version
- Increase alternative version of design-current and design-browser-qt
for resolve duplicate provides
2021-05-18 15:23:19 +03:00
* Tue May 18 2021 Andrew A. Vasilyev <andy@altlinux.org> 9.2-alt1
- version 9.2
* Wed Oct 14 2020 Alexey Shabalin <shaba@altlinux.org> 9.1-alt3
- define codename as Altostratus
* Wed Sep 16 2020 Andrew A. Vasilyev <andy@altlinux.org> 9.1-alt2
- fix "the package obsoletes itself" error
2020-05-27 12:55:03 +03:00
* Wed May 27 2020 Andrew A. Vasilyev <andy@altlinux.org> 9.1-alt1
- version 9.1
2020-03-17 15:34:40 +03:00
* Tue Mar 17 2020 Andrew A. Vasilyev <andy@altlinux.org> 9.0-alt4
- minimize buttons border
* Mon Mar 16 2020 Andrew A. Vasilyev <andy@altlinux.org> 9.0-alt3
- AWizardFace QPushButton min-width
* Thu Dec 12 2019 Alexey Shabalin <shaba@altlinux.org> 9.0-alt2
- en: Server Virtualization -> Virtualization Server
* Fri Dec 06 2019 Alexey Shabalin <shaba@altlinux.org> 9.0-alt1
- initial build as server-v flavour (based on server)