3 # _without_mpg - don't build support for MPG/MPEG3
5 Summary: DirectFB - Hardware graphics acceleration
6 Summary(pl): DirectFB - Wspomaganie grafiki
12 Source0: http://www.directfb.org/download/%{name}/%{name}-%{version}.tar.gz
13 Source1: http://www.directfb.org/download/DirectFB/DFBTutorials-0.5.0.tar.gz
14 Patch0: %{name}-am.patch
15 URL: http://www.directfb.org/
16 #BuildRequires: SDL-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: freetype-devel >= 2.0.2
20 BuildRequires: libjpeg-devel >= 6b
21 %{!?_without_mpg:BuildRequires: libmpeg3-devel}
22 BuildRequires: libpng-devel >= 1.0
23 BuildRequires: libtool
24 BuildRequires: zlib-devel >= 1.1.3
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define dfbdir %{_libdir}/directfb-%{version}
30 DirectFB hardware graphics acceleration - libraries.
33 Wspomaganie grafiki DirectFB - biblioteki.
36 Summary: DirectFB - development package
37 Summary(pl): DirectFB - pliki nag³ówkowe
38 Group: Development/Libraries
39 Requires: %{name} = %{version}
42 DirectFB header files.
44 %description devel -l pl
45 Pliki nag³ówkowe dla DirectFB.
48 Summary: DirectFB static libraries
49 Summary(pl): Statyczne biblioteki DirectFB
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}
54 DirectFB static libraries.
56 %description static -l pl
57 Statyczne biblioteki DirectFB.
60 Summary: DirectFB - documentation
61 Summary(pl): DirectFB - dokumentacja
62 Group: Development/Libraries
65 DirectFB documentation and tutorials.
67 %description doc -l pl
68 Dokumentacja dla systemu DirectFB wraz z wprowadzeniem.
71 Summary: FreeType2 font provider for DirectFB
72 Summary(pl): DirectFB - wtyczka dostarczaj±ca fonty poprzez FreeType2
74 Requires: %{name} = %{version}
77 This package contains FreeType2 font provider for DirectFB.
79 %description font-ft2 -l pl
80 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± fonty poprzez
84 Summary: JPEG image provider for DirectFB
85 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê JPEG
87 Requires: %{name} = %{version}
89 %description image-jpeg
90 This package contains JPEG image provider for DirectFB.
92 %description image-jpeg -l pl
93 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê JPEG.
96 Summary: PNG image provider for DirectFB
97 Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê PNG
99 Requires: %{name} = %{version}
101 %description image-png
102 This package contains PNG image provider for DirectFB.
104 %description image-png -l pl
105 Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê PNG.
107 %package video-libmpeg3
108 Summary: MPEG video provider for DirectFB
109 Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz MPEG
111 Requires: %{name} = %{version}
113 %description video-libmpeg3
114 This package contains MPEG (MPEG-1 and MPEG-2) video provider for
115 DirectFB. It uses libmpeg3 library.
117 %description video-libmpeg3 -l pl
118 Ten pakiet zawiera wtyczkê dla DirectFB dostarczajac± obraz MPEG
119 (MPEG-1 i MPEG-2) przy u¿yciu biblioteki libmpeg3.
131 CPPFLAGS="-I/usr/include/libmpeg3"
132 # SDL core disabled (used directly, not through plugin - too many deps)
133 # MMX and SSE are detected at runtime, so it's safe to enable
135 --disable-maintainer-mode \
138 --disable-fast-install \
140 %{?_without_mpg:--disable-libmpeg3} \
142 %ifarch i586 i686 athlon
152 rm -rf $RPM_BUILD_ROOT
153 %{__make} DESTDIR=$RPM_BUILD_ROOT install
155 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
156 cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
159 rm -rf $RPM_BUILD_ROOT
161 %post -p /sbin/ldconfig
162 %postun -p /sbin/ldconfig
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_libdir}/lib*.so.*.*
168 %dir %{dfbdir}/gfxdrivers
169 %attr(755,root,root) %{dfbdir}/gfxdrivers/*.so
170 %{dfbdir}/gfxdrivers/*.la
171 %dir %{dfbdir}/inputdrivers
172 %attr(755,root,root) %{dfbdir}/inputdrivers/*.so
173 %{dfbdir}/inputdrivers/*.la
174 %dir %{dfbdir}/interfaces
175 %dir %{dfbdir}/interfaces/IDirectFBFont
176 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.so
177 %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_default.la
178 %dir %{dfbdir}/interfaces/IDirectFBImageProvider
179 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so
180 %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.la
181 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.so
182 %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_mpeg2.la
183 %dir %{dfbdir}/interfaces/IDirectFBVideoProvider
184 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so
185 %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.la
186 %{_datadir}/directfb-%{version}
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_bindir}/directfb-config
192 %attr(755,root,root) %{_bindir}/directfb-csource
193 %attr(755,root,root) %{_libdir}/*.so
195 %{_includedir}/directfb
196 %{_includedir}/directfb-internal
198 %{_mandir}/man1/directfb-csource.1*
201 %defattr(644,root,root,755)
203 %{dfbdir}/gfxdrivers/*.a
204 %{dfbdir}/inputdrivers/*.a
205 %{dfbdir}/interfaces/*/*.a
208 %defattr(644,root,root,755)
210 %{_examplesdir}/%{name}-%{version}
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.so
215 %{dfbdir}/interfaces/IDirectFBFont/libidirectfbfont_ft2.la
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so
220 %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.la
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so
225 %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.la
227 %if 0%{!?_without_mpg:1}
228 %files video-libmpeg3
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so
231 %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.la