2013-09-09 23:33:38 +04:00
%define theme master
%define Name School Master
%define codename Phylloscopus inornatus
%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-teacher school-lite school-junior school-server school-terminal altlinux-centaurus sisyphus-server-light simply-linux
%define brand school
%define status альфа
%define status_en alpha
%define distro_name Informika 6.9.9 School Master (alpha)
%define distro_name_ru Информика 6.9.9 Школьный Мастер (альфа)
Name : branding-%brand-%theme
Version : 6.9.9
Release : alt1
2008-12-17 11:49:16 +03:00
BuildArch : noarch
2013-09-09 23:33:38 +04:00
BuildRequires : cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-droid
2008-12-17 11:49:16 +03:00
BuildRequires : design-bootloader-source >= 5.0-alt2
2011-04-26 10:12:11 +04:00
%ifnarch %arm
BuildRequires : cpio gfxboot >= 4
%endif
2008-12-24 16:54:58 +03:00
2009-11-23 13:48:02 +03:00
BuildRequires(pre): libqt4-core
2008-12-24 16:54:58 +03:00
BuildRequires : libalternatives-devel
BuildRequires : libqt4-devel
2009-08-13 14:37:29 +04:00
BuildRequires : ImageMagick fontconfig bc libGConf-devel
2008-12-24 16:54:58 +03:00
2013-09-09 23:33:38 +04:00
Source : branding.tar
2008-12-17 11:49:16 +03:00
Group : Graphics
Summary : System/Base
2013-09-09 23:33:38 +04:00
License : GPLv2+
Provides : branding-informika-schoolmaster = %version-%release
Obsoletes : branding-informika-schoolmaster < %version-%release
2008-12-17 11:49:16 +03:00
%description
2013-09-09 23:33:38 +04:00
Distro-specific packages with design and texts for %distro_name.
%description -l ru_RU.UTF-8
Пакеты оформления для дистрибутива %distro_name_ru.
2008-12-17 11:49:16 +03:00
2011-04-26 10:12:11 +04:00
2008-12-17 11:49:16 +03:00
%package bootloader
Group : System/Configuration/Boot and Init
2010-09-15 15:47:22 +04:00
Summary : Graphical boot logo for grub2, lilo and syslinux
2013-09-09 23:33:38 +04:00
Summary(ru_RU.UTF-8): Тема для экрана выбора вариантов загрузки (lilo и syslinux)
License : GPLv2+
2008-12-17 11:49:16 +03:00
2008-12-24 16:54:58 +03:00
PreReq : coreutils
2009-01-23 15:57:22 +03:00
Provides : design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
2008-12-17 11:49:16 +03:00
2013-09-09 23:33:38 +04:00
Provides : branding-informika-schoolmaster-bootloader = %version-%release
Obsoletes : branding-informika-schoolmaster-bootloader < %version-%release
2009-01-23 15:57:22 +03:00
Obsoletes : design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
2013-09-09 23:33:38 +04:00
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - b o o t l o a d e r " ;done )
2008-12-17 11:49:16 +03:00
2013-09-09 23:33:38 +04:00
%define grub_normal white/light-blue
%define grub_high black/light-gray
2010-09-15 15:47:22 +04:00
2008-12-17 11:49:16 +03:00
%description bootloader
2013-09-09 23:33:38 +04:00
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.
2008-12-17 11:49:16 +03:00
2008-12-18 15:49:13 +03:00
%package bootsplash
2011-04-26 10:12:11 +04:00
BuildArch : noarch
2008-12-18 15:49:13 +03:00
Summary : Theme for splash animations during bootup
2013-09-09 23:33:38 +04:00
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива %distro_name_ru.
2008-12-18 15:49:13 +03:00
License : Distributable
Group : System/Configuration/Boot and Init
2013-09-09 23:33:38 +04:00
Provides : plymouth-theme-%theme
2010-11-12 16:21:50 +03:00
Requires : plymouth-plugin-script
PreReq : plymouth
2008-12-18 15:49:13 +03:00
2013-09-09 23:33:38 +04:00
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - b o o t s p l a s h " ;done )
Provides : branding-informika-schoolmaster-bootsplash = %version-%release
Obsoletes : branding-informika-schoolmaster-bootsplash < %version-%release
2008-12-18 15:49:13 +03:00
%description bootsplash
2013-09-09 23:33:38 +04:00
This package contains graphics for boot process for %distro_name
(needs console splash screen enabled).
2010-11-12 16:21:50 +03:00
2013-09-09 23:33:38 +04:00
%description bootsplash -l ru_RU.UTF-8
В данном пакете находится тема для экрана загрузки для дистрибутива
%distro_name_ru.
2008-12-17 11:49:16 +03:00
2009-03-30 14:22:46 +04:00
%package alterator
2013-09-09 23:33:38 +04:00
Summary : Design for alterator for %distro_name
Summary(ru_RU.UTF-8): Тема для " Ц е н т р а у п р а в л е н и я с и с т е м о й " и QT для дистрибутива %distro_name_ru
2008-12-24 16:54:58 +03:00
License : GPL
Group : System/Configuration/Other
2009-03-30 14:22:46 +04:00
Provides : design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
2009-03-31 12:46:57 +04:00
Provides : alterator-icons design-alterator design-alterator-%theme
2008-12-24 16:54:58 +03:00
2013-09-09 23:33:38 +04:00
# lexicographically first of the village
Conflicts : branding-sisyphus-server-light-alterator
Provides : branding-informika-schoolmaster-alterator = %version-%release
Obsoletes : branding-informika-schoolmaster-alterator < %version-%release
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - a l t e r a t o r " ;done )
Obsoletes : design-alterator-server design-alterator-desktop design-altertor-browser-desktop design-altertor-browser-server branding-altlinux-backup-server-alterator
2009-03-31 08:26:47 +04:00
PreReq(post,preun): alternatives >= 0.2 alterator
2008-12-24 16:54:58 +03:00
2009-03-30 14:22:46 +04:00
%description alterator
2013-09-09 23:33:38 +04:00
Design for QT and web alterator for %distro_name.
%description alterator -l ru_RU.UTF-8
В данном пакете находится тема для " Ц е н т р а у п р а в л е н и я с и с т е м о й " (Alterator)
и модулей библиотеки QT для дистрибутива %distro_name_ru.
2008-12-24 16:54:58 +03:00
2009-04-07 19:00:22 +04:00
%package graphics
2013-09-09 23:33:38 +04:00
Summary : Design for %distro_name
Summary(ru_RU.UTF-8): Тема для дистрибутива %distro_name_ru
2009-04-07 19:00:22 +04:00
License : Different licenses
Group : Graphics
2013-09-09 23:33:38 +04:00
Provides : design-graphics-%theme branding-alt-%theme-graphics
Obsoletes : branding-alt-%theme-graphics design-graphics-%theme
Provides : design-graphics = 12.0.0
2009-04-07 19:00:22 +04:00
PreReq(post,preun): alternatives >= 0.2
2013-09-09 23:33:38 +04:00
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - g r a p h i c s " ;done )
Provides : branding-informika-schoolmaster-graphics = %version-%release
Obsoletes : branding-informika-schoolmaster-graphics < %version-%release
2009-04-07 19:00:22 +04:00
%description graphics
2013-09-09 23:33:38 +04:00
This package contains some graphics for %distro_name design.
%description graphics -l ru_RU.UTF-8
В данном пакете находится необходимые графические элементы для дистрибутива
%distro_name_ru.
2009-04-07 19:00:22 +04:00
2008-12-26 17:33:32 +03:00
2009-01-15 14:24:55 +03:00
%define provide_list altlinux fedora redhat system altlinux
2009-01-14 14:57:09 +03:00
%define obsolete_list altlinux-release fedora-release redhat-release
2013-09-09 23:33:38 +04:00
%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
2009-01-14 14:57:09 +03:00
%package release
2011-04-26 14:36:14 +04:00
BuildArch : noarch
2009-01-14 14:57:09 +03:00
2013-09-09 23:33:38 +04:00
Summary : %distro_name release file
Summary(ru_RU.UTF-8): Описание дистрибутива %distro_name_ru
2011-04-26 10:12:11 +04:00
License : GPL
2009-01-14 14:57:09 +03:00
Group : System/Configuration/Other
2009-01-23 15:57:22 +03: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
2009-01-14 14:57:09 +03:00
Conflicts : %conflicts_list
2013-09-09 23:33:38 +04:00
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - r e l e a s e " ;done )
Provides : branding-informika-schoolmaster-release = %version-%release
Obsoletes : branding-informika-schoolmaster-release < %version-%release
2009-01-14 14:57:09 +03:00
%description release
2013-09-09 23:33:38 +04:00
%distro_name release file.
%description release -l ru_RU.UTF-8
В данном пакете находится описание дистрибутива %distro_name_ru.
2009-01-14 14:57:09 +03:00
2009-01-23 15:57:22 +03:00
%package notes
2011-04-26 14:36:14 +04:00
BuildArch : noarch
2009-02-10 22:40:03 +03:00
Provides : alt-license-theme = %version alt-notes-%theme
2013-09-09 23:33:38 +04:00
Obsoletes : alt-license-%theme alt-notes-%theme
2009-01-23 15:57:22 +03:00
Summary : Distribution license and release notes
2013-09-09 23:33:38 +04:00
Summary(ru_RU.UTF-8): Лицензия и дополнительные сведения для дистрибутива %distro_name_ru
2009-01-23 15:57:22 +03:00
License : Distributable
Group : Documentation
2013-09-09 23:33:38 +04:00
Conflicts : alt-notes-children alt-notes-hpc alt-notes-junior alt-notes-junior-sj alt-notes-junior-sm alt-notes-school-server alt-notes-server-lite alt-notes-skif alt-notes-terminal alt-notes-desktop
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - n o t e s " ;done )
Provides : branding-informika-schoolmaster-notes = %version-%release
Obsoletes : branding-informika-schoolmaster-notes < %version-%release
2009-01-23 15:57:22 +03:00
%description notes
Distribution license and release notes
2013-09-09 23:33:38 +04:00
%description notes -l ru_RU.UTF-8
В данном пакете находится лицензия и дополнительные сведения
для дистрибутива %distro_name_ru.
2010-12-15 14:08:43 +03:00
2013-09-12 06:46:48 +04:00
%package kde4-settings
BuildArch : noarch
Summary : KDE4 settings for %distro_name
License : Distributable
Group : Graphical desktop/KDE
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - k d e 4 - s e t t i n g s " ;done )
PreReq : %name-graphics
Provides : branding-informika-schoolmaster-kde4-settings = %version-%release
Obsoletes : branding-informika-schoolmaster-kde4-settings < %version-%release
%description kde4-settings
KDE4 settings for %distro_name
2013-09-09 23:33:38 +04:00
%package xfce-settings
2009-06-10 19:16:50 +04:00
2013-09-09 23:33:38 +04:00
Summary : default settings for Xfce 4.6 for %distro_name
2009-06-10 19:16:50 +04:00
License : Distributable
2013-09-09 23:33:38 +04:00
Group : Graphical desktop/XFce
Requires : PolicyKit-gnome
Requires : etcskel gtk3-theme-clearlooks-phenix
Requires : gnome-icon-theme icon-theme-simple-sl
Requires : branding-%brand-%theme-graphics
Obsoletes : xfce-settings-lite xfce-settings-school-lite
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - x f c e - s e t t i n g s " ;done )
Conflicts : xfce-settings-simply-linux
2009-06-10 19:16:50 +04:00
2013-09-09 23:33:38 +04:00
Provides : branding-informika-schoolmaster-xfce-settings = %version-%release
Obsoletes : branding-informika-schoolmaster-xfce-settings < %version-%release
2009-06-10 19:16:50 +04:00
2013-09-09 23:33:38 +04:00
%description xfce-settings
This package contains default settings for Xfce 4.6 for %distro_name.
2009-08-06 18:26:26 +04:00
2009-02-27 15:58:37 +03:00
%package slideshow
2013-09-09 23:33:38 +04:00
Summary : Slideshow for %distro_name installer
Summary(ru_RU.UTF-8): Изображения для организации " с л а й д ш о у " в установщике дистрибутива %distro_name_ru
2009-02-27 15:58:37 +03:00
License : Distributable
Group : System/Configuration/Other
2013-09-09 23:33:38 +04:00
Conflicts : %(for n in %variants ; do [ " $ n " = %theme ] || echo -n " b r a n d i n g - $ n - s l i d e s h o w " ;done )
Provides : branding-informika-schoolmaster-slideshow = %version-%release
Obsoletes : branding-informika-schoolmaster-slideshow < %version-%release
2009-02-27 15:58:37 +03:00
%description slideshow
2013-09-09 23:33:38 +04:00
Slideshow for %distro_name installer.
2009-02-27 15:58:37 +03:00
2013-09-09 23:33:38 +04:00
%description slideshow -l ru_RU.UTF-8
В данном пакете находятся изображения для организации " с л а й д ш о у " в установщике
дистрибутива %distro_name_ru.
2009-03-24 18:01:28 +03:00
2013-09-09 23:33:38 +04:00
%package indexhtml
Summary : %distro_name welcome page
Summary(ru_RU.UTF-8): Стартовая страница для дистрибутива %distro_name_ru
2009-03-24 18:01:28 +03:00
License : distributable
Group : System/Base
2009-03-25 11:02:41 +03:00
Provides : indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0
2009-03-24 18:01:28 +03:00
Obsoletes : indexhtml-desktop indexhtml-Desktop
2012-05-05 18:55:46 +04:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - i n d e x h t m l " ;done )
2009-03-24 18:01:28 +03:00
2013-09-09 23:33:38 +04:00
Provides : branding-informika-schoolmaster-indexhtml = %version-%release
Obsoletes : branding-informika-schoolmaster-indexhtml < %version-%release
2009-03-24 19:10:52 +03:00
Requires : xdg-utils
2013-09-09 23:33:38 +04:00
Requires : docs-simply-linux
Requires : docs-linux_intro
2009-03-24 19:10:52 +03:00
Requires(post) : indexhtml-common
2009-03-24 18:01:28 +03:00
%description indexhtml
2013-09-09 23:33:38 +04:00
%distro_name index.html welcome page.
%description indexhtml -l ru_RU.UTF-8
В данном пакете содержится стартовая страница для дистрибутива
%distro_name_ru.
%package menu
Summary : Menu for %distro_name
License : Distributable
Group : Graphical desktop/Other
Requires(pre) : altlinux-freedesktop-menu-common
Requires : altlinux-freedesktop-menu-common
Provides : branding-informika-schoolmaster-menu = %version-%release
Obsoletes : branding-informika-schoolmaster-menu < %version-%release
%description menu
Menu for %distro_name
%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.
2009-02-27 15:58:37 +03:00
2008-12-17 11:49:16 +03:00
%prep
2013-09-09 23:33:38 +04:00
%setup -n branding
2008-12-17 11:49:16 +03:00
2011-04-26 10:12:11 +04:00
%ifnarch %arm
%define x86 boot
%else
%define x86 %nil
%endif
2008-12-18 15:49:13 +03:00
2008-12-17 11:49:16 +03:00
%build
2008-12-24 16:54:58 +03:00
autoconf
2013-09-09 23:33:38 +04:00
THEME=%theme NAME='%Name' 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
2008-12-24 16:54:58 +03:00
make
2008-12-17 11:49:16 +03:00
%install
2009-06-23 12:06:18 +04:00
%makeinstall
2009-04-07 19:00:22 +04:00
#graphics
mkdir -p %buildroot/%_datadir /design/{%theme,backgrounds}
2013-09-09 23:33:38 +04:00
mkdir -p %buildroot/%_niconsdir
install graphics/icons/slinux.png %buildroot/%_niconsdir /slinux.png
install graphics/icons/mini/slinux.png %buildroot/%_iconsdir /altlinux.png
2009-04-07 19:00:22 +04:00
cp -ar graphics/* %buildroot/%_datadir /design/%theme
pushd %buildroot/%_datadir /design/%theme
pushd backgrounds
ln -sf ../../../wallpapers more
popd
popd
2013-09-09 23:33:38 +04:00
2009-04-07 19:00:22 +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-04-07 19:00:22 +04:00
__EOF__
2009-01-14 14:57:09 +03:00
#release
2009-11-19 18:16:45 +03:00
mkdir -p %buildroot%_sysconfdir /buildreqs/packages/ignore.d/
2009-01-14 14:57:09 +03:00
install -pD -m644 /dev/null %buildroot%_sysconfdir /buildreqs/packages/ignore.d/%name-release
2013-09-09 23:33:38 +04:00
echo " % N a m e % v e r s i o n % s t a t u s _ e n ( % c o d e n a m e ) " >%buildroot%_sysconfdir /altlinux-release
2009-01-14 14:57:09 +03:00
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir /$n-release
done
2013-09-09 23:33:38 +04:00
install -pD -m644 components/systemd/os-release %buildroot%_sysconfdir /os-release
2009-01-14 14:57:09 +03:00
2009-02-05 16:15:40 +03:00
#notes
2009-01-23 15:57:22 +03:00
pushd notes
%makeinstall
popd
2013-09-12 06:46:48 +04:00
#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
2013-09-09 23:33:38 +04:00
ln -s license.ru.html %buildroot%_datadir /alt-notes/license.uk.html
2008-12-26 17:33:32 +03:00
2013-09-09 23:33:38 +04:00
mkdir -p %buildroot/etc/skel/XDG-Templates.skel/
2008-12-24 16:54:58 +03:00
2013-09-09 23:33:38 +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/
cp -r xfce-settings/etcskel/.gconf %buildroot/etc/skel/
cp -r xfce-settings/etcskel/.vimrc %buildroot/etc/skel/
mkdir -p %buildroot/usr/share/backgrounds/xfce/
cp -P xfce-settings/backgrounds/*.{jpg,png} %buildroot/usr/share/backgrounds/xfce/
install -pDm0755 xfce-settings/scripts/zdg-move-templates.sh %buildroot%_sysconfdir /X11/profile.d/zdg-move-templates.sh
2009-06-10 19:16:50 +04:00
2009-02-27 15:58:37 +03:00
#slideshow
mkdir -p %buildroot/usr/share/install2/slideshow
2013-09-09 23:33:38 +04:00
mkdir -p %buildroot/etc/alterator
cp -a slideshow/* %buildroot/usr/share/install2/slideshow/
install slideshow/slideshow.conf %buildroot/etc/alterator/
# 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
install components/indexhtml/*.html %buildroot%_defaultdocdir /indexhtml/
mkdir -p %buildroot%_defaultdocdir /indexhtml/images
install components/indexhtml/images/* %buildroot%_defaultdocdir /indexhtml/images/
#install -m644 components/indexhtml.desktop %buildroot%_desktopdir/
#menu
mkdir -p %buildroot/usr/share/slinux-style/applications
install menu/applications/* %buildroot/usr/share/slinux-style/applications/
mkdir -p %buildroot/etc/xdg/menus/xfce-applications-merged
cp menu/50-xfce-applications.menu %buildroot/etc/xdg/menus/xfce-applications-merged/
mkdir -p %buildroot/usr/share/desktop-directories
cp menu/altlinux-wine.directory %buildroot/usr/share/desktop-directories/
# 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
2009-02-27 15:58:37 +03:00
2008-12-17 11:49:16 +03:00
#bootloader
2008-12-18 15:49:13 +03:00
%pre bootloader
2010-01-14 16:24:43 +03:00
[ -s /usr/share/gfxboot/%theme ] && rm -fr /usr/share/gfxboot/%theme ||:
2008-12-25 12:55:26 +03:00
[ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||:
2008-12-18 15:49:13 +03:00
%post bootloader
2008-12-17 11:49:16 +03:00
%__ln_s -nf %theme/message /boot/splash/message
2009-02-18 13:22:15 +03:00
. /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1)
cd boot/splash/%theme/
echo $lang > lang
2009-02-19 15:11:09 +03:00
[ " $ l a n g " = " C " ] || echo lang | cpio -o --append -F message
2010-09-15 15:47:22 +04:00
. shell-config
2011-01-31 12:38:11 +03:00
shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme/theme.txt
2013-09-09 23:33:38 +04:00
#shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme
2011-02-04 17:32:58 +03:00
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_NORMAL %grub_normal
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
2008-12-17 11:49:16 +03: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
2009-03-24 18:01:28 +03:00
%post indexhtml
%_sbindir /indexhtml-update
2013-09-09 23:33:38 +04:00
%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
2008-12-17 11:49:16 +03:00
%files bootloader
%_datadir /gfxboot/%theme
/boot/splash/%theme
2011-01-31 12:38:11 +03:00
/boot/grub/themes/%theme
2008-12-17 11:49:16 +03:00
2008-12-18 15:49:13 +03:00
#bootsplash
%post bootsplash
2010-11-12 16:21:50 +03: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 ] && \
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 | " \
/etc/sysconfig/grub2 ||:
2008-12-18 15:49:13 +03:00
2009-03-30 14:22:46 +04:00
%files alterator
2009-06-23 12:06:18 +04:00
%config %_altdir /*.rcc
/usr/share/alterator-browser-qt/design/*.rcc
2009-04-07 19:00:22 +04:00
/usr/share/alterator/design/*
2008-12-24 16:54:58 +03:00
2009-04-07 19:00:22 +04:00
%files graphics
%config /etc/alternatives/packages.d/%name-graphics
%_datadir /design
2013-09-09 23:33:38 +04:00
%_niconsdir /slinux.png
%_iconsdir /altlinux.png
2008-12-24 16:54:58 +03:00
2008-12-18 15:49:13 +03:00
%files bootsplash
2010-11-12 16:21:50 +03:00
%_datadir /plymouth/themes/%theme/*
2013-09-09 23:33:38 +04:00
%exclude %_datadir /plymouth/themes/%theme/*.in
2008-12-17 11:49:16 +03:00
2009-01-14 14:57:09 +03:00
%files release
2013-09-09 23:33:38 +04:00
%_sysconfdir /*-release
2009-01-14 14:57:09 +03:00
%_sysconfdir /buildreqs/packages/ignore.d/*
2009-01-23 15:57:22 +03:00
%files notes
%_datadir /alt-notes/*
2013-09-12 06:46:48 +04:00
%files kde4-settings
%_sysconfdir /kde4/xdg/menus/applications-merged/*.menu
%_sysconfdir /skel/.kde4
2013-09-09 23:33:38 +04:00
%files xfce-settings
%_sysconfdir /X11/profile.d/zdg-move-templates.sh
/etc/skel/XDG-Templates.skel/
/etc/skel/.config
/etc/skel/.local
/etc/skel/.gconf
/etc/skel/.vimrc
/usr/share/backgrounds/xfce/*
2009-06-10 19:16:50 +04:00
2009-02-27 15:58:37 +03:00
%files slideshow
2013-09-09 23:33:38 +04:00
/etc/alterator/slideshow.conf
2009-02-27 15:58:37 +03:00
/usr/share/install2/slideshow
2009-02-05 16:15:40 +03:00
2009-10-23 16:59:56 +04:00
%define indexhtmldir %_defaultdocdir/indexhtml
2009-10-23 18:06:35 +04:00
2009-03-24 18:01:28 +03:00
%files indexhtml
2013-09-09 23:33:38 +04:00
#%%ghost %%_indexhtmldir/index.html
#%%_indexhtmldir/*
#%%_desktopdir/*
2009-10-23 18:06:35 +04:00
%ghost %indexhtmldir/index.html
%indexhtmldir/index-*.html
%indexhtmldir/index.css
2011-09-19 16:55:12 +04:00
%indexhtmldir/images
2009-09-18 13:18:30 +04:00
%_desktopdir /indexhtml.desktop
2013-09-09 23:33:38 +04:00
%files menu
/usr/share/slinux-style
/etc/xdg/menus/xfce-applications-merged/50-xfce-applications.menu
/usr/share/desktop-directories/altlinux-wine.directory
%files system-settings
%config %_sysconfdir /polkit-1/rules.d/*.rules
%config %_localstatedir /ldm/.pam_environment
2009-03-24 18:01:28 +03:00
2008-12-17 11:49:16 +03:00
%changelog
2013-09-09 23:33:38 +04:00
* Mon Sep 09 2013 Andrey Cherepanov <cas@altlinux.org> 6.9.9-alt1
- Update branding for Seven platform
2013-04-08 15:26:39 +04:00
* Mon Apr 08 2013 Sergey V Turchin <zerg at altlinux dot org> 6.0.0-alt46
- fix requires
2012-08-30 12:21:18 +04:00
* Thu Aug 30 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt44.M60P.1
- built for M60P
2012-08-30 12:16:27 +04:00
* Thu Aug 30 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt45
2012-08-30 12:08:41 +04:00
- translate installer notes and license titles into russian
2012-08-21 16:48:08 +04:00
* Tue Aug 21 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt43.M60P.1
- built for M60P
2012-08-21 16:45:48 +04:00
* Tue Aug 21 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt44
- update indexhtml css
2012-08-17 19:02:25 +04:00
* Fri Aug 17 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt42.M60P.1
- built for M60P
2012-08-17 19:01:18 +04:00
* Fri Aug 17 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt43
- translate indexhtml and indexhtml.desktop titles into russian
2012-08-15 16:30:45 +04:00
* Wed Aug 15 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt41.M60P.1
- built for M60P
2012-08-15 16:29:28 +04:00
* Wed Aug 15 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt42
- fix grub terminal-box background color
2012-08-10 17:39:52 +04:00
* Fri Aug 10 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt40.M60P.1
- built for M60P
2013-04-07 23:08:01 +04:00
2012-08-10 17:37:19 +04:00
* Fri Aug 10 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt41
- gix license content-type (ALT#27521)
2013-04-04 15:50:53 +04:00
2012-07-31 12:35:59 +04:00
* Tue Jul 31 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt39.M60P.1
- built for M60P
2012-06-21 18:17:30 +04:00
2012-07-31 12:34:29 +04:00
* Tue Jul 31 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt40
2012-07-30 16:22:06 +04:00
- fix bootloader menu items color
2012-07-31 12:34:29 +04:00
- bump release
2012-05-17 17:37:08 +04:00
2012-07-06 07:15:02 +04:00
* Wed Jul 04 2012 Sergey V Turchin <zerg@altlinux.org> 6.0.0-alt1
2012-07-04 17:08:18 +04:00
- convert from KDesktop branding