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