]> git.pld-linux.org Git - packages/bootsplash.git/blob - bootsplash.spec
- new
[packages/bootsplash.git] / bootsplash.spec
1
2 %bcond_without  themes          # build without themes
3
4 Summary:        Bootsplash - graphical boot process for Linux
5 Summary(pl):    Bootsplash - graficzny proces startu systemu dla Linuksa
6 Name:           bootsplash
7 Version:        3.0.7
8 Release:        0.4
9 Epoch:          0
10 License:        GPL v2
11 Group:          Applications/System
12 Source0:        ftp://ftp.suse.com/pub/people/stepan/%{name}/rpm-sources/%{name}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  d7c7cdab692fb2edc5cf5ebb554f20a1
14 Source1:        %{name}.script
15 Source2:        %{name}.sysconfig
16 Source3:        %{name}-theme-darkblue-1.2.tar.gz
17 # Source3-md5:  a5b64219f284ff772a4f3ebcd4f2bc34
18 Patch0:         %{name}-freetype-includes.patch
19 URL:            http://www.bootsplash.org/
20 BuildRequires:  freetype-devel >= 2.1
21 BuildRequires:  libmng-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _bindir /bin
25
26 %description
27 When you have a kernel with bootsplash capability you can use the
28 bootsplash and control it's behaviour with this set of userspace
29 utilities.
30
31 %description -l pl
32 Maj±c j±dro z opcj± bootsplash mo¿na uzyskaæ graficzny ekran podczas
33 startu systemu i sterowaæ jego zachowaniem przy u¿yciu tego zbioru
34 narzêdzi przestrzeni u¿ytkownika.
35
36 %if %{with themes}
37 %package theme-darkblue
38 Summary:        Bootsplash - darkblue theme
39 Summary(pl):    Bootsplash - motyw darkblue
40 Group:          Themes
41 Requires:       bootsplash
42
43 %description theme-darkblue
44 Darkblue theme for bootsplash.
45
46 %description theme-darkblue -l pl
47 Motyw darkblue do bootsplash.
48
49 %endif
50
51 %prep
52 %setup -q %{?with_themes:-a3}
53 %patch0 -p1
54
55 %build
56 %{__make} -C Utilities \
57         CC="%{__cc}" \
58         CFLAGS="%{rpmcflags} -Wall -I/usr/include/freetype2 -DDEFAULT_FONTNAME=\\\"%{_datadir}/%{name}/luxisri.ttf\\\"" \
59         STRIP=true
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},/etc/{bootsplash/themes,sysconfig}}
64
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/splash
66 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bootsplash
67 install Scripts/* $RPM_BUILD_ROOT%{_datadir}/%{name}
68 install Utilities/splash $RPM_BUILD_ROOT%{_bindir}/splash.bin
69 install Utilities/{fbmngplay,fbresolution,fbtruetype} $RPM_BUILD_ROOT%{_bindir}
70 install Utilities/*.ttf $RPM_BUILD_ROOT%{_datadir}/%{name}
71 %if %{with themes}
72 #darkblue theme
73 THEME_DIR=$RPM_BUILD_ROOT/etc/bootsplash/themes/darkblue
74 install -d $THEME_DIR{,/animations,/config,/images}
75 install darkblue/animations/*.mng $THEME_DIR/animations
76 install darkblue/config/*.cfg $THEME_DIR/config
77 install darkblue/images/*.jpeg $THEME_DIR/images
78 %endif
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc {Documentation,Utilities}/README.*
86 %attr(755,root,root) %{_bindir}/*
87 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bootsplash
88 %{_datadir}/%{name}
89
90 %files theme-darkblue
91 %defattr(644,root,root,755)
92 /etc/bootsplash/themes/darkblue/animations/*
93 %config(noreplace) %verify(not md5 size mtime)/etc/bootsplash/themes/darkblue/config/*
94 /etc/bootsplash/themes/darkblue/images/*
This page took 0.031268 seconds and 3 git commands to generate.