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

561 lines
21 KiB
RPMSpec
Raw Normal View History

%define brand alt
%define Brand ALT
2016-07-15 09:12:46 +03:00
%define theme education
%define Theme Education
%define codename Parus major
%define variants altlinux-backup-server altlinux-desktop altlinux-gnome-desktop altlinux-kdesktop altlinux-lite altlinux-lxdesktop altlinux-office-desktop altlinux-office-server altlinux-school-server altlinux-sisyphus altlinux-spt altlinux-tablet altlinux-workbench informika-schoolmaster ivk-chainmail lxde-desktop lxde-school-lite Platform6-server-light school-junior school-lite school-junior school-master school-server school-teacher school-terminal simply-linux sisyphus-server-light altlinux-centaurus alt-server alt-workstation xalt-kworkstation
2013-12-24 06:48:31 +04:00
%define status %nil
%define status_en %nil
2016-07-15 09:12:46 +03:00
%define distro_name ALT Education 8.0%status_en
%define distro_name_ru Альт Образование 8.0%status
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
2011-11-22 15:47:43 +04:00
Name: branding-%brand-%theme
Version: 8.0
Release: alt0.3.M80P.1
BuildArch: noarch
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-google-droid-sans
BuildRequires: design-bootloader-source >= 5.0-alt2
2009-11-23 13:48:02 +03:00
BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel
BuildRequires: libqt4-devel
2016-07-15 09:12:46 +03:00
BuildRequires: ImageMagick fontconfig bc libGConf-devel fribidi
2011-11-22 15:47:43 +04:00
Source: branding.tar
Group: Graphics
Summary: System/Base
License: GPLv2+
%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+
2013-09-25 17:29:10 +04:00
PreReq: coreutils
Provides: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
Obsoletes: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-bootloader ";done )
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
2011-04-26 10:12:11 +04:00
BuildArch: noarch
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
2011-04-13 18:57:45 +04:00
Provides: plymouth-theme-%theme
Requires: plymouth-plugin-script
2013-09-25 17:29:10 +04:00
PreReq: plymouth
2008-12-18 15:49:13 +03:00
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-bootsplash ";done )
%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: GPL
Group: System/Configuration/Other
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
# lexicographically first of the village
Conflicts: branding-sisyphus-server-light-alterator
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-alterator ";done )
Obsoletes: design-alterator-server design-alterator-desktop design-altertor-browser-desktop design-altertor-browser-server branding-altlinux-backup-server-alterator
PreReq(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
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
PreReq(post,preun): alternatives >= 0.2
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-graphics ";done )
%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
%define conflicts_list altlinux-release-sisyphus altlinux-release-4.0 altlinux-release-5.0 altlinux-release-5.1 altlinux-release-junior altlinux-release-master altlinux-release-server altlinux-release-terminal altlinux-release-small_business
%package release
Summary: %distro_name release file
Summary(ru_RU.UTF-8): Описание дистрибутива %distro_name_ru
2013-09-25 17:29:10 +04:00
License: GPL
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-alt-%theme-release
Conflicts: %conflicts_list
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-release ";done )
%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
Obsoletes: alt-license-%theme alt-notes-%theme
2013-09-25 17:29:10 +04:00
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
Conflicts: alt-notes-children alt-notes-hpc alt-notes-junior alt-notes-junior-sj alt-notes-junior-sm alt-notes-office-server alt-notes-server-lite alt-notes-skif alt-notes-terminal
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-notes ";done )
%description notes
Distribution license and release notes
%description notes -l ru_RU.UTF-8
В данном пакете находится лицензия и дополнительные сведения
для дистрибутива %distro_name_ru.
%package kde4-settings
BuildArch: noarch
Summary: KDE4 settings for %distro_name
License: Distributable
2013-09-25 17:29:10 +04:00
Group: Graphical desktop/KDE
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-kde4-settings ";done )
PreReq: %name-graphics
2010-03-04 17:31:13 +03:00
%description kde4-settings
KDE4 settings for %distro_name
%package xfce-settings
Summary: default settings for Xfce 4.6 for %distro_name
2010-03-04 17:31:13 +03:00
License: Distributable
Group: Graphical desktop/XFce
Requires: etcskel gtk3-theme-clearlooks-phenix
Requires: gnome-icon-theme icon-theme-simple-sl
Requires: branding-%brand-%theme-graphics
2010-03-04 17:31:13 +03:00
Obsoletes: xfce-settings-lite xfce-settings-school-lite
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-xfce-settings ";done )
2010-03-04 17:31:13 +03:00
Conflicts: xfce-settings-simply-linux
%description xfce-settings
XFCE settings for %distro_name
2010-12-15 14:08:43 +03:00
%package fvwm-settings
2011-04-26 14:36:14 +04:00
BuildArch: noarch
Summary: FVWM2 settings for %distro_name
2010-12-15 14:08:43 +03:00
License: Distributable
2013-09-25 17:29:10 +04:00
Group: Graphical desktop/FVWM based
Requires: altlinux-freedesktop-menu-gnomish-menu
2010-12-15 14:08:43 +03:00
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-fvwm-settings ";done )
%description fvwm-settings
FVWM2 settings for %distro_name
2010-12-15 14:08:43 +03:00
%package mate-settings
BuildArch: noarch
Summary: MATE settings for %distro_name
License: Distributable
Group: Graphical desktop/GNOME
Requires: gksu
Requires: dconf
Requires: gtk3-theme-clearlooks-phenix
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-gnome-settings ";done )
PreReq(post): lightdm-gtk-greeter
2013-04-11 12:53:54 +04:00
PreReq(post): libgio
%description mate-settings
MATE settings for %distro_name
%package slideshow
Summary: Slideshow for %distro_name installer
Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива %distro_name_ru
License: Distributable
Group: System/Configuration/Other
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-slideshow ";done )
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
%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
Obsoletes: indexhtml-desktop indexhtml-Desktop
Conflicts: %(for n in %variants ; do [ "$n" = %brand-%theme ] || echo -n "branding-$n-indexhtml ";done )
Conflicts: indexhtml-sisyphus
Conflicts: indexhtml-school_junior
Conflicts: indexhtml-school_lite
Conflicts: indexhtml-school_master
Conflicts: indexhtml-school_terminal
Conflicts: indexhtml-small_business
Conflicts: indexhtml-school-server
Conflicts: branding-altlinux-backup-server-indexhtml
Requires: xdg-utils
2016-08-31 18:06:11 +03:00
Requires: docs-alt-education
Requires: docs-linux_intro
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.
2011-06-10 20:17:24 +04:00
%package menu
Summary: Menu for %distro_name
2011-06-10 20:17:24 +04:00
License: Distributable
Group: Graphical desktop/Other
2011-07-01 16:29:48 +04:00
Requires(pre): altlinux-freedesktop-menu-common
Requires: altlinux-freedesktop-menu-common
2011-06-10 20:17:24 +04:00
%description menu
Menu for %distro_name
2011-06-10 20:17:24 +04:00
%package system-settings
Summary: Some system settings for Simply Linux
License: GPLv2+
Group: System/Base
# Really we need lightdm only, but it can pull another greeter.
Requires: lightdm-gtk-greeter
%description system-settings
Some system settings for Simply Linux.
%prep
2011-11-30 12:20:49 +04:00
%setup -n branding
%ifnarch %arm
%define x86 boot
%else
%define x86 %nil
%endif
%build
autoconf
2013-10-16 13:11:16 +04: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' X86='%x86' ./configure
make
%install
2011-04-13 18:57:45 +04:00
%makeinstall
#graphics
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
mkdir -p %buildroot/%_niconsdir
install graphics/icons/slinux.png %buildroot/%_niconsdir/slinux.png
2010-04-30 16:37:31 +04:00
install graphics/icons/mini/slinux.png %buildroot/%_iconsdir/altlinux.png
cp -ar graphics/* %buildroot/%_datadir/design/%theme
pushd %buildroot/%_datadir/design/%theme
pushd backgrounds
ln -sf ../../../wallpapers more
popd
popd
2016-08-31 13:08:34 +03:00
# install product icon
for size in 16 22 24 32 48 64 128; do
install -Dm 0644 graphics/icons/alt-education-$size.png %buildroot%_iconsdir/hicolor/${size}x${size}/apps/alt-education.png
done
2013-10-25 16:21:42 +04:00
GRAPHICS_ALTPRIO=`printf '%%.3d%%.3d%%.3d%%.3d\n' %design_graphics_abi_epoch %design_graphics_abi_major %design_graphics_abi_minor %design_graphics_abi_bugfix`
install -d %buildroot//etc/alternatives/packages.d
cat >%buildroot/etc/alternatives/packages.d/%name-graphics <<__EOF__
2009-11-19 17:26:37 +03:00
%_datadir/design-current %_datadir/design/%theme $GRAPHICS_ALTPRIO
%_datadir/design/current %_datadir/design/%theme $GRAPHICS_ALTPRIO
__EOF__
#release
2009-11-19 18:16:45 +03:00
mkdir -p %buildroot%_sysconfdir/buildreqs/packages/ignore.d/
install -pD -m644 /dev/null %buildroot%_sysconfdir/buildreqs/packages/ignore.d/%name-release
2013-10-16 13:11:16 +04:00
echo "%distro_name" >%buildroot%_sysconfdir/altlinux-release
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir/$n-release
done
install -pD -m644 components/systemd/os-release %buildroot%_sysconfdir/os-release
2016-07-11 14:41:17 +03:00
# limits
mkdir -p %buildroot%_sysconfdir/security/limits.d/
cat <<__EOF__ >%buildroot%_sysconfdir/security/limits.d/77-%name.conf
* soft nproc 3072
root soft nproc 1024
* hard nproc 4096
__EOF__
#notes
pushd notes
%makeinstall
popd
#kde4-settings
pushd kde4-settings
mkdir -p %buildroot%_sysconfdir/skel/.kde4
cp -a kde4/* %buildroot%_sysconfdir/skel/.kde4/
mkdir -p %buildroot%_sysconfdir/kde4/xdg/menus/applications-merged/
install -m 0644 menu/*.menu %buildroot%_sysconfdir/kde4/xdg/menus/applications-merged/
popd
2016-03-29 17:15:42 +03:00
# disable annoing autostart
mkdir -p %buildroot/%_sysconfdir/skel/.config/autostart/
for n in tracker-extract tracker-miner-apps tracker-miner-fs tracker-miner-user-guides tracker-store ; do
echo -e "[Desktop Entry]\nHidden=true" > %buildroot%_sysconfdir/skel/.config/autostart/$n.desktop
done
# disable annoing menus
mkdir -p %buildroot/%_sysconfdir/skel/.local/share/applications/
for n in gnome-mplayer mplayer gmplayer ; do
echo -e "[Desktop Entry]\nHidden=true" > %buildroot/%_sysconfdir/skel/.local/share/applications/$n.desktop
done
ln -s license.ru.html %buildroot%_datadir/alt-notes/license.uk.html
2010-12-15 14:08:43 +03:00
#fwvm-settings
mkdir -p %buildroot/etc/skel
install -m 644 fvwm-settings/.fvwm2rc %buildroot/etc/skel/
#mate-settings
pushd mate-settings
install -m 644 -D 50_mate-background.gschema.override '%buildroot%_datadir/glib-2.0/schemas/50_mate-background.gschema.override'
install -m 644 -D 60_mate-theme.gschema.override '%buildroot%_datadir/glib-2.0/schemas/60_mate-theme.gschema.override'
install -m 644 -D Trolltech.conf '%buildroot%_sysconfdir/skel/.config/Trolltech.conf'
popd
mkdir -p %buildroot/etc/skel/XDG-Templates.skel/
2010-03-04 17:31:13 +03:00
2011-04-28 20:40:25 +04:00
cp -r xfce-settings/etcskel/* %buildroot/etc/skel/
cp -r xfce-settings/etcskel/.config %buildroot/etc/skel/
cp -r xfce-settings/etcskel/.local %buildroot/etc/skel/
2011-04-28 20:40:25 +04:00
cp -r xfce-settings/etcskel/.gconf %buildroot/etc/skel/
2011-12-23 17:46:50 +04:00
cp -r xfce-settings/etcskel/.vimrc %buildroot/etc/skel/
2010-04-01 19:40:50 +04:00
2011-04-28 20:40:25 +04:00
install -m 644 xfce-settings/etcskel/.wm-select %buildroot/etc/skel/
2010-03-04 17:31:13 +03:00
mkdir -p %buildroot/usr/share/backgrounds/xfce/
cp -P xfce-settings/backgrounds/*.{jpg,png} %buildroot/usr/share/backgrounds/xfce/
2010-03-04 17:31:13 +03:00
install -pDm0755 xfce-settings/scripts/zdg-move-templates.sh %buildroot%_sysconfdir/X11/profile.d/zdg-move-templates.sh
2010-03-04 17:31:13 +03:00
2016-07-11 14:41:17 +03:00
install -Dm 644 gnome-settings/gtkrc-2 %buildroot/etc/skel/.gtkrc-2.0
install -Dm 644 gnome-settings/gtk3-settings.ini %buildroot/etc/skel/.config/gtk-3.0/settings.ini
#slideshow
mkdir -p %buildroot/usr/share/install2/slideshow
2011-07-15 19:08:32 +04:00
mkdir -p %buildroot/etc/alterator
2013-08-06 16:39:47 +04:00
cp -a slideshow/* %buildroot/usr/share/install2/slideshow/
2011-07-15 19:08:32 +04:00
install slideshow/slideshow.conf %buildroot/etc/alterator/
2013-08-06 16:39:47 +04:00
# Set English slideshow as default
#ln -s slides-en %buildroot/usr/share/install2/slideshow/slides
#indexhtml
%define _altdocsdir %_defaultdocdir/alt-docs
%define _indexhtmldir %_defaultdocdir/indexhtml
2011-04-13 18:57:45 +04:00
install components/indexhtml/*.html %buildroot%_defaultdocdir/indexhtml/
mkdir -p %buildroot%_defaultdocdir/indexhtml/images
install components/indexhtml/images/* %buildroot%_defaultdocdir/indexhtml/images/
2016-08-31 17:04:51 +03:00
install -Dm755 components/indexhtml/indexhtml.desktop %buildroot%_datadir/kde4/apps/kio_desktop/DesktopLinks/indexhtml.desktop
install -Dm755 components/indexhtml/indexhtml.desktop %buildroot%_datadir/kf5/kio_desktop/DesktopLinks/indexhtml.desktop
install -Dm755 components/indexhtml/indexhtml.desktop %buildroot%_sysconfdir/skel/Desktop/indexhtml.desktop
2011-06-10 20:17:24 +04:00
#menu
mkdir -p %buildroot/usr/share/slinux-style/applications
install menu/applications/* %buildroot/usr/share/slinux-style/applications/
2011-06-17 16:04:59 +04:00
mkdir -p %buildroot/etc/xdg/menus/xfce-applications-merged
cp menu/50-xfce-applications.menu %buildroot/etc/xdg/menus/xfce-applications-merged/
2011-09-22 16:08:23 +04:00
mkdir -p %buildroot/usr/share/desktop-directories
cp menu/altlinux-wine.directory %buildroot/usr/share/desktop-directories/
2011-06-10 20:17:24 +04:00
# system-settings
mkdir -p %buildroot/%_sysconfdir/polkit-1/rules.d/
cp -a system-settings/polkit-rules/*.rules %buildroot/%_sysconfdir/polkit-1/rules.d/
#install -Dm644 system-settings/ldm_pam_environment %buildroot%_localstatedir/ldm/.pam_environment
#bootloader
%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 ||:
%post bootloader
%__ln_s -nf %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
%preun bootloader
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%post indexhtml
%_sbindir/indexhtml-update
%post system-settings
#chown _ldm:_ldm %_localstatedir/ldm/.pam_environment
sed -i '/pam_env\.so/ {
/user_readenv/ b
s/pam_env\.so/pam_env.so user_readenv=1/ }
' %_sysconfdir/pam.d/lightdm-greeter
%files bootloader
%_datadir/gfxboot/%theme
/boot/splash/%theme
2011-04-13 18:57:45 +04:00
/boot/grub/themes/%theme
#bootsplash
%post bootsplash
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 ||:
%post mate-settings
subst 's/#theme-name=/theme-name=Clearlooks-Phenix/' /etc/lightdm/lightdm-gtk-greeter.conf ||:
2013-04-11 12:53:54 +04:00
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
2008-12-18 15:49:13 +03:00
%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
%_niconsdir/slinux.png
2010-04-30 16:37:31 +04:00
%_iconsdir/altlinux.png
2016-08-31 13:08:34 +03:00
%_iconsdir/hicolor/*/apps/alt-education.png
%files bootsplash
2011-04-13 18:57:45 +04:00
%_datadir/plymouth/themes/%theme/*
%files release
%_sysconfdir/*-release
%_sysconfdir/buildreqs/packages/ignore.d/*
2016-07-11 14:41:17 +03:00
%config(noreplace) %_sysconfdir/security/limits.d/77-%name.conf
%files notes
%_datadir/alt-notes/*
%files kde4-settings
%_sysconfdir/kde4/xdg/menus/applications-merged/*.menu
%_sysconfdir/skel/.kde4
2010-12-15 14:08:43 +03:00
%files fvwm-settings
%_sysconfdir/skel/.fvwm2rc
%files mate-settings
%_datadir/glib-2.0/schemas/*.gschema.override
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
2010-03-04 17:31:13 +03:00
%files xfce-settings
%_sysconfdir/X11/profile.d/zdg-move-templates.sh
/etc/skel/XDG-Templates.skel/
2010-03-04 17:31:13 +03:00
/etc/skel/.wm-select
/etc/skel/.config
2016-07-11 14:41:17 +03:00
/etc/skel/.gtkrc-2.0
/etc/skel/.local
2010-03-04 17:31:13 +03:00
/etc/skel/.gconf
2011-12-21 21:45:39 +04:00
/etc/skel/.vimrc
/usr/share/backgrounds/xfce/*
%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
2013-09-26 15:11:43 +04:00
%ghost %_indexhtmldir/index.html
%_indexhtmldir/*
%_desktopdir/*
2013-10-25 16:05:20 +04:00
%_datadir/kde4/apps/kio_desktop/DesktopLinks/indexhtml.desktop
2016-08-31 17:04:51 +03:00
%_datadir/kf5/kio_desktop/DesktopLinks/indexhtml.desktop
%attr(0755,root,root) %_sysconfdir/skel/Desktop/indexhtml.desktop
2011-06-10 20:17:24 +04:00
%files menu
/usr/share/slinux-style
2011-06-17 16:04:59 +04:00
/etc/xdg/menus/xfce-applications-merged/50-xfce-applications.menu
2011-09-22 16:08:23 +04:00
/usr/share/desktop-directories/altlinux-wine.directory
2011-06-10 20:17:24 +04:00
%files system-settings
%config %_sysconfdir/polkit-1/rules.d/*.rules
#config %_localstatedir/ldm/.pam_environment
%changelog
* Tue Aug 30 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.3.M80P.1
- Set yellow labels for gfxboot
- Use predefined boot.png with logo for grub
- Set bright color for menubar in grub
* Fri Aug 26 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.2.M80P.1
- Do not require polkit-gnome
- Set SimpleSL icon theme in XFCE settings
* Fri Aug 26 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.1.M80P.2
- Rebuild with conflict with branding-xalt-kworkstation
* Fri Jul 22 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.1.M80P.1
2016-07-15 09:12:46 +03:00
- Initial build