%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.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: 8.8.25
-%define _rel 2
+Version: 8.12.10
+%define _rel 1
Release: %{_rel}
License: ATI Binary (parts are GPL)
Vendor: ATI
Group: X11/XFree86
-Source0: http://www2.ati.com/drivers/linux/fglrx_6_8_0-%{version}-1.i386.rpm
-# Source0-md5: 8245afc1a5f83634ab1b906b8107cd0c
-Source1: http://www2.ati.com/drivers/linux/fglrx64_6_8_0-%{version}-1.x86_64.rpm
-# Source1-md5: 4967e36a1bdf275a37251605b6a2356c
+%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: firegl-panel-ugliness.patch
-Patch2: %{name}-kh.patch
+Patch2: %{name}-kernel-2_6_11.patch
+Patch3: %{name}-kh.patch
URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
BuildRequires: cpio
-BuildRequires: sed
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
BuildRequires: rpmbuild(macros) >= 1.153
%{?with_userspace:BuildRequires: qt-devel}
%endif
install -d panel_src
tar -xzf usr/src/ATI/fglrx_panel_sources.tgz -C panel_src
+
%patch0 -p1
%patch1 -p1
-%{?with_dist_kernel:%patch2 -p1}
+%patch2 -p1
+%{?with_dist_kernel:%patch3 -p1}
%build
%if %{with kernel}
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" \