6 %define _min_xfree 4.3.0
7 %define _gcc_ver %(gcc -dumpversion)
9 Summary: Linux Drivers for ATI graphics accelerators
10 Summary(pl): Sterowniki do akceleratorów graficznych ATI
11 Name: XFree86-driver-firegl
14 License: ATI Binary (parts are GPL)
17 Source0: http://www2.ati.com/drivers/linux/fglrx-glc22-%{_min_xfree}-%{version}.i386.rpm
18 # Source0-md5: 7dd12340a2b8525b3a9fa1f310e06141
19 Patch0: firegl-panel.patch
20 Patch1: XFree86-driver-firegl-kh.patch
21 URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
23 %{!?_without_dist_kernel:BuildRequires: kernel-headers >= 2.2.0 }
24 BuildRequires: rpm-utils
25 BuildRequires: qt-devel
26 BuildRequires: kernel-sources
27 BuildRequires: XFree86-OpenGL-devel
28 BuildRequires: xrender-devel
29 BuildRequires: xft-devel
30 Requires: XFree86-Xserver
31 Requires: XFree86-libs >= %{_min_xfree}
32 Requires: XFree86-modules >= %{_min_xfree}
33 %{!?_without_dist_kernel:Requires: kernel-video-firegl = %{version} }
34 Provides: XFree86-OpenGL-core = %{_min_xfree}
36 Obsoletes: XFree86-OpenGL-libGL
37 Provides: XFree86-OpenGL-libGL
38 ExclusiveArch: i586 i686 athlon
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _noautoreqdep libGL.so.1.2
43 %define _prefix /usr/X11R6
44 %define _mandir %{_prefix}/man
47 Display driver files for the ATI Radeon 8500, 9700, Mobility M9 and
48 the FireGL 8700/8800, E1, Z1/X1 graphics accelerators. This package
49 provides 2D display drivers and hardware accelerated OpenGL.
52 Sterowniki do kart graficznych ATI Radeon 8500, 9700, Mobility M9 oraz
53 graficznych akceleratorów FireGL 8700/8800, E1, Z1/X1. Pakiet
54 dostarcza sterowniki obs³uguj±ce wy¶wietlanie 2D oraz sprzêtowo
57 %package -n kernel-video-firegl
58 Summary: ATI kernel module for FireGL support
59 Summary(pl): Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL
60 Release: %{release}@%{_kernel_ver_str}
64 %{!?_without_dist_kernel:%requires_releq_kernel_up}
65 PreReq: modutils >= 2.3.18-2
66 Requires(post,postun): /sbin/depmod
68 %description -n kernel-video-firegl
69 ATI kernel module for FireGL support.
71 %description -n kernel-video-firegl -l pl
72 Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL.
74 %package -n kernel-smp-video-firegl
75 Summary: ATI kernel module for FireGL support
76 Summary(pl): Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL
77 Release: %{release}@%{_kernel_ver_str}
81 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
82 PreReq: modutils >= 2.3.18-2
83 Requires(post,postun): /sbin/depmod
85 %description -n kernel-smp-video-firegl
86 ATI kernel module for FireGL support.
88 %description -n kernel-smp-video-firegl -l pl
89 Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL.
93 rpm2cpio %{SOURCE0} | cpio -i -d
94 bzip2 -d -v usr/X11R6/bin/*.bz2
96 tar -xzf usr/src/ATI/fglrx_panel_sources.tgz -C panel_src
98 %{!?_without_dist_kernel:%patch1 -p1}
101 cd lib/modules/fglrx/build_mod/
102 cp make.sh make.sh.org && rm -f make.sh
103 sed -e 's#gcc#%{kgcc}#g' -e 's#`id -u` -ne 0#`id -u` -ne `id -u`#g' make.sh.org > make.sh
107 mv fglrx.ko fglrx-smp.ko
110 cd ../../../../panel_src
117 rm -rf $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/X11/extensions} \
119 $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc/
121 install lib/modules/fglrx/build_mod/fglrx.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
122 install lib/modules/fglrx/build_mod/fglrx-smp.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
124 install usr/X11R6/bin/{fgl_glxgears,fglrxconfig,fglrxinfo} $RPM_BUILD_ROOT%{_bindir}
125 #install panel_src/{fireglcontrol.qt3.gcc%{_gcc_ver},fireglcontrol} $RPM_BUILD_ROOT%{_bindir}
126 cp -r usr/X11R6/lib/* $RPM_BUILD_ROOT%{_libdir}/
128 cd $RPM_BUILD_ROOT%{_libdir}
129 ln -s libGL.so.* libGL.so
132 rm -rf $RPM_BUILD_ROOT
134 %post -p /sbin/ldconfig
135 %postun -p /sbin/ldconfig
137 %post -n kernel-video-firegl
138 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver} }%{_kernel_ver}
140 %postun -n kernel-video-firegl
141 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver} }%{_kernel_ver}
143 %post -n kernel-smp-video-firegl
144 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver}smp }%{_kernel_ver}smp
146 %postun -n kernel-smp-video-firegl
147 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver}smp }%{_kernel_ver}smp
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_bindir}/*
152 %attr(755,root,root) %{_libdir}/lib*.so*
153 %attr(755,root,root) %{_libdir}/modules/*/*.so
154 %attr(755,root,root) %{_libdir}/modules/*/*.o
155 %attr(644,root,root) %{_libdir}/modules/*/*.a
156 %attr(755,root,root) /usr/X11R6/lib/libfglrx_gamma.a
158 %files -n kernel-video-firegl
159 %defattr(644,root,root,755)
160 /lib/modules/%{_kernel_ver}/misc/*.ko*
162 %files -n kernel-smp-video-firegl
163 %defattr(644,root,root,755)
164 /lib/modules/%{_kernel_ver}smp/misc/*.ko*