2016-06-21 19:35:46 +03:00
%define brand alt
%define Brand ALT
2016-07-15 09:12:46 +03:00
%define theme education
%define Theme Education
2016-08-31 19:00:40 +03:00
%define codename Falco rusticolus
2013-12-24 06:48:31 +04:00
%define status %nil
%define status_en %nil
2017-05-12 10:43:58 +03:00
%define distro_name ALT Education 8.2%status_en
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
2016-08-31 18:20:06 +03:00
Name : branding-%flavour
2017-05-12 10:43:58 +03:00
Version : 8.2
2018-12-27 12:31:39 +03:00
Release : alt0.M80P.2
2009-07-06 00:59:02 +04:00
BuildArch : noarch
2015-04-10 13:12:05 +03:00
BuildRequires : cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-google-droid-sans
2009-07-06 00:59:02 +04:00
BuildRequires : design-bootloader-source >= 5.0-alt2
2016-08-31 18:20:06 +03:00
BuildRequires(pre): rpm-macros-branding
2009-11-23 13:48:02 +03:00
BuildRequires(pre): libqt4-core
2009-07-06 00:59:02 +04:00
BuildRequires : libalternatives-devel
BuildRequires : libqt4-devel
2016-07-15 09:12:46 +03:00
BuildRequires : ImageMagick fontconfig bc libGConf-devel fribidi
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
2017-05-12 10:43:58 +03:00
%define distro_name_ru Альт Образование 8.2%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
2013-09-25 17:29:10 +04:00
PreReq : 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
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
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
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
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
2009-07-06 00:59:02 +04:00
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
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
2009-07-06 00:59:02 +04:00
PreReq(post,preun): alternatives >= 0.2 alterator
%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
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
2009-07-06 00:59:02 +04:00
PreReq(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
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
2013-09-25 17:29:10 +04:00
License : GPL
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
2017-05-12 10:43:58 +03:00
Requires : pam-limits-desktop
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
2016-09-05 13:55:33 +03:00
%package kde-settings
2013-09-12 06:46:48 +04:00
BuildArch : noarch
2016-09-05 13:55:33 +03:00
Summary : KDE settings for %distro_name (for KDE4 and KF5)
2013-09-12 06:46:48 +04:00
License : Distributable
2013-09-25 17:29:10 +04:00
Group : Graphical desktop/KDE
2013-09-12 06:46:48 +04:00
PreReq : %name-graphics
2016-09-05 13:55:33 +03:00
Requires : kde5-konsole-colorscheme-SolarizedPastel
Requires : fonts-ttf-google-droid-sans-mono
Provides : branding-%flavour-kde4-settings = %version-%release
Obsoletes : branding-%flavour-kde4-settings < %version-%release
%branding_add_conflicts %flavour kde-settings
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour kde4-settings
2010-03-04 17:31:13 +03:00
2016-09-05 13:55:33 +03:00
%description kde-settings
KDE settings for %distro_name (for KDE4 and KF5)
2013-09-12 06:46:48 +04:00
2013-09-09 23:33:38 +04:00
%package xfce-settings
2012-08-29 14:21:47 +04:00
Summary : default settings for Xfce 4.6 for %distro_name
2010-03-04 17:31:13 +03:00
License : Distributable
Group : Graphical desktop/XFce
2013-03-22 19:55:37 +04:00
Requires : etcskel gtk3-theme-clearlooks-phenix
2018-12-26 16:12:12 +03:00
Requires : fonts-ttf-google-droid-sans
Requires : fonts-ttf-google-droid-sans
Requires : fonts-ttf-google-droid-serif
Requires : fonts-ttf-google-droid-sans-mono
2016-07-22 00:23:06 +03:00
Requires : gnome-icon-theme icon-theme-simple-sl
2018-12-28 16:00:52 +03:00
Requires : xfce4-whiskermenu-plugin
Requires : xfce4-pulseaudio-plugin
2013-08-05 15:35:56 +04:00
Requires : branding-%brand-%theme-graphics
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour xfce-settings
2010-03-04 17:31:13 +03:00
%description xfce-settings
2013-10-16 18:53:08 +04:00
XFCE settings for %distro_name
2010-12-15 14:08:43 +03:00
2013-10-16 18:53:08 +04:00
%package fvwm-settings
2011-04-26 14:36:14 +04:00
BuildArch : noarch
2013-09-10 09:27:52 +04:00
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
2011-05-26 23:09:26 +04:00
Requires : altlinux-freedesktop-menu-gnomish-menu
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour fvwm-settings
2010-12-15 14:08:43 +03:00
%description fvwm-settings
2013-09-10 09:27:52 +04:00
FVWM2 settings for %distro_name
2010-12-15 14:08:43 +03:00
2012-12-12 17:13:39 +04:00
%package mate-settings
BuildArch : noarch
2013-09-10 09:27:52 +04:00
Summary : MATE settings for %distro_name
2012-12-12 17:13:39 +04:00
License : Distributable
Group : Graphical desktop/GNOME
Requires : gksu
Requires : dconf
2013-03-22 17:59:04 +04:00
Requires : gtk3-theme-clearlooks-phenix
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour mate-settings
2013-04-10 10:48:01 +04:00
PreReq(post): lightdm-gtk-greeter
2013-04-11 12:53:54 +04:00
PreReq(post): libgio
2012-12-12 17:13:39 +04:00
%description mate-settings
2013-09-10 09:27:52 +04:00
MATE settings for %distro_name
2009-07-06 00:59:02 +04:00
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
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour slideshow
2013-09-09 23:33:38 +04:00
2013-10-14 17:42:53 +04:00
BuildArch : noarch
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
Requires : xdg-utils
2016-08-31 18:06:11 +03:00
Requires : docs-alt-education
2011-09-16 17:10:57 +04:00
Requires : docs-linux_intro
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
2011-06-10 20:17:24 +04:00
%package menu
2012-08-29 14:21:47 +04:00
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
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour menu
2011-06-10 20:17:24 +04:00
%description menu
2012-08-29 14:21:47 +04:00
Menu for %distro_name
2011-06-10 20:17:24 +04:00
2013-07-11 17:15:24 +04:00
%package system-settings
Summary : Some system settings for Simply Linux
License : GPLv2+
Group : System/Base
2013-07-19 16:33:30 +04:00
# Really we need lightdm only, but it can pull another greeter.
2013-07-11 17:57:53 +04:00
Requires : lightdm-gtk-greeter
2016-08-31 18:20:06 +03:00
%branding_add_conflicts %flavour system-settings
2013-07-11 17:15:24 +04:00
%description system-settings
2013-07-11 17:57:53 +04:00
Some system settings for Simply Linux.
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
2013-08-06 18:47:57 +04:00
%ifnarch %arm
%define x86 boot
%else
%define x86 %nil
%endif
2009-07-06 00:59:02 +04:00
%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
2009-07-06 00:59:02 +04:00
make
%install
2011-04-13 18:57:45 +04:00
%makeinstall
2009-07-06 00:59:02 +04:00
#graphics
mkdir -p %buildroot/%_datadir /design/{%theme,backgrounds}
2009-11-18 11:08:24 +03:00
mkdir -p %buildroot/%_niconsdir
2009-07-06 00:59:02 +04:00
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`
2009-07-06 00:59:02 +04:00
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
2009-07-06 00:59:02 +04:00
__EOF__
2009-04-07 19:00:22 +04:00
2009-07-06 00:59:02 +04:00
#release
2009-11-19 18:16:45 +03:00
mkdir -p %buildroot%_sysconfdir /buildreqs/packages/ignore.d/
2009-07-06 00:59:02 +04:00
install -pD -m644 /dev/null %buildroot%_sysconfdir /buildreqs/packages/ignore.d/%name-release
2017-06-09 13:16:07 +03:00
echo " % d i s t r o _ n a m e ( % c o d e n a m e ) " >%buildroot%_sysconfdir /altlinux-release
2009-07-06 00:59:02 +04:00
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir /$n-release
done
2013-02-28 19:01:19 +04:00
install -pD -m644 components/systemd/os-release %buildroot%_sysconfdir /os-release
2009-07-06 00:59:02 +04:00
#notes
pushd notes
%makeinstall
popd
2013-09-12 06:46:48 +04:00
2016-09-05 13:55:33 +03:00
#kde-settings
2017-06-09 13:01:55 +03:00
pushd kde-settings
2013-09-12 06:46:48 +04:00
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/
2016-09-05 13:55:33 +03:00
install -Dm 0644 Education.profile %buildroot%_datadir /kf5/konsole/Education.profile
install -Dm 0644 konsolerc %buildroot%_sysconfdir /skel/.config/konsolerc
2017-06-09 13:01:55 +03:00
install -Dm 0644 nm-applet.desktop %buildroot%_sysconfdir /skel/.config/autostart/nm-applet.desktop
2013-09-12 06:46:48 +04:00
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 " [ D e s k t o p E n t r y ] \n H i d d e n = t r u e " > %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 " [ D e s k t o p E n t r y ] \n H i d d e n = t r u e " > %buildroot/%_sysconfdir /skel/.local/share/applications/$n.desktop
done
2013-05-24 15:49:36 +04:00
ln -s license.ru.html %buildroot%_datadir /alt-notes/license.uk.html
2009-07-06 00:59:02 +04:00
2010-12-15 14:08:43 +03:00
#fwvm-settings
mkdir -p %buildroot/etc/skel
install -m 644 fvwm-settings/.fvwm2rc %buildroot/etc/skel/
2012-12-12 17:13:39 +04:00
#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'
2013-03-22 17:59:04 +04:00
install -m 644 -D 60_mate-theme.gschema.override '%buildroot%_datadir/glib-2.0/schemas/60_mate-theme.gschema.override'
2013-04-10 12:30:25 +04:00
install -m 644 -D Trolltech.conf '%buildroot%_sysconfdir/skel/.config/Trolltech.conf'
2012-12-12 17:13:39 +04:00
popd
2011-11-21 19:28:46 +04:00
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/
2019-01-28 13:45:03 +03:00
cp -r xfce-settings/etcskel/.face %buildroot/etc/skel/
2011-04-28 20:40:25 +04:00
cp -r xfce-settings/etcskel/.gconf %buildroot/etc/skel/
2019-01-28 13:45:03 +03:00
cp -r xfce-settings/etcskel/.local %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/
2016-10-21 13:06:05 +03:00
install -Dm 644 xfce-settings/etcskel/registrymodifications.xcu %buildroot/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu
2010-03-04 17:31:13 +03:00
2011-11-21 19:28:46 +04: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
2009-07-06 00:59:02 +04:00
#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
2009-07-06 00:59:02 +04:00
#indexhtml
%define _altdocsdir %_defaultdocdir/alt-docs
2009-10-31 17:40:55 +03:00
%define _indexhtmldir %_defaultdocdir/indexhtml
2011-04-13 18:57:45 +04:00
install components/indexhtml/*.html %buildroot%_defaultdocdir /indexhtml/
2011-09-13 17:07:58 +04:00
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
2009-07-06 00:59:02 +04:00
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
2013-07-11 17:15: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/
2016-06-21 19:35:46 +03:00
#install -Dm644 system-settings/ldm_pam_environment %buildroot%_localstatedir/ldm/.pam_environment
2013-07-11 17:15:24 +04:00
2009-07-06 00:59:02 +04:00
#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 ||:
2009-07-06 00:59:02 +04:00
%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
[ " $ l a n g " = " 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
2009-07-06 00:59:02 +04:00
%preun bootloader
[ $1 = 0 ] || exit 0
[ " ` 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 " ] ||
%__rm -f /boot/splash/message
%post indexhtml
%_sbindir /indexhtml-update
2013-07-11 17:57:53 +04:00
%post system-settings
2016-06-21 19:35:46 +03:00
#chown _ldm:_ldm %_localstatedir/ldm/.pam_environment
2013-07-11 17:57:53 +04:00
sed -i '/pam_env\.so/ {
/user_readenv/ b
s/pam_env\.so/pam_env.so user_readenv=1/ }
' %_sysconfdir /pam.d/lightdm-greeter
2009-07-06 00:59:02 +04:00
%files bootloader
%_datadir /gfxboot/%theme
/boot/splash/%theme
2011-04-13 18:57:45 +04:00
/boot/grub/themes/%theme
2009-07-06 00:59:02 +04:00
#bootsplash
%post bootsplash
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
2013-04-10 10:48:01 +04:00
%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
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
2016-08-31 13:08:34 +03:00
%_iconsdir /hicolor/*/apps/alt-education.png
2009-07-06 00:59:02 +04:00
%files bootsplash
2011-04-13 18:57:45 +04:00
%_datadir /plymouth/themes/%theme/*
2009-07-06 00:59:02 +04:00
%files release
2013-02-28 19:01:19 +04:00
%_sysconfdir /*-release
2009-07-06 00:59:02 +04:00
%_sysconfdir /buildreqs/packages/ignore.d/*
%files notes
%_datadir /alt-notes/*
2016-09-05 13:55:33 +03:00
%files kde-settings
2013-09-12 06:46:48 +04:00
%_sysconfdir /kde4/xdg/menus/applications-merged/*.menu
%_sysconfdir /skel/.kde4
2016-09-05 13:55:33 +03:00
%_datadir /kf5/konsole/Education.profile
/etc/skel/.config/autostart/nm-applet.desktop
/etc/skel/.config/konsolerc
2013-09-12 06:46:48 +04:00
2010-12-15 14:08:43 +03:00
%files fvwm-settings
%_sysconfdir /skel/.fvwm2rc
2012-12-12 17:13:39 +04:00
%files mate-settings
2013-03-22 17:59:04 +04:00
%_datadir /glib-2.0/schemas/*.gschema.override
2013-10-14 17:42:53 +04:00
2010-03-04 17:31:13 +03:00
%files xfce-settings
2011-11-21 19:28:46 +04:00
%_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-09-05 13:55:33 +03:00
%exclude /etc/skel/.config/autostart/nm-applet.desktop
%exclude /etc/skel/.config/konsolerc
2019-01-28 13:45:03 +03:00
/etc/skel/.face
/etc/skel/.gconf
2016-07-11 14:41:17 +03:00
/etc/skel/.gtkrc-2.0
2013-06-11 15:41:10 +04:00
/etc/skel/.local
2011-12-21 21:45:39 +04:00
/etc/skel/.vimrc
2016-10-21 13:06:05 +03:00
/etc/skel/.config/libreoffice/4/user/registrymodifications.xcu
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
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
2009-07-06 00:59:02 +04:00
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
2013-07-11 17:15:24 +04:00
%files system-settings
2013-07-11 17:57:53 +04:00
%config %_sysconfdir /polkit-1/rules.d/*.rules
2016-06-21 19:35:46 +03:00
#config %_localstatedir/ldm/.pam_environment
2013-07-11 17:15:24 +04:00
2009-07-06 00:59:02 +04:00
%changelog
2018-12-27 12:31:39 +03:00
* Thu Dec 27 2018 Andrey Cherepanov <cas@altlinux.org> 8.2-alt0.M80P.2
- Add Droid fonts used in XFCE.
- Remove overrided desktop file for system-config-printer.
2017-05-12 10:43:58 +03:00
* Fri May 12 2017 Andrey Cherepanov <cas@altlinux.org> 8.2-alt0.M80P.1
- New release
- Use pam-limits-desktop instead of own limits rules
- Remove altlinux.ru from files
2016-10-21 13:07:13 +03:00
* Fri Oct 21 2016 Andrey Cherepanov <cas@altlinux.org> 8.1-alt0.M80P.1
- Increase release number
2016-10-20 12:58:40 +03:00
* Thu Oct 20 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.5.M80P.1
- Complete Russian localization of menu
- Update indexhtml: fix URLs of official site sections URL and books location
2016-09-05 13:55:33 +03:00
* Mon Sep 05 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.4.M80P.1
- Use bright Education icon suitable both for light and dark backgrounds
- Rename kde4-settings to kde-settings, package Konsole profile and
disable nm-applet.desktop autostart in KDE
2016-09-02 16:10:44 +03:00
2016-08-30 14:02:37 +03:00
* 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
2016-08-26 18:40:28 +03:00
* 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
2016-08-26 14:03:24 +03:00
* Fri Aug 26 2016 Andrey Cherepanov <cas@altlinux.org> 8.0-alt0.1.M80P.2
- Rebuild with conflict with branding-xalt-kworkstation
2016-07-22 00:23:06 +03:00
* 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