%define version 4.1.19.29 %define release %mkrel 1 Summary: %_vendor graphical boot theme Name: mageia-gfxboot-theme Version: %version Release: %release License: GPL Group: System/Configuration/Boot and Init URL: http://svnweb.mageia.org/soft/theme/mageia-gfxboot-theme/trunk/ Source: mageia-gfxboot-theme-%{version}.tar.lzma # Source1: back.jpg Source2: welcome.jpg Source3: timer_a.jpg Source4: grub-gfxmenu BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gfxboot-devel Requires(post): perl-Archive-Cpio ExclusiveArch: %ix86 x86_64 Obsoletes: mandriva-gfxboot-theme %description This package provides the Mageia gfxboot theme. This theme is used by the %_vendor installation to initialized the CDROM boot, and by installed system to boot. %prep %setup -q -n %name-%version # our jpegs: install -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} data-install/ install -m 644 %{SOURCE1} %{SOURCE3} data-boot/ %build #gfxboot binary is needed for the build and is in /usr/sbin #make sure we only build one task at a time since po generation is broken #otherwise PATH="$PATH:/usr/sbin" make %install rm -rf $RPM_BUILD_ROOT dest=%{buildroot}%{_datadir}/gfxboot/themes/%_vendor install -d $dest/install $dest/boot install bootlogo bootlogo.dir/* $dest/install/ install message $dest/boot/ # install grub-gfxmenu install -d %{buildroot}%{_sbindir} install %{SOURCE4} %{buildroot}%{_sbindir} %clean rm -rf $RPM_BUILD_ROOT %post if [ "$1" -gt 1 ]; then %_sbindir/grub-gfxmenu --update-gfxmenu fi %triggerun -- mandriva-gfxboot-theme if [ -x %_sbindir/grub-gfxmenu ]; then %_sbindir/grub-gfxmenu --update-gfxmenu fi %files %defattr(-,root,root,-) %doc %_sbindir/* %_datadir/gfxboot/themes/%_vendor/