6 # - kernel modules (SMP)
8 Summary: Linux Drivers for ATI graphics accelerators
9 Summary(pl): Sterowniki do akceleratorów graficznych ATI
10 Name: XFree86-driver-firegl
16 URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
17 #Source0: http://pdownload.mii.instacontent.net/ati/drivers/fglrx-glc22-4.2.0-%{version}.i586.rpm
18 Source0: http://www.schneider-digital.de/download/ati/glx1_linux_X4.3.zip
20 %{!?_without_dist_kernel:BuildRequires: kernel-headers >= 2.2.0 }
21 BuildRequires: rpm-utils
22 Requires: XFree86-Xserver
23 Requires: XFree86-libs >= 4.2.0
24 Requires: XFree86-modules >= 4.2.0
25 Requires: kernel-video-firegl = %{version}
26 Provides: XFree86-OpenGL-core
28 Obsoletes: XFree86-OpenGL-core
29 Conflicts: XFree86-OpenGL-devel <= 4.2.0-3
30 ExclusiveArch: i586 i686 athlon
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _noautoreqdep libGL.so.1.2
35 %define _prefix /usr/X11R6
36 %define _mandir %{_prefix}/man
39 Display driver files for the ATI Radeon 8500, 9700, Mobility M9 and
40 the FireGL 8700/8800, E1, Z1/X1 graphics accelerators. This package
41 provides 2D display drivers and hardware accelerated OpenGL.
44 Sterowniki do kart graficznych ATI Radeon 8500, 9700, Mobility M9 oraz
45 graficznych akceleratorów FireGL 8700/8800, E1, Z1/X1. Pakiet
46 dostarcza sterowniki obs³uguj±ce wy¶wietlanie 2D oraz sprzêtowo
49 %package -n kernel-video-firegl
50 Summary: ATI kernel module for FireGL support
51 Summary(pl): Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL
52 Release: %{release}@%{_kernel_ver_str}
56 %{!?_without_dist_kernel:%requires_releq_kernel_up}
57 PreReq: modutils >= 2.3.18-2
58 Requires(post,postun): /sbin/depmod
60 %description -n kernel-video-firegl
61 ATI kernel module for FireGL support.
63 %description -n kernel-video-firegl -l pl
64 Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL.
69 mv Xfree4.3.0_2.9.08/* .
70 rpm2cpio fglrx-glc22-4.3.0-%{version}.i586.rpm | cpio -i -d
71 bzip2 -d -v usr/X11R6/bin/*.bz2
74 cd lib/modules/fglrx/build_mod/
75 cp make.sh make.sh.org && rm -f make.sh
76 sed -e 's#gcc#%{kgcc}#g' -e 's#`id -u` -ne 0#`id -u` -ne `id -u`#g' make.sh.org > make.sh
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/X11/extensions}
83 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/
85 install lib/modules/fglrx/build_mod/fglrx.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/
87 install usr/X11R6/bin/{fgl_glxgears,fglrxconfig,fglrxinfo,fireglcontrol.qt3.gcc3.2} $RPM_BUILD_ROOT%{_bindir}
88 cp -r usr/X11R6/lib/* $RPM_BUILD_ROOT%{_libdir}/
90 cd $RPM_BUILD_ROOT%{_libdir}
91 ln -s libGL.so.* libGL.so
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
99 %post -n kernel-video-firegl
102 %postun -n kernel-video-firegl
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/*
108 %attr(755,root,root) %{_libdir}/lib*.so*
109 %attr(755,root,root) %{_libdir}/modules/*/*.so
110 %attr(755,root,root) %{_libdir}/modules/*/*.o
111 %attr(644,root,root) %{_libdir}/modules/*/*.a
113 %files -n kernel-video-firegl
114 %defattr(644,root,root,755)
115 /lib/modules/%{_kernel_ver}/misc/*.o*