::
: branding-simply-linux
Sources Gear Bugs and FR Repocop
%define theme slinux
%define Name Simply Linux
%define codename Billy
%define status %nil
%define variants altlinux-office-desktop altlinux-office-server altlinux-desktop
Name: branding-simply-linux
Version: 5.0.1
Release: alt2.M50P.1
BuildArch: noarch
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu
BuildRequires: design-bootloader-source >= 5.0-alt2
BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel
BuildRequires: libqt4-devel
BuildRequires: ImageMagick fontconfig
Packager: Denis Koryavov <dkoryavov at altlinux.org>
Source: %name-%version.tar
Group: Graphics
Summary: System/Base
License: GPL
%description
Distro-specific packages with design and texts for Simply Linux distribution.
%description -l ru_RU.UTF-8
Пакеты, для дистрибутива "Просто Линукс" (Simply Linux)
%package bootloader
Group: System/Configuration/Boot and Init
Summary: Graphical boot logo for lilo and syslinux
Summary(ru_RU.UTF-8): Тема для экрана выбора вариантов загрузки (lilo и syslinux)
License: GPL
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 )
%description bootloader
Here you find the graphical boot logo for Simply Linux distribution.
Suitable for both lilo and syslinux.
%description bootloader -l ru_RU.UTF-8
В данном пакете находится тема для экрана выбора вариантов загрузки (lilo и syslinux)
для дистрибутива "Просто Линукс" (Simply Linux).
%package bootsplash
Summary: Theme for splash animations during bootup
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива "Просто Линукс"
License: Distributable
Group: System/Configuration/Boot and Init
Provides: design-bootsplash design-bootsplash-%theme branding-alt-%theme-bootsplash
Requires: bootsplash >= 3.3
Obsoletes: branding-alt-%theme-bootsplash
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-bootsplash ";done )
%description bootsplash
This package contains graphics for boot process for Simply Linux
(needs console splash screen enabled).
%description bootsplash -l ru_RU.UTF-8
В данном пакете находится тема для экрана загрузки для дистрибутива
"Просто Линукс" (Simply Linux).
%package alterator
Summary: Design for alterator for Simply Linux
Summary(ru_RU.UTF-8): Тема для "Центра управления системой" и QT для дистрибутива "Просто Линукс"
License: GPL
Group: System/Configuration/Other
Packager: Denis Koryavov <dkoryavov at altlinux.org>
Provides: design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Provides: alterator-icons design-alterator design-alterator-%theme
Obsoletes: branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-browser-qt ";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 Simply Linux.
%description alterator -l ru_RU.UTF-8
В данном пакете находится тема для "Центра управления системой" (Alterator)
и модулей библиотеки QT для дистрибутива "Просто Линукс" (Simply Linux).
%package graphics
Summary: Design for Simply Linux
Summary(ru_RU.UTF-8): Тема для дистрибутива "Просто Линукс"
License: Different licenses
Group: Graphics
Provides: design-graphics-%theme branding-alt-%theme-graphics
Obsoletes: branding-alt-%theme-graphics design-graphics-%theme
PreReq(post,preun): alternatives >= 0.2
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-graphics ";done )
%description graphics
This package contains some graphics for Simply Linux design.
%description graphics -l ru_RU.UTF-8
В данном пакете находится необходимые графические элементы для дистрибутива
"Просто Линукс" (Simply Linux).
%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: Simply Linux release file
Summary(ru_RU.UTF-8): Описание дистрибутива "Просто Линукс"
Copyright: GPL
Group: System/Configuration/Other
Packager: Denis Koryavov <dkoryavov at altlinux.org>
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" = %theme ] || echo -n "branding-$n-release ";done )
%description release
Simply Linux %version release file.
%description release -l ru_RU.UTF-8
В данном пакете находится описание версии %version дистрибутива
"Просто Линукс" (Simply Linux).
%package notes
Provides: alt-license-theme = %version alt-notes-%theme
Obsoletes: alt-license-%theme alt-notes-%theme
Summary: Distribution license and release notes
Summary(ru_RU.UTF-8): Лицензия и дополнительные сведения для дистрибутива "Просто Линукс"
License: Distributable
Group: Documentation
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 "branding-$n-notes ";done )
%description notes
Distribution license and release notes
%description notes -l ru_RU.UTF-8
В данном пакете находится лицензия и дополнительные сведения для версии %version
дистрибутива "Просто Линукс" (Simply Linux).
%package xfce-settings
Summary: default settings for Xfce 4.6 for Simply linux distribution
License: Distributable
Group: Graphical desktop/XFce
Requires: PolicyKit-gnome
Requires: etcskel gtk2-theme-simplicity
Requires: gnome-icon-theme icon-theme-simple
Requires: branding-simply-linux-graphics
Obsoletes: xfce-settings-lite xfce-settings-school-lite
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-xfce-settings ";done )
Conflicts: xfce-settings-simply-linux
%description xfce-settings
This package contains default settings for Xfce 4.6 for Simply linux distribution.
%package slideshow
Summary: Slideshow for Simply Linux %version installer.
Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива "Просто Линукс"
License: Distributable
Group: System/Configuration/Other
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-slideshow ";done )
%description slideshow
Slideshow for Simply Linux %version installer.
%description slideshow -l ru_RU.UTF-8
В данном пакете находятся изображения для организации "слайдшоу" в установщике
дистрибутива "Просто Линукс" (Simply Linux).
%package indexhtml
Summary: Simply Linux html welcome page
Summary(ru_RU.UTF-8): Стартовая страница для дистрибутива "Просто Линукс"
License: distributable
Group: System/Base
Provides: indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0
Obsoletes: indexhtml-desktop indexhtml-Desktop
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
Requires(post): indexhtml-common
%description indexhtml
Simply Linux index.html welcome page.
%description indexhtml -l ru_RU.UTF-8
В данном пакете содержится стартовая страница для дистрибутива
"Просто Линукс" (Simply Linux).
%prep
%setup -q
%build
autoconf
THEME=%theme NAME='%Name' STATUS=%status VERSION=%version ./configure
make
#bootloader
pushd design-bootloader-source/
DEFAULT_LANG='--lang-to-subst--' PATH=$PATH:/usr/sbin %make
popd
#altarator
pushd alterator
%make_build
popd
%install
#bootloader
pushd design-bootloader-source
install -d -m 755 %buildroot/boot/splash/%theme
install -d -m 755 %buildroot/%_datadir/gfxboot/%theme
install -m 644 message %buildroot/boot/splash/%theme
install -m 644 bootlogo %buildroot%_datadir/gfxboot/%theme
popd
#bootsplash
## create directory structure
mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/bootsplash/themes/%theme
cp -a bootsplash/* $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme
pushd $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme/config
#for i in 1 2 3 4 5 11; do \
for i in 1; do \
for f in bootsplash-*.cfg; do \
res=`echo "$f"| sed 's|.*\-\(.*\)\.cfg|\1|'`
ln -s $f vt${i}-${res}.cfg
done
done
popd
#alterator
pushd alterator
mkdir -p %buildroot/usr/share/alterator-browser-qt/design
install theme.rcc %buildroot/usr/share/alterator-browser-qt/design/%theme.rcc
mkdir -p %buildroot/usr/share/alterator/design/
cp -a images %buildroot/usr/share/alterator/design/
cp -a styles %buildroot/usr/share/alterator/design/
popd
mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name-browser-qt <<__EOF__
/etc/alterator/design-browser-qt /usr/share/alterator-browser-qt/design/%theme.rcc 50
__EOF__
#graphics
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
mkdir -p %buildroot/%_niconsdir
install graphics/icons/slinux.png %buildroot/%_niconsdir/slinux.png
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
install -d %buildroot//etc/alternatives/packages.d
cat >%buildroot/etc/alternatives/packages.d/%name-graphics <<__EOF__
%_datadir/artworks %_datadir/design/%theme 10
%_datadir/design-current %_datadir/design/%theme 10
%_datadir/design/current %_datadir/design/%theme 10
__EOF__
#release
install -pD -m644 /dev/null %buildroot%_sysconfdir/buildreqs/packages/ignore.d/%name-release
echo "%Name %version %status (%codename)" >%buildroot%_sysconfdir/altlinux-release
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir/$n-release
done
#notes
pushd notes
%makeinstall
popd
#xfce-settings
pushd xfce-settings
mkdir -p %buildroot/etc/skel/.config/Terminal
mkdir -p %buildroot/etc/skel/.config/Thunar
mkdir -p %buildroot/etc/skel/.config/autostart
mkdir -p %buildroot/etc/skel/.config/sonata
mkdir -p %buildroot/etc/skel/.gconf/apps/gnome-screensaver
mkdir -p %buildroot/etc/skel/.gconf/desktop/gnome/session
mkdir -p %buildroot/etc/skel/.config/xfce4/desktop
mkdir -p %buildroot/etc/skel/.config/xfce4/notication-daemon-xfce
mkdir -p %buildroot/etc/skel/.config/xfce4/panel
mkdir -p %buildroot/etc/skel/.config/xfce4/xfconf
mkdir -p %buildroot/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml
mkdir -p %buildroot/etc/skel/.local/share/applications
mkdir -p %buildroot/etc/skel/Шаблоны
mkdir -p %buildroot/etc/skel/Музыка
mkdir -p %buildroot/etc/skel/Музыка/mpd
mkdir -p %buildroot/etc/skel/Музыка/mpd/playlists
cp etcskel/Шаблоны/* %buildroot/etc/skel/Шаблоны
cp -ra etcskel/.config/* %buildroot/etc/skel/.config
cp -ra etcskel/.gconf/* %buildroot/etc/skel/.gconf
install -m 644 etcskel/.local/share/applications/* %buildroot/etc/skel/.local/share/applications
install -m 644 etcskel/.wm-select %buildroot/etc/skel/
install -m 644 etcskel/.fonts.conf %buildroot/etc/skel/
install -m 644 etcskel/.mpdconf %buildroot/etc/skel/
mkdir -p %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1600x1200
mkdir -p %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1680x1050
cp -P backgrounds/*.jpg %buildroot/usr/share/xfce4/backdrops/
install -m 644 backgrounds/vladstudio.com/LICENSE.txt %buildroot/usr/share/xfce4/backdrops/vladstudio.com/
install -m 644 backgrounds/vladstudio.com/1600x1200/* %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1600x1200/
install -m 644 backgrounds/vladstudio.com/1680x1050/* %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1680x1050/
popd
#slideshow
mkdir -p %buildroot/usr/share/install2/slideshow
install slideshow/* %buildroot/usr/share/install2/slideshow/
#indexhtml
%define _altdocsdir %_defaultdocdir/alt-docs
%define _indexhtmldir %_defaultdocdir/indexhtml
pushd indexhtml
mkdir -p %buildroot{%_indexhtmldir/,%_desktopdir/}
cp -r * %buildroot%_indexhtmldir/
rm -f %buildroot%_indexhtmldir/*.in
touch %buildroot%_indexhtmldir/index.html
popd
install -m644 indexhtml.desktop %buildroot%_desktopdir/
#bootloader
%pre bootloader
[ -s /boot/splash/%theme ] && rm -rf /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
%preun bootloader
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%post indexhtml
%_sbindir/indexhtml-update
%files bootloader
%_datadir/gfxboot/%theme
/boot/splash/%theme
#bootsplash
%post bootsplash
%__ln_s -nf %theme %_sysconfdir/bootsplash/themes/current
%preun bootsplash
[ $1 = 0 ] || exit 0
[ "`readlink %_sysconfdir/bootsplash/themes/current`" != %theme ] ||
%__rm -f %_sysconfdir/bootsplash/themes/current
%files alterator
%config %_altdir/%name-browser-qt
/usr/share/alterator-browser-qt/design/%theme.rcc
/usr/share/alterator/design/*
%files graphics
%config /etc/alternatives/packages.d/%name-graphics
%_datadir/design
%_niconsdir/slinux.png
%_iconsdir/altlinux.png
%files bootsplash
%_sysconfdir/bootsplash/themes/%theme/
%files release
%_sysconfdir/*-*
%_sysconfdir/buildreqs/packages/ignore.d/*
%files notes
%_datadir/alt-notes/*
%files xfce-settings
/etc/skel/Шаблоны
/etc/skel/Музыка/mpd/playlists
/etc/skel/.wm-select
/etc/skel/.fonts.conf
/etc/skel/.mpdconf
/etc/skel/.config
/etc/skel/.local
/etc/skel/.gconf
/usr/share/xfce4/backdrops
%files slideshow
/usr/share/install2/slideshow
%files indexhtml
%ghost %_indexhtmldir/index.html
%_indexhtmldir/*
%_desktopdir/*
%changelog
…
changelog
%define Name Simply Linux
%define codename Billy
%define status %nil
%define variants altlinux-office-desktop altlinux-office-server altlinux-desktop
Name: branding-simply-linux
Version: 5.0.1
Release: alt2.M50P.1
BuildArch: noarch
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu
BuildRequires: design-bootloader-source >= 5.0-alt2
BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel
BuildRequires: libqt4-devel
BuildRequires: ImageMagick fontconfig
Packager: Denis Koryavov <dkoryavov at altlinux.org>
Source: %name-%version.tar
Group: Graphics
Summary: System/Base
License: GPL
%description
Distro-specific packages with design and texts for Simply Linux distribution.
%description -l ru_RU.UTF-8
Пакеты, для дистрибутива "Просто Линукс" (Simply Linux)
%package bootloader
Group: System/Configuration/Boot and Init
Summary: Graphical boot logo for lilo and syslinux
Summary(ru_RU.UTF-8): Тема для экрана выбора вариантов загрузки (lilo и syslinux)
License: GPL
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 )
%description bootloader
Here you find the graphical boot logo for Simply Linux distribution.
Suitable for both lilo and syslinux.
%description bootloader -l ru_RU.UTF-8
В данном пакете находится тема для экрана выбора вариантов загрузки (lilo и syslinux)
для дистрибутива "Просто Линукс" (Simply Linux).
%package bootsplash
Summary: Theme for splash animations during bootup
Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива "Просто Линукс"
License: Distributable
Group: System/Configuration/Boot and Init
Provides: design-bootsplash design-bootsplash-%theme branding-alt-%theme-bootsplash
Requires: bootsplash >= 3.3
Obsoletes: branding-alt-%theme-bootsplash
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-bootsplash ";done )
%description bootsplash
This package contains graphics for boot process for Simply Linux
(needs console splash screen enabled).
%description bootsplash -l ru_RU.UTF-8
В данном пакете находится тема для экрана загрузки для дистрибутива
"Просто Линукс" (Simply Linux).
%package alterator
Summary: Design for alterator for Simply Linux
Summary(ru_RU.UTF-8): Тема для "Центра управления системой" и QT для дистрибутива "Просто Линукс"
License: GPL
Group: System/Configuration/Other
Packager: Denis Koryavov <dkoryavov at altlinux.org>
Provides: design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Provides: alterator-icons design-alterator design-alterator-%theme
Obsoletes: branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-browser-qt ";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 Simply Linux.
%description alterator -l ru_RU.UTF-8
В данном пакете находится тема для "Центра управления системой" (Alterator)
и модулей библиотеки QT для дистрибутива "Просто Линукс" (Simply Linux).
%package graphics
Summary: Design for Simply Linux
Summary(ru_RU.UTF-8): Тема для дистрибутива "Просто Линукс"
License: Different licenses
Group: Graphics
Provides: design-graphics-%theme branding-alt-%theme-graphics
Obsoletes: branding-alt-%theme-graphics design-graphics-%theme
PreReq(post,preun): alternatives >= 0.2
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-graphics ";done )
%description graphics
This package contains some graphics for Simply Linux design.
%description graphics -l ru_RU.UTF-8
В данном пакете находится необходимые графические элементы для дистрибутива
"Просто Линукс" (Simply Linux).
%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: Simply Linux release file
Summary(ru_RU.UTF-8): Описание дистрибутива "Просто Линукс"
Copyright: GPL
Group: System/Configuration/Other
Packager: Denis Koryavov <dkoryavov at altlinux.org>
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" = %theme ] || echo -n "branding-$n-release ";done )
%description release
Simply Linux %version release file.
%description release -l ru_RU.UTF-8
В данном пакете находится описание версии %version дистрибутива
"Просто Линукс" (Simply Linux).
%package notes
Provides: alt-license-theme = %version alt-notes-%theme
Obsoletes: alt-license-%theme alt-notes-%theme
Summary: Distribution license and release notes
Summary(ru_RU.UTF-8): Лицензия и дополнительные сведения для дистрибутива "Просто Линукс"
License: Distributable
Group: Documentation
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 "branding-$n-notes ";done )
%description notes
Distribution license and release notes
%description notes -l ru_RU.UTF-8
В данном пакете находится лицензия и дополнительные сведения для версии %version
дистрибутива "Просто Линукс" (Simply Linux).
%package xfce-settings
Summary: default settings for Xfce 4.6 for Simply linux distribution
License: Distributable
Group: Graphical desktop/XFce
Requires: PolicyKit-gnome
Requires: etcskel gtk2-theme-simplicity
Requires: gnome-icon-theme icon-theme-simple
Requires: branding-simply-linux-graphics
Obsoletes: xfce-settings-lite xfce-settings-school-lite
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-xfce-settings ";done )
Conflicts: xfce-settings-simply-linux
%description xfce-settings
This package contains default settings for Xfce 4.6 for Simply linux distribution.
%package slideshow
Summary: Slideshow for Simply Linux %version installer.
Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива "Просто Линукс"
License: Distributable
Group: System/Configuration/Other
Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-slideshow ";done )
%description slideshow
Slideshow for Simply Linux %version installer.
%description slideshow -l ru_RU.UTF-8
В данном пакете находятся изображения для организации "слайдшоу" в установщике
дистрибутива "Просто Линукс" (Simply Linux).
%package indexhtml
Summary: Simply Linux html welcome page
Summary(ru_RU.UTF-8): Стартовая страница для дистрибутива "Просто Линукс"
License: distributable
Group: System/Base
Provides: indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0
Obsoletes: indexhtml-desktop indexhtml-Desktop
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
Requires(post): indexhtml-common
%description indexhtml
Simply Linux index.html welcome page.
%description indexhtml -l ru_RU.UTF-8
В данном пакете содержится стартовая страница для дистрибутива
"Просто Линукс" (Simply Linux).
%prep
%setup -q
%build
autoconf
THEME=%theme NAME='%Name' STATUS=%status VERSION=%version ./configure
make
#bootloader
pushd design-bootloader-source/
DEFAULT_LANG='--lang-to-subst--' PATH=$PATH:/usr/sbin %make
popd
#altarator
pushd alterator
%make_build
popd
%install
#bootloader
pushd design-bootloader-source
install -d -m 755 %buildroot/boot/splash/%theme
install -d -m 755 %buildroot/%_datadir/gfxboot/%theme
install -m 644 message %buildroot/boot/splash/%theme
install -m 644 bootlogo %buildroot%_datadir/gfxboot/%theme
popd
#bootsplash
## create directory structure
mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/bootsplash/themes/%theme
cp -a bootsplash/* $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme
pushd $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme/config
#for i in 1 2 3 4 5 11; do \
for i in 1; do \
for f in bootsplash-*.cfg; do \
res=`echo "$f"| sed 's|.*\-\(.*\)\.cfg|\1|'`
ln -s $f vt${i}-${res}.cfg
done
done
popd
#alterator
pushd alterator
mkdir -p %buildroot/usr/share/alterator-browser-qt/design
install theme.rcc %buildroot/usr/share/alterator-browser-qt/design/%theme.rcc
mkdir -p %buildroot/usr/share/alterator/design/
cp -a images %buildroot/usr/share/alterator/design/
cp -a styles %buildroot/usr/share/alterator/design/
popd
mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name-browser-qt <<__EOF__
/etc/alterator/design-browser-qt /usr/share/alterator-browser-qt/design/%theme.rcc 50
__EOF__
#graphics
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
mkdir -p %buildroot/%_niconsdir
install graphics/icons/slinux.png %buildroot/%_niconsdir/slinux.png
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
install -d %buildroot//etc/alternatives/packages.d
cat >%buildroot/etc/alternatives/packages.d/%name-graphics <<__EOF__
%_datadir/artworks %_datadir/design/%theme 10
%_datadir/design-current %_datadir/design/%theme 10
%_datadir/design/current %_datadir/design/%theme 10
__EOF__
#release
install -pD -m644 /dev/null %buildroot%_sysconfdir/buildreqs/packages/ignore.d/%name-release
echo "%Name %version %status (%codename)" >%buildroot%_sysconfdir/altlinux-release
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir/$n-release
done
#notes
pushd notes
%makeinstall
popd
#xfce-settings
pushd xfce-settings
mkdir -p %buildroot/etc/skel/.config/Terminal
mkdir -p %buildroot/etc/skel/.config/Thunar
mkdir -p %buildroot/etc/skel/.config/autostart
mkdir -p %buildroot/etc/skel/.config/sonata
mkdir -p %buildroot/etc/skel/.gconf/apps/gnome-screensaver
mkdir -p %buildroot/etc/skel/.gconf/desktop/gnome/session
mkdir -p %buildroot/etc/skel/.config/xfce4/desktop
mkdir -p %buildroot/etc/skel/.config/xfce4/notication-daemon-xfce
mkdir -p %buildroot/etc/skel/.config/xfce4/panel
mkdir -p %buildroot/etc/skel/.config/xfce4/xfconf
mkdir -p %buildroot/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml
mkdir -p %buildroot/etc/skel/.local/share/applications
mkdir -p %buildroot/etc/skel/Шаблоны
mkdir -p %buildroot/etc/skel/Музыка
mkdir -p %buildroot/etc/skel/Музыка/mpd
mkdir -p %buildroot/etc/skel/Музыка/mpd/playlists
cp etcskel/Шаблоны/* %buildroot/etc/skel/Шаблоны
cp -ra etcskel/.config/* %buildroot/etc/skel/.config
cp -ra etcskel/.gconf/* %buildroot/etc/skel/.gconf
install -m 644 etcskel/.local/share/applications/* %buildroot/etc/skel/.local/share/applications
install -m 644 etcskel/.wm-select %buildroot/etc/skel/
install -m 644 etcskel/.fonts.conf %buildroot/etc/skel/
install -m 644 etcskel/.mpdconf %buildroot/etc/skel/
mkdir -p %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1600x1200
mkdir -p %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1680x1050
cp -P backgrounds/*.jpg %buildroot/usr/share/xfce4/backdrops/
install -m 644 backgrounds/vladstudio.com/LICENSE.txt %buildroot/usr/share/xfce4/backdrops/vladstudio.com/
install -m 644 backgrounds/vladstudio.com/1600x1200/* %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1600x1200/
install -m 644 backgrounds/vladstudio.com/1680x1050/* %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1680x1050/
popd
#slideshow
mkdir -p %buildroot/usr/share/install2/slideshow
install slideshow/* %buildroot/usr/share/install2/slideshow/
#indexhtml
%define _altdocsdir %_defaultdocdir/alt-docs
%define _indexhtmldir %_defaultdocdir/indexhtml
pushd indexhtml
mkdir -p %buildroot{%_indexhtmldir/,%_desktopdir/}
cp -r * %buildroot%_indexhtmldir/
rm -f %buildroot%_indexhtmldir/*.in
touch %buildroot%_indexhtmldir/index.html
popd
install -m644 indexhtml.desktop %buildroot%_desktopdir/
#bootloader
%pre bootloader
[ -s /boot/splash/%theme ] && rm -rf /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
%preun bootloader
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%post indexhtml
%_sbindir/indexhtml-update
%files bootloader
%_datadir/gfxboot/%theme
/boot/splash/%theme
#bootsplash
%post bootsplash
%__ln_s -nf %theme %_sysconfdir/bootsplash/themes/current
%preun bootsplash
[ $1 = 0 ] || exit 0
[ "`readlink %_sysconfdir/bootsplash/themes/current`" != %theme ] ||
%__rm -f %_sysconfdir/bootsplash/themes/current
%files alterator
%config %_altdir/%name-browser-qt
/usr/share/alterator-browser-qt/design/%theme.rcc
/usr/share/alterator/design/*
%files graphics
%config /etc/alternatives/packages.d/%name-graphics
%_datadir/design
%_niconsdir/slinux.png
%_iconsdir/altlinux.png
%files bootsplash
%_sysconfdir/bootsplash/themes/%theme/
%files release
%_sysconfdir/*-*
%_sysconfdir/buildreqs/packages/ignore.d/*
%files notes
%_datadir/alt-notes/*
%files xfce-settings
/etc/skel/Шаблоны
/etc/skel/Музыка/mpd/playlists
/etc/skel/.wm-select
/etc/skel/.fonts.conf
/etc/skel/.mpdconf
/etc/skel/.config
/etc/skel/.local
/etc/skel/.gconf
/usr/share/xfce4/backdrops
%files slideshow
/usr/share/install2/slideshow
%files indexhtml
%ghost %_indexhtmldir/index.html
%_indexhtmldir/*
%_desktopdir/*
%changelog
…
changelog