1 |
%define version 4.1.19.24 |
2 |
%define release %mkrel 1 |
3 |
|
4 |
Summary: %_vendor graphical boot theme |
5 |
Name: mageia-gfxboot-theme |
6 |
Version: %version |
7 |
Release: %release |
8 |
License: GPL |
9 |
Group: System/Configuration/Boot and Init |
10 |
URL: http://svn.mageia.org/cgi-bin/viewvc.cgi/soft/theme/mandriva-gfxboot-theme/trunk/ |
11 |
Source: mageia-gfxboot-theme-%{version}.tar.lzma |
12 |
# |
13 |
Source1: back.jpg |
14 |
Source2: welcome.jpg |
15 |
Source3: timer_a.jpg |
16 |
Source4: mandriva.pcx |
17 |
Source5: grub-gfxmenu |
18 |
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
20 |
BuildRequires: gfxboot-devel |
21 |
Requires(post): perl-Archive-Cpio |
22 |
Exclusivearch: %ix86 x86_64 |
23 |
|
24 |
%description |
25 |
This package provides the Mandriva gfxboot theme. This theme is used by the |
26 |
%_vendor installation to initialized the CDROM boot, and by installed system |
27 |
to boot. |
28 |
|
29 |
%prep |
30 |
%setup -q |
31 |
|
32 |
# our jpegs: |
33 |
install -m 644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} data-install/ |
34 |
install -m 644 %{SOURCE1} %{SOURCE3} data-boot/ |
35 |
|
36 |
%build |
37 |
#gfxboot binary is needed for the build and is in /usr/sbin |
38 |
#make sure we only build one task at a time since po generation is broken |
39 |
#otherwise |
40 |
PATH="$PATH:/usr/sbin" make |
41 |
|
42 |
%install |
43 |
rm -rf $RPM_BUILD_ROOT |
44 |
dest=%{buildroot}%{_datadir}/gfxboot/themes/%_vendor |
45 |
install -d $dest/install $dest/boot |
46 |
install bootlogo bootlogo.dir/* $dest/install/ |
47 |
install message $dest/boot/ |
48 |
|
49 |
# install grub-gfxmenu |
50 |
install -d %{buildroot}%{_sbindir} |
51 |
install %{SOURCE5} %{buildroot}%{_sbindir} |
52 |
|
53 |
%clean |
54 |
rm -rf $RPM_BUILD_ROOT |
55 |
|
56 |
%post |
57 |
if [ "$1" -gt 1 ]; then |
58 |
%_sbindir/grub-gfxmenu --update-gfxmenu |
59 |
fi |
60 |
|
61 |
%files |
62 |
%defattr(-,root,root,-) |
63 |
%doc |
64 |
%_sbindir/* |
65 |
%_datadir/gfxboot/themes/%_vendor/ |
66 |
|