#
# Conditional build:
-# _without_flash - don't build FLASH video provider
+%bcond_without flash # don't build FLASH video provider
+%bcond_without mpg # don't build support for MPG/MPEG3
#
Summary: Additional providers and drivers for DirectFB
-Summary(pl): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
+Summary(pl.UTF-8): DirectFB - dodatkowe wtyczki i sterowniki do DirectFB
Name: DirectFB-extra
-Version: 0.9.16
+Version: 1.0.0
Release: 1
License: LGPL v2+
Group: Libraries
-Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
-# Source0-md5: e5084d213dfd309987d139f816930340
+Source0: http://www.directfb.org/downloads/Extras/%{name}-%{version}.tar.gz
+# Source0-md5: 2d744ad06139640857b988d244275235
Patch0: %{name}-acfix.patch
+Patch1: %{name}-mpeg3_open.patch
URL: http://www.directfb.org/
-BuildRequires: DirectFB-devel >= %{version}
-BuildRequires: autoconf
+BuildRequires: DirectFB-devel >= 1:%{version}
+BuildRequires: FusionSound-devel >= 0.9.25
+BuildRequires: autoconf >= 2.52
BuildRequires: automake
-%{!?_without_flash:BuildRequires: flash-devel >= 0.4.10-5}
+BuildRequires: ffmpeg-devel
+%{?with_flash:BuildRequires: gplflash-devel >= 0.4.10-5}
BuildRequires: imlib2-devel
+%{?with_mpg:BuildRequires: libmpeg3-devel}
+BuildRequires: libsvg-cairo-devel >= 0.1.6
BuildRequires: libtool
BuildRequires: openquicktime-devel
-BuildRequires: pkgconfig >= 0.5
+BuildRequires: pkgconfig >= 1:0.9
+BuildRequires: swfdec-devel >= 0.3.0
+BuildRequires: xine-lib-devel >= 2:1.0-0.rc3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define dfbdir %(pkg-config --variable=moduledir directfb-internal)
graphics/input drivers (currently Imlib2 image provider and
OpenQuicktime video provider).
-%description -l pl
-Ten pakiet zawiera dodatkowe wtyczki dostarczaj±ce grafikê, obraz i
-fonty oraz sterowniki grafiki i wej¶ciowe (aktualnie: wtyczkê
-dostarczaj±c± grafikê poprzez Imlib2 oraz wtyczkê dostarczaj±c± obraz
+%description -l pl.UTF-8
+Ten pakiet zawiera dodatkowe wtyczki dostarczające grafikę, obraz i
+fonty oraz sterowniki grafiki i wejściowe (aktualnie: wtyczkę
+dostarczającą grafikę poprzez Imlib2 oraz wtyczkę dostarczającą obraz
OpenQuicktime).
+%package -n DirectFB-image-bmp
+Summary: BMP image provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę BMP
+Group: Libraries
+%requires_eq DirectFB
+
+%description -n DirectFB-image-bmp
+This package contains BMP mage provider for DirectFB.
+
+%description -n DirectFB-image-bmp -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę BMP.
+
%package -n DirectFB-image-imlib2
Summary: Imlib2 image provider for DirectFB
-Summary(pl): DirectFB - wtyczka dostarczaj±ca grafikê poprzez Imlib2
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę poprzez Imlib2
Group: Libraries
%requires_eq DirectFB
%description -n DirectFB-image-imlib2
This package contains image provider based on Imlib2 for DirectFB.
-%description -n DirectFB-image-imlib2 -l pl
-Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± grafikê poprzez
-bibliotekê Imlib2.
+%description -n DirectFB-image-imlib2 -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę poprzez
+bibliotekę Imlib2.
+
+%package -n DirectFB-image-pnm
+Summary: PNM image provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę PNM
+Group: Libraries
+%requires_eq DirectFB
+
+%description -n DirectFB-image-pnm
+This package contains PNM image provider. It supports PBM, PGM and PPM
+formats (both ASCII and RAW).
+
+%description -n DirectFB-image-pnm -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę PNM.
+Obsługuje formaty PBM, PGM i PPM (zarówno ASCII, jak i binarne).
+
+%package -n DirectFB-image-svg
+Summary: SVG image provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca grafikę SVG
+Group: Libraries
+%requires_eq DirectFB
+
+%description -n DirectFB-image-svg
+This package contains SVG image provider using Cairo library.
+
+%description -n DirectFB-image-svg -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą grafikę SVG przy
+użyciu biblioteki Cairo.
+
+%package -n DirectFB-video-ffmpeg
+Summary: FFmpeg video provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz FFmpeg
+Group: Libraries
+%requires_eq DirectFB
+%requires_eq FusionSound
+
+%description -n DirectFB-video-ffmpeg
+DirectFB video provider using FFmpeg codecs.
+
+%description -n DirectFB-video-ffmpeg -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz przy
+użyciu kodeków FFmpeg.
+
+%package -n DirectFB-video-libmpeg3
+Summary: MPEG video provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz MPEG
+Group: Libraries
+%requires_eq DirectFB
+
+%description -n DirectFB-video-libmpeg3
+This package contains MPEG (MPEG-1 and MPEG-2) video provider for
+DirectFB. It uses libmpeg3 library.
+
+%description -n DirectFB-video-libmpeg3 -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczajacą obraz MPEG
+(MPEG-1 i MPEG-2) przy użyciu biblioteki libmpeg3.
%package -n DirectFB-video-openquicktime
Summary: OpenQuicktime video provider for DirectFB
-Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz OpenQuicktime
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz OpenQuicktime
Group: Libraries
%requires_eq DirectFB
%description -n DirectFB-video-openquicktime
-This package contains OpenQuicktime video provider for DirectFB.
+This package contains OpenQuicktime video provider for DirectFB. It
+supports all RGB and YUV formats and does audio playback.
-%description -n DirectFB-video-openquicktime -l pl
-Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz
-OpenQuicktime.
+%description -n DirectFB-video-openquicktime -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz
+OpenQuicktime. Obsługuje wszystkie formaty RGB i YUV oraz odtwarza
+dźwięk.
%package -n DirectFB-video-swf
Summary: ShockWave Flash video provider for DirectFB
-Summary(pl): DirectFB - wtyczka dostarczaj±ca obraz ShockWave Flash
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash
Group: Libraries
%requires_eq DirectFB
This package contains SWF (ShockWave Flash) video provider for
DirectFB. It uses flash library.
-%description -n DirectFB-video-swf -l pl
-Ten pakiet zawiera wtyczkê dla DirectFB dostarczaj±c± obraz SWF
-(ShockWave Flash) przy u¿yciu biblioteki flash.
+%description -n DirectFB-video-swf -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
+(ShockWave Flash) przy użyciu biblioteki flash.
+
+%package -n DirectFB-video-swfdec
+Summary: ShockWave Flash video provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz ShockWave Flash
+Group: Libraries
+%requires_eq DirectFB
+
+%description -n DirectFB-video-swfdec
+This package contains SWF (ShockWave Flash) video provider for
+DirectFB. It uses swfdec library.
+
+%description -n DirectFB-video-swfdec -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz SWF
+(ShockWave Flash) przy użyciu biblioteki swfdec.
+
+%package -n DirectFB-video-xine
+Summary: XINE video provider for DirectFB
+Summary(pl.UTF-8): DirectFB - wtyczka dostarczająca obraz XINE
+Group: Libraries
+%requires_eq DirectFB
+%requires_eq xine-lib
+
+%description -n DirectFB-video-xine
+This package contains video provider for DirectFB which uses XINE
+library and plugins. It handles a wide range of video formats.
+
+%description -n DirectFB-video-xine -l pl.UTF-8
+Ten pakiet zawiera wtyczkę dla DirectFB dostarczającą obraz przy
+użyciu biblioteki i wtyczek XINE. Obsługuje szeroki zakres formatów
+obrazu.
+
+%package -n xine-ui-dfb
+Summary: DirectFB-based XINE UI
+Summary(pl.UTF-8): Interfejs użytkownika XINE oparty na DirectFB
+Group: Applications/Multimedia
+%requires_eq DirectFB
+Requires: xine-lib >= 2:1.0-0.rc3
+
+%description -n xine-ui-dfb
+DirectFB-based XINE UI. This package contains also DirectFB video
+output plugin for XINE.
+
+%description -n xine-ui-dfb -l pl.UTF-8
+Interfejs użytkownika XINE oparty na DirectFB. Zawiera także wtyczkę
+wyjścia obrazu DirectFB dla XINE.
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
%{__autoconf}
%{__autoheader}
%{__automake}
-# paths for libflash
-CPPFLAGS="-I/usr/X11R6/include"
-LDFLAGS="%{rpmldflags} -L/usr/X11R6/lib"
+CPPFLAGS="-I/usr/include/libmpeg3"
%configure \
--disable-avifile \
- %{?_without_flash:--disable-flash}
+ %{?with_flash:--enable-flash} \
+ %{?with_mpg:--enable-libmpeg3} \
+ --enable-openquicktime \
+ --enable-svg \
+ --enable-swfdec
-%{__make} MODULEDIR=%{dfbdir}
+%{__make} \
+ MODULEDIR=%{dfbdir}
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT \
MODULEDIR=%{dfbdir}
+rm -f $RPM_BUILD_ROOT%{dfbdir}/interfaces/*/*.la \
+ $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.la
+
%clean
rm -rf $RPM_BUILD_ROOT
+%files -n DirectFB-image-bmp
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_bmp.so
+
%files -n DirectFB-image-imlib2
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
+%doc ChangeLog README
%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.so
-%{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.la
+
+%files -n DirectFB-image-pnm
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_pnm.so
+
+%files -n DirectFB-image-svg
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_svg.so
+
+%files -n DirectFB-video-ffmpeg
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_ffmpeg.so
+
+%if %{with mpg}
+%files -n DirectFB-video-libmpeg3
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_libmpeg3.so
+%endif
%files -n DirectFB-video-openquicktime
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
+%doc ChangeLog README
%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.so
-%{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_openquicktime.la
-%if 0%{!?_without_flash:1}
+%if %{with flash}
%files -n DirectFB-video-swf
%defattr(644,root,root,755)
+%doc ChangeLog README
%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.so
-%{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swf.la
%endif
+
+%files -n DirectFB-video-swfdec
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_swfdec.so
+
+%files -n DirectFB-video-xine
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_xine.so
+
+%files -n xine-ui-dfb
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/df_xine
+%attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_dfb.so