Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37764976
en ru br
Репозитории ALT
4.1: 4.0.0-alt1
4.0: 4.0.0-alt0.9.M40.2
www.altlinux.org/Changes

Группа :: Графика
Пакет: design-bootloader-junior-sm

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define variants installer system livecd
%define theme junior
%define base_name design-bootloader

Name: %base_name-%theme-sm
Version: 4.0.0
Release: alt1

Group: Graphics
Summary: Graphical boot logo for lilo and syslinux
License: GPL

BuildArch: noarch
PreReq: coreutils
BuildRequires: cpio gfxboot >= 2.5 fonts-ttf-dejavu >= 2.21 rsync
BuildRequires: design-bootloader-installer-source design-bootloader-system-source design-bootloader-livecd-source

Source: %name-%version.tar

%description
Here you find the graphical boot logo. Suitable for both lilo and syslinux.

%package -n %base_name-installer-%theme-sm
PreReq: coreutils
Group: Graphics
Summary: Graphical boot logo for lilo and syslinux
Provides: %base_name-Junior = %version-%release
Obsoletes: %base_name-Junior < %version-%release

%description -n %base_name-installer-%theme-sm
Graphical boot logo for lilo and syslinux.

%package -n %base_name-system-%theme-sm
PreReq: coreutils
Group: Graphics
Summary: Graphical boot logo for lilo and syslinux
Provides: %base_name-Junior = %version-%release
Obsoletes: %base_name-Junior < %version-%release

%description -n %base_name-system-%theme-sm
Graphical boot logo for lilo and syslinux.

%package -n %base_name-livecd-%theme-sm
PreReq: coreutils
Group: Graphics
Summary: Graphical boot logo for lilo and syslinux
Provides: %base_name-Junior = %version-%release
Obsoletes: %base_name-Junior < %version-%release

%description -n %base_name-livecd-%theme-sm
Graphical boot logo for lilo and syslinux.

%prep
%setup
for v in %variants
do
   cp -a  /usr/src/design-bootloader-$v-source ./
   rsync -a --exclude='design-bootloader-*-source' . design-bootloader-$v-source
done
find . -name Makefile -exec sed -i 's/DejaVuSans:/DejaVuCondensedSans:/g' {} \;

%build
for v in %variants
do
   pushd design-bootloader-$v-source
   %make BINDIR=/usr/bin/
   popd
done

%install
for v in %variants
do
   pushd design-bootloader-$v-source
   install -d -m 755 %buildroot/boot/splash/%theme-$v
   install -d -m 755 %buildroot/%_datadir/gfxboot/%theme-$v/
   install -m 644 boot/message %buildroot/boot/splash/%theme-$v/
   install -m 644 install/bootlogo %buildroot%_datadir/gfxboot/%theme-$v/
   popd
done

%post -n %base_name-installer-%theme-sm
%__ln_s -nf %theme-installer/message /boot/splash/message
%__ln_s -nf /boot/splash/%theme-installer /boot/splash/%theme
%__ln_s -nf %_datadir/gfxboot/%theme-installer %_datadir/gfxboot/%theme


%preun -n %base_name-installer-%theme-sm
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
   %__rm -f /boot/splash/message

%post -n %base_name-system-%theme-sm
%__ln_s -nf %theme-system/message /boot/splash/message
%__ln_s -nf /boot/splash/%theme-system /boot/splash/%theme
%__ln_s -nf %_datadir/gfxboot/%theme-system %_datadir/gfxboot/%theme

%preun -n %base_name-system-%theme-sm
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
   %__rm -f /boot/splash/message

%post -n %base_name-livecd-%theme-sm
%__ln_s -nf %theme-livecd/message /boot/splash/message
%__ln_s -nf /boot/splash/%theme-livecd /boot/splash/%theme
%__ln_s -nf %_datadir/gfxboot/%theme-livecd %_datadir/gfxboot/%theme


%preun -n %base_name-livecd-%theme-sm
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
   %__rm -f /boot/splash/message


%files -n %base_name-installer-%theme-sm
%_datadir/gfxboot/%theme-installer
/boot/splash/%theme-installer

%files -n %base_name-system-%theme-sm
%_datadir/gfxboot/%theme-system
/boot/splash/%theme-system

%files -n %base_name-livecd-%theme-sm
%_datadir/gfxboot/%theme-livecd
/boot/splash/%theme-livecd

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin