%lib_package direct-1.0 0 %lib_package directfb-1.0 0 %lib_package fusion-1.0 0 %define pkgname DirectFB Summary: Hardware graphics acceleration for the framebuffer device Name: directfb Version: 1.0.1 Release: 15%{?dist} License: GPL Group: System/Libraries URL: http://www.directfb.org/ Source0: http://www.directfb.org/download/DirectFB/%{pkgname}-%{version}.tar.gz Source1: i2c-dev.h Patch0: directfb-0.9.25.1-asmtypes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: gcc-c++ BuildRequires: /usr/bin/man2html BuildRequires: SDL-devel, freetype-devel >= 2.0.1 BuildRequires: libjpeg-devel >= 6b, libpng-devel >= 1.0, zlib-devel BuildRequires: %{_includedir}/sysfs/libsysfs.h BuildRequires: libX11-devel %description DirectFB is a thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system with support for translucent windows and multiple display layers on top of the Linux Framebuffer Device. It is a complete hardware abstraction layer with software fallbacks for every graphics operation that is not supported by the underlying hardware. %devel_extra_Requires pkgconfig %devel_extra_Requires SDL-devel, freetype-devel >= 2.0.1 %devel_extra_Requires libjpeg-devel >= 6b, libpng-devel >= 1.0, zlib-devel %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 #cp -a %{SOURCE1} gfxdrivers/matrox/ #perl -pi -e's,#include ,#include "i2c-dev.h",' gfxdrivers/matrox/matrox_maven.c #perl -pi -e's,#include ,,' interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_v4l.c %ifarch ppc grep -rl '#include ' . | xargs perl -pi -e's,#include ,/* #include */,' #perl -pi -e's,#include ,#define PAGE_SIZE sysconf( _SC_PAGESIZE ),' lib/direct/system.c %endif perl -pi -e's,/usr/X11R6/lib ,/usr/X11R6/%{_lib} ,' configure directfb-config.in %build %configure \ --docdir=%{_defaultdocdir}/%{name}-%{version} \ --enable-static \ --enable-shared \ --enable-x11 \ --disable-multi \ %ifarch %{ix86} --enable-mmx \ %endif --enable-sse \ --enable-fbdev \ --enable-sdl \ --enable-jpeg \ --enable-zlib \ --enable-png \ --enable-gif \ --enable-freetype \ --enable-video4linux \ --enable-video4linux2 \ --with-gfxdrivers=all \ --with-inputdrivers=all \ --with-tests echo '#undef HAVE_ASM_PAGE_H' >> config.h make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} cat > develfiles.list << EOF %defattr(-,root,root,-) %{_bindir}/directfb-config %{_bindir}/directfb-csource %{_mandir}/man1/directfb-csource.1* EOF %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING AUTHORS INSTALL README NEWS TODO %{_libdir}/%{name}-* %{_datadir}/%{name}-* %{_bindir}/dfb* %{_bindir}/mkdfiff %{_bindir}/mkdgiff %{_mandir}/man1/dfbg.1* %{_mandir}/man5/directfbrc.5* %changelog * Sat Jan 12 2008 Axel Thimm - 1.0.1-15 - Update to 1.0.1. * Sat Mar 17 2007 Axel Thimm - 1.0.0-13 - Update to 1.0.0. * Mon Jun 26 2006 Axel Thimm - Update to 0.9.25.1. * Wed Oct 26 2005 Axel Thimm - Update to 0.9.24. * Sun Oct 9 2005 Axel Thimm - Update to 0.9.22. - Dropped sis315 build. * Mon May 17 2004 Axel Thimm - Apply patch for building against 2.6.x kernel headers. * Sat Nov 22 2003 Axel Thimm - Initial build.