]> 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 8f09acd72590b9810d8a7182be3bdd515e49452d..b8decb28df9f43702eff4ebac753b64c5f1bf092 100644 (file)
@@ -5,28 +5,49 @@
 %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
+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_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
+Patch4:                %{name}-viak8t.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}
@@ -104,9 +125,11 @@ rpm2cpio %{SOURCE0} | cpio -i -d
 %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}
@@ -121,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" \
This page took 0.063364 seconds and 4 git commands to generate.