File DirectFB.spec of Package DirectFB
#
# spec file for package DirectFB (Version 1.2.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: DirectFB
BuildRequires: SDL-devel freetype2-devel libjpeg-devel libpng-devel libstdc++-devel sysfsutils udev zlib-devel
%ifnarch s390 s390x
BuildRequires: i2c-tools
%endif
# bug437293
%ifarch ppc64
Obsoletes: DirectFB-64bit
%endif
%ifarch ppc
Obsoletes: DirectFB-32bit
%endif
#
Url: http://www.directfb.org/
License: LGPL v2.1 or later
Group: System/Libraries
AutoReqProv: on
Version: 1.2.3
Release: 6
Summary: Graphics Library for Framebuffer Devices
Source: %name-%version.tar.bz2
Patch2: %name-0.9.24-matroxi2c.diff
Patch3: %name-0.9.25-headers.patch
Patch4: %name-cc-cflags.patch
Patch5: %name-int.patch
Patch6: %name-0.9.24-warning.patch
Patch8: %name-0.9.25-comma.patch
Patch9: %name-1.1.1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
DirectFB is a thin library that provides hardware graphics
acceleration, input device handling and abstraction, an 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. DirectFB
adds graphical power to embedded systems and sets a new standard for
graphics under Linux.
Authors:
--------
Denis Oliver Kropp <dok@directfb.org>
Andreas Hundt <andi@fischlustig.de>
Sven Neumann <neo@directfb.org>
%package devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Graphics Library for Framebuffer Devices
Requires: %{name} = %{version} glibc-devel zlib-devel /bin/sh
%description devel
DirectFB is a thin library that provides hardware graphics
acceleration, input device handling and abstraction, an 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. DirectFB
adds graphical power to embedded systems and sets a new standard for
graphics under Linux.
Authors:
--------
Denis Oliver Kropp <dok@directfb.org>
Andreas Hundt <andi@fischlustig.de>
Sven Neumann <neo@directfb.org>
%package doc
License: LGPL v2.1 or later
Summary: Graphics Library for Framebuffer Devices Documentation
Group: System/Libraries
%description doc
DirectFB documentation in html form.
Authors:
--------
Denis Oliver Kropp <dok@directfb.org>
Andreas Hundt <andi@fischlustig.de>
Sven Neumann <neo@directfb.org>
%prep
%setup -q
%patch2 -p1
%patch3
%patch4 -p1
%patch5 -p1
%patch6
%patch8
%patch9
%build
%ifarch s390 s390x
sed 's/-O3/-Os/' configure >c;chmod +x c;mv c configure;
%endif
#autoreconf -f -i
%suse_update_libdir configure
CC="gcc $RPM_OPT_FLAGS -fno-strict-aliasing" ./configure \
--prefix=/usr --mandir=%_mandir --libdir=%_libdir \
--enable-zlib --enable-rgb332 \
%ifarch x86_64
--enable-mmx --enable-sse \
%endif
%ifarch ppc64 ppc
--with-gfxdrivers="ati128 cle266 cyber5k i810 mach64 matrox neomagic nsc nvidia radeon sis315 tdfx unichrome" \
%endif
%ifarch s390 s390x
--with-gfxdrivers=none --with-inputdrivers=none --disable-video4linux --disable-fbdev \
%endif
--enable-linux-input --enable-x11 --enable-unique \
--disable-gettid
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -v
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
#%{_libdir}/directfb-1.0-0
/usr/share/directfb-%{version}
%{_bindir}/dfbg
%{_bindir}/dfbdump
%{_bindir}/dfbinfo
%{_bindir}/dfblayer
%{_bindir}/directfb-csource
%{_bindir}/dfbscreen
%{_bindir}/dfbinspector
%{_bindir}/dfbmaster
%{_bindir}/dfbfx
%{_bindir}/uwmdump
%{_bindir}/dfbinput
%{_bindir}/dfbpenmount
%ifnarch s390 s390x ppc ppc64
%{_bindir}/sh7722_jpegtool
%{_libdir}/libsh7722_jpeg.*
%endif
%{_libdir}/libdirect*.so.*
%{_libdir}/libfusion*.so.*
%{_libdir}/libuniquewm*.so.*
%{_libdir}/directfb-1.2-0
%{_bindir}/mkd*iff
%{_bindir}/directfb-config
%doc %_mandir/man1/dfbg.1.gz
%doc %_mandir/man1/directfb-csource.1.gz
%doc %_mandir/man5/directfbrc.5.gz
%files devel
%defattr(-,root,root)
%{_libdir}/libdirect*.so
%{_libdir}/libfusion*.so
%{_libdir}/libuniquewm*.so
/usr/include/directfb-internal
/usr/include/directfb
%{_libdir}/pkgconfig/*
#{_libdir}/lib*.la
%files doc
%defattr(-,root,root)
%doc docs/html/*.html
%doc docs/html/*.png
%changelog
* Tue Dec 09 2008 ro@suse.de
- remove ix86 from ifarch statement obsoleting 32bit package
* Thu Oct 30 2008 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Mon Sep 08 2008 hvogel@suse.de
- Update to 1.2.3
* Fixed new bug with reopening X11 window when layer resizes
* Generate name/value pairs for DFBWindowOptions.
* improve shutdown behaviour of X11 module.
* Added DirectUnregisterInterface() and destructor to call it
* Added very simple dedicated master
* Implemented primaryRemoveRegion() with a new call to destroy
the X11 window.
* Avoid most of the recursive calls of wind_of_change().
* Fix unconditional use of SA_SIGINFO
* Added SH7722: Experimental JPEG decoding
* Fix redefinitions by moving up kernel headers.
* Removed MPEG2 I-Frame Imageprovider.
* Added option "-ds" for dumping surfaces
* Added minimum glyph alignment of 8 bytes
* Combine multiple x and/or y motion events before sending events
or updating the cursor.
* Cleaned up LCD Buffer Setup Code
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Thu Jan 17 2008 mskibbe@suse.de
- update to 1.1.1 which
o Added 3x2 transformation for all drawing and blitting
o Fixed missing translation of characters to indices in
GetKerning()
o Fixes to CPU/GPU read/write access interlock management
o lot of other bugfixes
- Bug 242049 - DirectFB-0.9.25-42 : array subscript is above
array bounds
* Thu Oct 25 2007 mskibbe@suse.de
- update to 1.0.1 which
o Use a Skirmish to synchronize slaves with the master's post
core initialization
o Enable X11 System Module by default
o Support non-SHM connections
o includes DirectFB.linux-compiler.patch
* Mon Aug 06 2007 olh@suse.de
- remove inclusion of linux/compiler.h, linux/config.h and asm/page.h
* Wed Aug 01 2007 mmaher@suse.de
- added subpackage for documentation
* Thu Jul 19 2007 hmacht@suse.de
- move directfb-config out of -devel package. We need it for
mkinitrd to determine needed libraries for splashy
* Tue Jun 26 2007 bk@suse.de
- Update to 1.0.0, fix filelists and devel requires and s390 tuning
* Mon Feb 19 2007 mskibbe@suse.de
- DirectFB contains a number of GPL licensed files (#212904)
* Fri Jan 12 2007 mskibbe@suse.de
- Segmentation fault in DirectFBInit in libdirectfb (#233108)
* Tue Nov 14 2006 tpatzig@suse.de
- fixed comma at end of enumerator list in directfb.h [*216155]
* Tue Oct 17 2006 aj@suse.de
- Fix filelist.
* Mon Oct 16 2006 ro@suse.de
- fix devel package filelist
* Mon Oct 16 2006 mskibbe@suse.de
- create devel package
* Mon Jul 10 2006 mskibbe@suse.de
- updated to version 0.9.25 (including some fixes for stability
and speed)
- change paths in specfile (from /usr/bin/ to %%{_bindir})
* Tue Feb 21 2006 hvogel@suse.de
- fix arg* usage [#146446]
* Thu Feb 16 2006 hvogel@suse.de
- fix comma at end of list for directfb.h:849 [#150804]
* Mon Jan 30 2006 hvogel@suse.de
- add libstdc++-devel to buildrequires
* Sun Jan 29 2006 hvogel@suse.de
- Add libpng-devel, freetype2-devel, sysfs to buildrequires
- enable x11 module
- enable unique wm
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 hvogel@suse.de
- update to version 0.9.24
* Thu Jan 12 2006 sbrabec@suse.cz
- Removed unused libmpeg3 from neededforbuild.
* Wed Dec 21 2005 ro@suse.de
- silence gcc warning about malloc result being ignored
* Wed Nov 02 2005 hvogel@suse.de
- add -fno-strict-aliasing to CFLAGS for fbdev
* Mon Oct 24 2005 hvogel@suse.de
- update to version 0.9.23
* Tue May 31 2005 hvogel@suse.de
- update to version 0.9.22
* Thu Apr 28 2005 hvogel@suse.de
- disable savage gfxdriver on some archs, it tries to use sys/io.h
* Tue Apr 12 2005 ro@suse.de
- fix build in savage driver
* Wed Jan 19 2005 hvogel@suse.de
- use disable-gettid
* Thu Jan 13 2005 hvogel@suse.de
- Update to version 0.9.21
- enable zlib support
* Mon Jan 12 2004 adrian@suse.de
- fix build
- use BuildRoot
- add not packaged files
* Fri Jan 09 2004 stepan@suse.de
- update to 0.9.20
* Mon Oct 20 2003 schwab@suse.de
- Fix use of kernel headers.
* Sun Jun 29 2003 ro@suse.de
- fix build with current includes
* Fri May 23 2003 ro@suse.de
- fixed file list
- fix build with current includes
* Thu May 22 2003 coolo@suse.de
- use BuildRoot
- run ldconfig
* Thu Feb 06 2003 stepan@suse.de
- update -> 0.9.16
* Thu Nov 14 2002 stepan@suse.de
- update -> 0.9.15
* Tue Nov 05 2002 uli@suse.de
- update -> 0.9.14 (API extensions, enhanced drivers, SDL backend,
fixes)
- fixed and enabled MMX and SSE optimizations for x86-64
* Tue Sep 17 2002 uli@suse.de
- update -> 0.9.13 (API extensions, optimizations, bugfixes)
- fixed warnings on 64 bit archs
* Thu Aug 01 2002 uli@suse.de
- fixed for lib64 archs
* Thu Jun 06 2002 uli@suse.de
- update -> 0.9.11
* Tue Apr 30 2002 uli@suse.de
- update -> 0.9.10
* Wed Apr 24 2002 uli@suse.de
- fixed to build on x86-64
* Mon Apr 22 2002 uli@suse.de
- initial package