]>
Commit | Line | Data |
---|---|---|
2acc4fb7 | 1 | # TODO: |
2 | # - place somewhere info that distkernel support only 16bit splashes (thnx Tomasz Grobelny) | |
3 | # | |
57af4306 | 4 | Summary: Bootsplash - graphical boot process for Linux |
3876d33b ER |
5 | Summary(de.UTF-8): Bootsplash - graphischer System Start |
6 | Summary(pl.UTF-8): Bootsplash - graficzny proces startu systemu dla Linuksa | |
96fdc6dd | 7 | Name: bootsplash |
53ee5297 | 8 | Version: 3.2 |
35e7c5bf | 9 | Release: 7 |
96fdc6dd | 10 | License: GPL v2 |
57af4306 | 11 | Group: Applications/System |
a22a7a46 | 12 | Source0: http://www.bootsplash.de/files/splashutils/%{name}-%{version}.tar.bz2 |
53ee5297 | 13 | # Source0-md5: b74c104372fd182d0442b3ed63210e29 |
c9a3e7d5 | 14 | Source1: %{name}.script |
22378773 AM |
15 | Source2: %{name}-bootanim.script |
16 | Source3: %{name}.sysconfig | |
9c11ca06 | 17 | Source4: %{name}.init |
53ee5297 | 18 | Patch0: %{name}-3.2_makefile_libmng.patch |
1cb41aea JB |
19 | URL: http://www.bootsplash.org/ |
20 | BuildRequires: freetype-devel >= 2.1 | |
fd2c7fcf | 21 | BuildRequires: libmng-devel |
0d1762fd | 22 | BuildRequires: rpmbuild(macros) >= 1.268 |
ee901123 | 23 | Requires(post,preun): /sbin/chkconfig |
08cf3e53 | 24 | Suggests: bootsplash-theme |
96fdc6dd | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
c800a360 AM |
27 | %define _bindir /bin |
28 | ||
96fdc6dd | 29 | %description |
30 | When you have a kernel with bootsplash capability you can use the | |
3f3dd1a9 | 31 | bootsplash and control its behaviour with this set of userspace |
96fdc6dd | 32 | utilities. |
33 | ||
42a05921 | 34 | %description -l de.UTF-8 |
451cc909 | 35 | Wenn du einen Kernel mit der bootsplash Option hast, kannst du diese |
36 | mit diesen Programmen steuern. | |
37 | ||
42a05921 JR |
38 | %description -l pl.UTF-8 |
39 | Mając jądro z opcją bootsplash można uzyskać graficzny ekran podczas | |
40 | startu systemu i sterować jego zachowaniem przy użyciu tego zbioru | |
41 | narzędzi przestrzeni użytkownika. | |
1cb41aea | 42 | |
96fdc6dd | 43 | %prep |
f69762b8 | 44 | %setup -q |
53ee5297 | 45 | %patch0 -p1 |
5b548eb2 | 46 | rm -f Utilities/splash.o |
96fdc6dd | 47 | |
48 | %build | |
1cb41aea JB |
49 | %{__make} -C Utilities \ |
50 | CC="%{__cc}" \ | |
51 | CFLAGS="%{rpmcflags} -Wall -I/usr/include/freetype2 -DDEFAULT_FONTNAME=\\\"%{_datadir}/%{name}/luxisri.ttf\\\"" \ | |
52 | STRIP=true | |
96fdc6dd | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
9f353baf ER |
56 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_sysconfdir}/bootsplash/themes} \ |
57 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} | |
96fdc6dd | 58 | |
c800a360 | 59 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/splash |
22378773 AM |
60 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/bootanim |
61 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/bootsplash | |
9c11ca06 | 62 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootsplash |
96fdc6dd | 63 | install Scripts/* $RPM_BUILD_ROOT%{_datadir}/%{name} |
c9a3e7d5 AM |
64 | install Utilities/splash $RPM_BUILD_ROOT%{_bindir}/splash.bin |
65 | install Utilities/{fbmngplay,fbresolution,fbtruetype} $RPM_BUILD_ROOT%{_bindir} | |
96fdc6dd | 66 | install Utilities/*.ttf $RPM_BUILD_ROOT%{_datadir}/%{name} |
16098607 | 67 | |
96fdc6dd | 68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
ee901123 | 71 | %post |
72 | /sbin/chkconfig --add bootsplash | |
73 | ||
74 | %preun | |
75 | if [ "$1" = "0" ]; then | |
76 | %service bootsplash stop | |
77 | /sbin/chkconfig --del bootsplash | |
78 | fi | |
79 | ||
96fdc6dd | 80 | %files |
81 | %defattr(644,root,root,755) | |
1cb41aea | 82 | %doc {Documentation,Utilities}/README.* |
96fdc6dd | 83 | %attr(755,root,root) %{_bindir}/* |
5b548eb2 | 84 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bootsplash |
9c11ca06 | 85 | %attr(754,root,root) /etc/rc.d/init.d/bootsplash |
96fdc6dd | 86 | %{_datadir}/%{name} |
451cc909 | 87 | %dir %{_sysconfdir}/bootsplash |
88 | %dir %{_sysconfdir}/bootsplash/themes |