Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 229cdc987f1ee847124433fee741ea3b > files > 9

directfb-1.2.3-3mdv2009.0.src.rpm

%define	name	directfb
%define version 1.2.3
%define release %mkrel 3
%define	oname	DirectFB
%define api	1.2
%define	major	0
%define	libname	%mklibname %{name} %{api} %{major}
%define develname %mklibname %name -d

# Multiple applications support
# Requires fusion kernel module
%define build_multi	0
%{?_without_multi: %{expand: %%global build_multi 0}}
%{?_with_multi: %{expand: %%global build_multi 1}}

Summary:	Hardware graphics acceleration library
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	LGPLv2+
Group:		System/Libraries
Source0:	http://www.directfb.org/downloads/Core/%{oname}-%{version}.tar.gz
# from Debian
Patch0:		03_link_static_sysfs.patch
Patch1:		08_link_static_ar.patch
Patch2:		DirectFB-1.0.1-underlink.patch
# Explicitly link with -lm. Was failing only on x86_64, but not on i586,
# apparently because -O3 was generating code to bypass libm on i586.
Patch3:		DirectFB-1.0.1-sincos-x86_64.patch
# remove common linkage of x11 system and x11 input driver
# it makes directfb segfault
# (this is a workaround, not a proper upstreamable fix)
Patch4:		DirectFB-1.2.3-x11-linkage.patch
# try to reopen console devices when needed
# (for example with splashy after init steals control of consoles)
# reworked from Debian patch, Debian #462626
# might break other directfb apps, Debian #493899
Patch5:		DirectFB-1.2.3-reopen_vt.patch
# from Debian #401296, 93_fix_unicode_key_handling.patch
Patch6:		DirectFB-1.2.3-unicode.patch
URL:		http://www.directfb.org/
BuildRequires:	libvncserver-devel
BuildRequires:	libpng-devel >= 1.2.0
BuildRequires:	libjpeg-devel >= 6b
BuildRequires:	freetype2-devel >= 2.0.2
BuildRequires:	libsysfs2-devel
BuildRequires:  kernel-source
BuildRequires:	SDL-devel
%if %{build_multi}
BuildRequires:	fusion-devel >= 3.0
%endif
# prevent linking devel subpackage with older libraries:
# (blino) please uncomment when major is changed
# BuildConflicts: directfb-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
DirectFB hardware graphics acceleration - libraries.

%package -n	%{libname}
Summary:        Shared library part of %oname
Group:		System/Libraries

%description -n	%{libname}
DirectFB hardware graphics acceleration - libraries.

This package contains the %oname shared library and interface modules.
It's required for running apps based on %oname.


%package -n	%develname
Group:		Development/C
Summary:	Header files for compiling DirectFB applications
Requires:	%{libname} = %{version}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{oname}-devel = %{version}-%{release} %{name}-devel = %{version}-%{release}
Provides:	libdirectfb0.9-devel = %{version}-%{release}
Conflicts:	%mklibname -d directfb 0.9_20
Conflicts:	%mklibname -d directfb 0.9_21
Conflicts:	%mklibname -d directfb 0.9_25
Conflicts:	%mklibname -d directfb 1.0_0
# required for systems/libdirectfb_fbdev.{so,a} (find-requires does not look in subdirs)
Requires:	libsysfs-static-devel

%description -n	%develname
DirectFB header files for building applications based on %oname. 

%package	doc
Summary:	DirectFB - documentation
Group:		Books/Computer books

%description	doc
DirectFB documentation and examples.

%prep
%setup  -q -n %{oname}-%{version}
%patch0 -p1 -b .sysfs
%patch1 -p1 -b .ar
%patch2 -p1
%patch3 -p1
%patch4 -p1 -R -b .x11-linkage
%patch5 -p1 -b .reopen
%patch6 -p1 -b .unicode

%build
autoreconf -ifs
CFLAGS="$RPM_OPT_FLAGS -O3" \
%configure2_5x \
	--disable-maintainer-mode \
	--enable-shared \
	--enable-static \
	--disable-fast-install \
	--disable-debug \
	--with-gfxdrivers=ati128,cle266,cyber5k,i810,i830,mach64,neomagic,nsc,nvidia,radeon,savage,sis315,tdfx,unichrome \
%if %build_multi
	--enable-multi
%else
	--disable-multi
%endif

%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

# multiarch policy
%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/directfb-config

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files -n %{libname}
%defattr(644,root,root,755)
%doc README* AUTHORS NEWS TODO
%attr(755,root,root) %{_libdir}/lib*%{api}.so.%{major}*
%exclude %{_libdir}/directfb-%{api}-%major/*/*.a
%exclude %{_libdir}/directfb-%{api}-%major/*/*/*.a
%exclude %{_libdir}/directfb-%{api}-%major/*/*.o
%exclude %{_libdir}/directfb-%{api}-%major/*/*/*.o
%{_libdir}/directfb-%{api}-%major
%{_datadir}/directfb-%{version}


%files -n %develname
%defattr(755,root,root,755)
%{_bindir}/*
%multiarch %{multiarch_bindir}/directfb-config
%defattr(644,root,root,755)
%{_includedir}/directfb
%{_includedir}/directfb-internal
%{_mandir}/man1/directfb-csource.1*
%{_mandir}/man1/dfbg.1*
%{_mandir}/man5/directfbrc.5*
%{_libdir}/pkgconfig/*
%attr(644,root,root) %{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/directfb-%{api}-%major/*/*.a
%{_libdir}/directfb-%{api}-%major/*/*/*.a
%{_libdir}/directfb-%{api}-%major/*/*.o
%{_libdir}/directfb-%{api}-%major/*/*/*.o

%files doc
%defattr(644,root,root,755)
%doc docs/html/*




%changelog
* Mon Sep 22 2008 Olivier Blin <oblin@mandriva.com> 1.2.3-3mdv2009.0
+ Revision: 286745
- fix unicode key handling (rediffed from Debian #401296)
- rework and reenable patch reopening vt, to fix Esc key handling in
  splashy (#44074), and stop screen corruption as a side-effect (#39971)

* Wed Sep 03 2008 Olivier Blin <oblin@mandriva.com> 1.2.3-2mdv2009.0
+ Revision: 279799
- remove common linkage of x11 system and x11 input driver, it makes
  directfb segfault
- remove deprecated configure option (avifile is now in extra)

* Tue Aug 19 2008 Olivier Blin <oblin@mandriva.com> 1.2.3-1mdv2009.0
+ Revision: 273978
- 1.2.3

* Sun Aug 17 2008 Funda Wang <fundawang@mandriva.org> 1.2.2-2mdv2009.0
+ Revision: 272985
- rebuild for new SDL

* Sun Aug 17 2008 Funda Wang <fundawang@mandriva.org> 1.2.2-1mdv2009.0
+ Revision: 272913
- disable patch5, as it breaks diretfb
- rediff patch5
- New version 1.2.2 (new api major)

* Wed Aug 06 2008 Olivier Blin <oblin@mandriva.com> 1.1.1-4mdv2009.0
+ Revision: 264262
- move object files in devel package (#39636)

* Wed Jul 23 2008 Olivier Blin <oblin@mandriva.com> 1.1.1-3mdv2009.0
+ Revision: 242965
- try to reopen console devices when needed, for example by splashy
  which changes root (from Debian package, Debian #462626)
- fix vnc system build (patch from git)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Sat May 31 2008 Funda Wang <fundawang@mandriva.org> 1.1.1-2mdv2009.0
+ Revision: 213618
- rebuild

* Wed May 28 2008 Paulo Andrade <pcpa@mandriva.com.br> 1.1.1-1mdv2009.0
+ Revision: 212696
- Update to latest upstream release 1.1.1.
  Remake patches to allow static build, as some chunks were already applied.

* Tue May 27 2008 Paulo Andrade <pcpa@mandriva.com.br> 1.0.1-3mdv2009.0
+ Revision: 211828
- Explicitily link with -lm due to link failure on x86_64. Reason of no
  failure on i586 seens to be that the compiler generated direct assembly
  calls for the math routines, bypassing libm.
- o Don't search for headers in /usr/X11R6/include neither link with
  libraries under /usr/X11R6/lib.
  o Correct an underlinking problem in the penmount driver.

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Mon Oct 08 2007 Götz Waschk <waschk@mandriva.org> 1.0.1-1mdv2008.1
+ Revision: 95687
- new version

* Tue Jun 26 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.0.0-7mdv2008.0
+ Revision: 44532
- new devel library policy

* Sat Jun 09 2007 Olivier Blin <oblin@mandriva.com> 1.0.0-6mdv2008.0
+ Revision: 37708
- require libsysfs-static-devel in devel package

* Sat Jun 09 2007 Olivier Blin <oblin@mandriva.com> 1.0.0-5mdv2008.0
+ Revision: 37693
- use .a archives for static linking instead of the .o files (from Debian, required for splashy)
- add sysfs in directfb-config (patch from Debian)
- require libsysfs-devel in devel package

* Sat Jun 09 2007 Olivier Blin <oblin@mandriva.com> 1.0.0-4mdv2008.0
+ Revision: 37601
- build static files in devel package

  + Funda Wang <fundawang@mandriva.org>
    - Hardcode buildrequires libmajor

* Mon May 21 2007 Götz Waschk <waschk@mandriva.org> 1.0.0-2mdv2008.0
+ Revision: 29019
- add conflicts with older devel packages

* Tue May 15 2007 Götz Waschk <waschk@mandriva.org> 1.0.0-1mdv2008.0
+ Revision: 26888
- new version
- new major
- disable matrox driver


* Thu Mar 15 2007 Olivier Blin <oblin@mandriva.com> 0.9.25.1-4mdv2007.1
+ Revision: 144510
- do not buildconflicts with directfb-devel since this package buildrequires SDL-devel which requires directfb-devel (to restore on major change)

  + Thierry Vignaud <tvignaud@mandriva.com>
    - do not package huge (1.3Mb!) ChangeLog

* Sun Feb 18 2007 Anssi Hannula <anssi@mandriva.org> 0.9.25.1-3mdv2007.1
+ Revision: 122544
- rebuild for new libgii
- Import directfb

* Sat May 06 2006 Anssi Hannula <anssi@mandriva.org> 0.9.25.1-2mdk
- add build switch for multi, default disabled
- BuildRequires SDL-devel

* Sat May 06 2006 Götz Waschk <waschk@mandriva.org> 0.9.25.1-1mdk
- update file list
- new major
- drop patch
- New release 0.9.25.1

* Fri Apr 21 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.9.24-5mdk
- rebuild (fix /usr/lib/pkgconfig/directfb-internal.pc version on x86_64)

* Tue Dec 13 2005 Thierry Vignaud <tvignaud@mandriva.com> 0.9.24-4mdk
- rebuild with new libsysfs

* Fri Nov 18 2005 Thierry Vignaud <tvignaud@mandriva.com> 0.9.24-3mdk
- rebuild because devel subpackage got linked with 0.9.22 instead of 0.9.24
  on x86_64

* Thu Nov 03 2005 Götz Waschk <waschk@mandriva.org> 0.9.24-2mdk
- rebuild for new directfb

* Wed Nov 02 2005 Götz Waschk <waschk@mandriva.org> 0.9.24-1mdk
- new major
- drop merged patch 2
- New release 0.9.24

* Sat Jul 09 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.22-5mdk
- rebuild so that devel subpackage got linked with 0.9.22 instead of 0.9.21 on
  x86_64

* Sat Jun 18 2005 Götz Waschk <waschk@mandriva.org> 0.9.22-4mdk
- add conflict to fix upgrade from stable

* Sun May 01 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.9.22-3mdk
- update patch2 to include i830 driver (fix ppc build)

* Sat Apr 30 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.22-2mdk
- rebuild so that devel subpackage got linked with 0.9.22 instead of 0.9.21

* Tue Apr 26 2005 Götz Waschk <waschk@mandriva.org> 0.9.22-1mdk
- drop patch 0
- new major
- New release 0.9.22

* Sat Feb 19 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.9.21-3mdk
- Patch2: fix build on ppc (don't build savage driver)
- add BuildRequires: libsysfs-devel

* Tue Feb 15 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.9.21-2mdk
- nuke lib64 rpaths
- fix build, multiarch

* Wed Dec 22 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.9.21-1mdk
- 0.9.21 (finally!)
- do libtoolize again
- compile with -O3
- ship all binaries again
- drop P1, P2 & P3 (fixed upstream)
- cosmetics

* Wed Sep 29 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.9.20-2mdk
- merge patches from Debian:
  * fix matrox driver build
  * fix savage driver build (include <linux/fb.h> adequately)
  * fix IDirectFBVideoProvider build (add <linux/videodev2.h> specifically)