%else
%define need_x86 0%{?with_incall:1}
%endif
-%ifarch amd64
+%ifarch %{x8664}
%define need_amd64 1
%else
%define need_amd64 0%{?with_incall:1}
Summary: Linux Drivers for ATI graphics accelerators
Summary(pl): Sterowniki do akceleratorów graficznych ATI
Name: X11-driver-firegl
-Version: 8.12.10
-%define _rel 2
+Version: 8.14.13
+%define _rel 1
Release: %{_rel}
License: ATI Binary (parts are GPL)
Vendor: ATI
Group: X11/XFree86
%if %{need_x86}
Source0: http://www2.ati.com/drivers/linux/fglrx_6_8_0-%{version}-1.i386.rpm
-# Source0-md5: 9c6397047331aadaa2c379ca78245810
+# Source0-md5: 5187698cee2edf3dee89bc3eee5729c1
%endif
%if %{need_amd64}
-Source1: http://www2.ati.com/drivers/linux/fglrx64_6_8_0-%{version}-1.x86_64.rpm
-# Source1-md5: a54abd8af43d3066faccda4cecec851c
+Source1: http://www2.ati.com/drivers/linux/64bit/fglrx64_6_8_0-%{version}-1.x86_64.rpm
+# Source1-md5: fc6c39cdf856955359c6f7087a78581c
%endif
Patch0: firegl-panel.patch
Patch1: firegl-panel-ugliness.patch
-Patch2: %{name}-kernel-2_6_11.patch
-Patch3: %{name}-kh.patch
-Patch4: %{name}-viak8t.patch
+Patch2: %{name}-kh.patch
+Patch3: %{name}-viak8t.patch
+# needed to compile with linux kernel 2.6.12 or newer
+# NOTE: You have to uncommented these in %prep (I thinks these may brake build on < 2.6.12)
+Patch4: %{name}-pci_name.patch
+Patch5: %{name}-inter_module_get.patch
URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
BuildRequires: cpio
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
-BuildRequires: rpmbuild(macros) >= 1.153
+BuildRequires: rpmbuild(macros) >= 1.213
%{?with_userspace:BuildRequires: qt-devel}
#BuildRequires: X11-devel >= %{_min_x11} # disabled for now
Requires: X11-OpenGL-core >= %{_min_x11}
Requires: X11-Xserver
-Requires: X11-driver-firegl(kernel)
+%{?with_kernel:Requires: X11-driver-firegl(kernel)}
Requires: X11-libs >= %{_min_x11}
Requires: X11-modules >= %{_min_x11}
Provides: X11-OpenGL-libGL
Obsoletes: X11-OpenGL-libGL
Obsoletes: XFree86-OpenGL-libGL
Obsoletes: XFree86-driver-firegl
-ExclusiveArch: i586 i686 athlon pentium3 pentium4 amd64
+ExclusiveArch: i586 i686 athlon pentium3 pentium4 %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep libGL.so.1
%prep
%setup -q -c -T
-%ifarch amd64
+%ifarch %{x8664}
rpm2cpio %{SOURCE1} | cpio -i -d
%else
rpm2cpio %{SOURCE0} | cpio -i -d
%patch0 -p1
%patch1 -p1
-%patch2 -p1
-%{?with_dist_kernel:%patch3 -p1}
+%{?with_dist_kernel:%patch2 -p1}
+%patch3 -p1
+#%patch4 -p1
+#%patch5 -p1
%build
%if %{with kernel}