%define major %(echo %version |cut -d. -f1-2) Name: directfb Version: 1.4.11 Release: 1ark Source: http://directfb.org/downloads/Core/DirectFB-%major/DirectFB-%version.tar.gz Source1000: directfb-driverpkg Source1001: directfb-inputdriverpkg Patch: DirectFB-1.4.11-libpng-1.5.patch Patch2: directfb-1.4.3-glibc-2.12.patch Summary: Library for hardware graphics acceleration URL: http://directfb.org/ License: GPL Group: System/Libraries BuildRoot: %_tmppath/%name-root %track prog %name = { url = http://directfb.org/index.php?path=Main/Downloads regex = DirectFB-(__VER__)\.tar\.gz version = %version } %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, not only 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. DirectFB adds graphical power to embedded systems and sets a new standard for graphics under Linux. %package devel Summary: Development files for %name Group: Development/Libraries Requires: %name = %version-%release %description devel Development files (Headers etc.) for %name. %package x11 Summary: Driver for running %name applications on top of an X11 server Group: System/Libraries %description x11 Driver for running %name applications on top of an X11 server %prep %setup -q -n DirectFB-%version %patch -p1 -b .libpng15~ %patch2 -p1 -b .compile1~ # FIXME enable VNC at some point, when it stops failing to compile %configure --enable-multi --enable-voodoo --enable-unique --enable-zlib --enable-video4linux2 --with-gfxdrivers=all --with-inputdrivers=all --with-smooth-scaling --disable-vnc %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make install DESTDIR="$RPM_BUILD_ROOT" %files %defattr(-,root,root) %_libdir/libdirect*.so* %_libdir/libfusion*.so* %_libdir/libvoodoo*.so* %dir %_libdir/%name-%major-5 %dir %_libdir/%name-%major-5/systems %_libdir/%name-%major-5/systems/libdirectfb_devmem.so %_libdir/%name-%major-5/systems/libdirectfb_fbdev.so %dir %_libdir/%name-%major-5/inputdrivers %_libdir/%name-%major-5/wm %_libdir/%name-%major-5/interfaces %dir %_libdir/%name-%major-5/gfxdrivers %_libdir/libuniquewm*.so* %_bindir/directfb-csource %_bindir/dfbdump %_bindir/dfbfx %_bindir/dfbg %_bindir/dfbinfo %_bindir/dfbinput %_bindir/dfbinspector %_bindir/dfblayer %_bindir/dfbmaster %_bindir/dfbscreen %_bindir/dfbpenmount %_bindir/mkdfiff %_bindir/mkdgiff %_bindir/dfbproxy %_bindir/uwmdump %_bindir/directfb-config %_datadir/%name-%version %_mandir/man1/* %_mandir/man5/* %{expand:%(/bin/sh %SOURCE1000 ati128 cyber5k ep9x gl i810 i830 mach64 matrox neomagic nsc nvidia radeon savage sis315 tdfx unichrome vmware)} %{expand:%(/bin/sh %SOURCE1001 joystick keyboard linux_input lirc mutouch penmount ps2mouse serialmouse sonypi wm97xx_ts zytronic)} %files x11 %_libdir/directfb-1.4-5/systems/libdirectfb_x11.so %files devel %defattr(-,root,root) %_includedir/%name %_includedir/%name-internal %_libdir/pkgconfig/direct.pc %_libdir/pkgconfig/fusion.pc %_libdir/pkgconfig/voodoo.pc %_libdir/pkgconfig/directfb.pc %_libdir/pkgconfig/directfb-internal.pc %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name-%version %changelog * Thu Dec 16 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 1.4.11-1ark - 1.4.11 * Sat May 8 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 1.4.3-2ark - Rebuild for libjpeg.so.8 * Mon Feb 8 2010 Bernhard Rosenkraenzer <bero@arklinux.ch> 1.4.3-1ark - 1.4.3 * Mon Oct 19 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 1.4.2-1ark - 1.4.2 * Tue Jul 28 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 1.4.1-1ark - 1.4.1 - Add rpm5 tracking info - Adapt to libpng 1.4 * Fri Jan 16 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 1.3.0-1ark - 1.3.0 * Fri May 16 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1.1.1-1ark - initial RPM