]> git.pld-linux.org Git - packages/X11-driver-firegl.git/blobdiff - X11-driver-firegl.spec
- via k8t support added (patch sent by Paweł M. Zaskórski).
[packages/X11-driver-firegl.git] / X11-driver-firegl.spec
index aed8ae70b6f0b78b577b8d3ba34c7bda9c6d589e..b8decb28df9f43702eff4ebac753b64c5f1bf092 100644 (file)
@@ -5,25 +5,50 @@
 %bcond_without smp             # don't build SMP module
 %bcond_without userspace       # don't build userspace tools
 %bcond_with    verbose         # verbose build (V=1)
+%bcond_without incall          # include all sources in srpm
 
-%define                _min_x11        6.7.0
+%define                _min_x11        6.8.0
+
+%if %{without kernel}
+%undefine with_dist_kernel
+%endif
+
+%ifarch %{ix86}
+%define                need_x86        1
+%else
+%define                need_x86        0%{?with_incall:1}
+%endif
+%ifarch amd64
+%define                need_amd64      1
+%else
+%define                need_amd64      0%{?with_incall:1}
+%endif
 
 Summary:       Linux Drivers for ATI graphics accelerators
 Summary(pl):   Sterowniki do akceleratorów graficznych ATI
 Name:          X11-driver-firegl
-Version:       3.11.1
-%define                _rel    1
+Version:       8.12.10
+%define                _rel    2
 Release:       %{_rel}
 License:       ATI Binary (parts are GPL)
 Vendor:                ATI
 Group:         X11/XFree86
-Source0:       http://www2.ati.com/drivers/linux/fglrx-4.3.0-%{version}.i386.rpm
-# Source0-md5: 59a9b2446abb5d1adac8bafd7d11e083
+%if %{need_x86}
+Source0:       http://www2.ati.com/drivers/linux/fglrx_6_8_0-%{version}-1.i386.rpm
+# Source0-md5: 9c6397047331aadaa2c379ca78245810
+%endif
+%if %{need_amd64}
+Source1:       http://www2.ati.com/drivers/linux/fglrx64_6_8_0-%{version}-1.x86_64.rpm
+# Source1-md5: a54abd8af43d3066faccda4cecec851c
+%endif
 Patch0:                firegl-panel.patch
-Patch1:                %{name}-kh.patch
+Patch1:                firegl-panel-ugliness.patch
+Patch2:                %{name}-kernel-2_6_11.patch
+Patch3:                %{name}-kh.patch
+Patch4:                %{name}-viak8t.patch
 URL:           http://www.ati.com/support/drivers/linux/radeon-linux.html
 BuildRequires: cpio
-%{?with_dist_kernel:BuildRequires:     kernel-source >= 2.6.7}
+%{?with_dist_kernel:BuildRequires:     kernel-module-build >= 2.6.7}
 BuildRequires: rpmbuild(macros) >= 1.153
 %{?with_userspace:BuildRequires:       qt-devel}
 #BuildRequires:        X11-devel >= %{_min_x11}        # disabled for now
@@ -38,7 +63,7 @@ Obsoletes:    Mesa
 Obsoletes:     X11-OpenGL-libGL
 Obsoletes:     XFree86-OpenGL-libGL
 Obsoletes:     XFree86-driver-firegl
-ExclusiveArch: i586 i686 athlon pentium3 pentium4
+ExclusiveArch: i586 i686 athlon pentium3 pentium4 amd64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libGL.so.1
@@ -93,12 +118,18 @@ Modu
 
 %prep
 %setup -q -c -T
+%ifarch amd64
+rpm2cpio %{SOURCE1} | cpio -i -d
+%else
 rpm2cpio %{SOURCE0} | cpio -i -d
-bzip2 -d -v usr/X11R6/bin/*.bz2
+%endif
 install -d panel_src
 tar -xzf usr/src/ATI/fglrx_panel_sources.tgz -C panel_src
+
 %patch0 -p1
-%{?with_dist_kernel:%patch1 -p1}
+%patch1 -p1
+%patch2 -p1
+%{?with_dist_kernel:%patch3 -p1}
 
 %build
 %if %{with kernel}
@@ -113,6 +144,9 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
        ln -sf %{_kernelsrcdir}/config-$cfg .config
        ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%if %{without dist_kernel}
+       ln -sf %{_kernelsrcdir}/scripts
+%endif
        touch include/config/MARKER
        %{__make} -C %{_kernelsrcdir} clean \
                RCS_FIND_IGNORE="-name '*.ko' -o" \
@@ -157,7 +191,7 @@ install usr/X11R6/bin/{fgl_glxgears,fglrxconfig,fglrxinfo} \
        $RPM_BUILD_ROOT%{_bindir}
 install panel_src/fireglcontrol.qt3.gcc%(gcc -dumpversion) \
        $RPM_BUILD_ROOT%{_bindir}/fireglcontrol
-cp -r usr/X11R6/lib/* $RPM_BUILD_ROOT%{_libdir}
+cp -r usr/X11R6/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
 
 ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
 
This page took 0.087494 seconds and 4 git commands to generate.