%define name x11-driver-video-%{chipset} %define chipset psb %define snapshot 0 %define version 0.31.0 %if %snapshot %define release %mkrel 0.%{snapshot}.1 %define sname xf86-video-%{chipset}-%{snapshot} %define dname %{distname} %else %define release %mkrel 7 %define sname xserver-xorg-video-%{chipset}_%{version} %define dname xserver-xorg-video-%{chipset}-%{version} %endif %define _enable_libtoolize 1 Name: %{name} Version: %{version} Release: %{release} Summary: The X.org driver for Poulsbo chipsets Group: System/X11 URL: http://git.moblin.org/cgit.cgi/deprecated/xf86-video-psb/ # http://moblin.org/repos/projects/xf86-video-psb.git # DATE=20081006; git archive --format=tar --prefix=xf86-video-psb-$DATE/ origin/GASTON | gzip > xf86-video-psb-$DATE.tar.gz Source: %{sname}.tar.gz Patch0: xorg-x11-drv-psb-0.31.0-ignoreacpi.patch Patch1: xserver-xorg-video-psb-0.31.0-greedy.patch Patch2: xorg-x11-drv-psb-0.31.0-xserver17.patch Patch3: xserver-xorg-video-psb-0.31.0-loader.patch Patch4: xserver-xorg-video-psb-0.31.0-comment_unused.patch Patch5: xserver-xorg-video-psb-0.31.0-assert.patch # proprietary Xpsb is using it Patch6: xserver-xorg-video-psb-0.31.0-xf86AddModuleInfo.patch License: MIT BuildRoot: %{_tmppath}/%{name}-root BuildRequires: x11-proto-devel BuildRequires: x11-server-devel BuildRequires: libdrm-psb-devel BuildRequires: GL-devel Requires: libdrm-%{chipset} Requires: kmod(%{chipset}) Suggests: x11-driver-video-psb-binary-blobs %description The X.org driver for the video chipset from the Poulsbo SCH. %prep %setup -q -n %{dname} %patch0 -p1 -b .ignoreACPI %patch1 -p1 -b .greedy %patch2 -p1 -b .xserver17 %patch3 -p1 -b .loader %patch4 -p1 -b .comment_unused %patch5 -p1 -b .assert %patch6 -p1 -b .xf86AddModuleInfo %build # inline drm.pc and xf86driproto.pc flags to use libdrm-psb instead export DRI_CFLAGS="-I%{_includedir}/libdrm-psb -I%{_includedir}/libdrm-psb/drm -I%{_includedir}/X11/dri" export LDFLAGS="-L%{_libdir}/libdrm-psb -ldrm" # regenerate not to build EXA fork (not necessary for Xorg server >= 1.4.99) autoreconf -v --install # change visibility back to default so that psb can find mmCreateDRM in libmm export CFLAGS="%optflags -fvisibility=default" %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std DRIVER_MAN_DIR=%{_mandir}/man4 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_libdir}/xorg/modules/drivers/libmm.so %{_libdir}/xorg/modules/drivers/libmm.la %{_libdir}/xorg/modules/drivers/psb_drv.so %{_libdir}/xorg/modules/drivers/psb_drv.la %{_mandir}/man4/psb.* %changelog * Mon Apr 26 2010 Olivier Blin <oblin@mandriva.com> 0.31.0-7mdv2010.1 + Revision: 539054 - add empty xf86AddModuleInfo (removed upstream in 2107becb0ce2ffda001be65728c53563496d8d50) so that proprietary Xpsb can be loaded - build again with ld no-undefined, since the non-existent symbols have been removed - build again with ld as-needed because libmm symbols are visible again, will allows it to be picked by psb_drv at link time - change visibility back to default so that psb can find mmCreateDRM in libmm - link libmm with libdrm-psb as well (for drmFence symbols) - include assert.h so that assert() is expanded and not seen as undefined symbol - comment unused code in libmm, like mmListEmpty() - disable ld as-needed to link with libmm - remove calls to old loader symbols (upstream 71a83d68ab07536c0778d13cd7da974c40e77457) - fix setting MigrationHeuristic to greedy by default (#54981) - add xserver 1.7 support (from AdamW and ajax, Fedora) * Fri Oct 02 2009 Olivier Blin <oblin@mandriva.com> 0.31.0-5mdv2010.0 + Revision: 452591 - enable greedy MigrationHeuristic by default (based on an IRC idea from Adam Jackson) * Thu Sep 24 2009 Olivier Blin <oblin@mandriva.com> 0.31.0-4mdv2010.0 + Revision: 448348 - suggest x11-driver-video-psb-binary-blobs * Wed Sep 23 2009 Olivier Blin <oblin@mandriva.com> 0.31.0-3mdv2010.0 + Revision: 447714 - require libdrm-psb and kmod(psb) * Tue Sep 22 2009 Olivier Blin <oblin@mandriva.com> 0.31.0-2mdv2010.0 + Revision: 447347 - default to IgnoreACPI (from Adam Williamson) * Tue Sep 22 2009 Olivier Blin <oblin@mandriva.com> 0.31.0-1mdv2010.0 + Revision: 447315 - 0.31.0 * Sun May 31 2009 Olivier Blin <oblin@mandriva.com> 0.29.0-1mdv2010.0 + Revision: 381607 - fix man installation - remove now useless EXA removal hack - autoreconf and libtoolize (not to build EXA fork, which is not necessary for Xorg server >= 1.4.99) - 0.29.0 (Intel-GMA500-5.0.0.0040 from Intel Kit17376) - initial x11-driver-video-psb package - create x11-driver-video-psb