]>
Commit | Line | Data |
---|---|---|
de93633b | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without dist_kernel # without distribution kernel | |
4 | %bcond_without kernel # don't build kernel modules | |
de93633b | 5 | %bcond_without userspace # don't build userspace tools |
6 | %bcond_with verbose # verbose build (V=1) | |
bd12a4d2 | 7 | %bcond_with multigl # package libGL in a way allowing concurrent install with nvidia/fglrx drivers |
de93633b | 8 | |
44150540 | 9 | %define x11ver xpic |
de93633b | 10 | |
06b22105 ER |
11 | %if %{without kernel} |
12 | %undefine with_dist_kernel | |
de93633b | 13 | %endif |
72311a60 | 14 | %if "%{_alt_kernel}" != "%{nil}" |
15 | %undefine with_userspace | |
16 | %endif | |
06b22105 ER |
17 | %if %{without userspace} |
18 | # nothing to be placed to debuginfo package | |
19 | %define _enable_debug_packages 0 | |
20 | %endif | |
72311a60 | 21 | |
de93633b | 22 | %ifarch %{ix86} |
6800c75d | 23 | %define arch_sufix %{nil} |
de93633b | 24 | %define arch_dir x86 |
25 | %else | |
de93633b | 26 | %define arch_sufix _64a |
27 | %define arch_dir x86_64 | |
28 | %endif | |
29 | ||
50f18a66 | 30 | %define rel 2 |
72311a60 | 31 | %define pname xorg-driver-video-fglrx |
053842d1 JR |
32 | Summary: Linux Drivers for AMD/ATI graphics accelerators |
33 | Summary(pl.UTF-8): Sterowniki do akceleratorów graficznych AMD/ATI | |
5cd011e2 | 34 | Name: %{pname} |
053842d1 | 35 | Version: 12.1 |
06b22105 | 36 | Release: %{rel}%{?with_multigl:.mgl} |
5d96cd9e | 37 | Epoch: 1 |
053842d1 | 38 | License: AMD Binary (parts are GPL) |
de93633b | 39 | Group: X11 |
053842d1 JR |
40 | Source0: http://dlmdownloads.ati.com/drivers/linux/amd-driver-installer-%(echo %{version} | tr . -)-x86.x86_64.run |
41 | # Source0-md5: 6396d0f6f70b89d605bac896feb2b7c9 | |
566515bf JR |
42 | Source1: atieventsd.init |
43 | Source2: atieventsd.sysconfig | |
44 | Source3: gl.pc.in | |
5aba250d | 45 | Source4: 10-fglrx.conf |
72311a60 | 46 | Patch0: %{pname}-kh.patch |
8b7f9c10 | 47 | Patch1: %{pname}-smp.patch |
ce2fff9a | 48 | Patch2: %{pname}-x86genericarch.patch |
6fab1c66 JR |
49 | Patch3: %{pname}-desktop.patch |
50 | Patch4: %{pname}-nofinger.patch | |
d62793ba | 51 | Patch5: %{pname}-GPL-only.patch |
40168e3e | 52 | Patch6: %{pname}-WARN.patch |
6e4e8ff3 | 53 | Patch7: %{pname}-kernel-fpu.patch |
13897f9c | 54 | URL: http://ati.amd.com/support/drivers/linux/linux-radeon.html |
6efde535 | 55 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2} |
f3b1b67f | 56 | BuildRequires: rpmbuild(macros) >= 1.379 |
051fc62d | 57 | BuildRequires: sed >= 4.0 |
5cd011e2 | 58 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} |
de93633b | 59 | Requires: xorg-xserver-server |
e27c0f70 | 60 | Requires: xorg-xserver-server(videodrv-abi) <= 11.0 |
a1d0c0b1 | 61 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
f8d82c29 | 62 | Suggests: %{name}-config |
5cd011e2 | 63 | Suggests: kernel-video-firegl |
b4410e56 | 64 | Provides: xorg-driver-video |
f72bb093 | 65 | Provides: xorg-xserver-module(glx) |
d0cb1f8b | 66 | Obsoletes: X11-driver-firegl < 1:7.0.0 |
d0cb1f8b | 67 | Obsoletes: XFree86-driver-firegl < 1:7.0.0 |
ca92b9f5 | 68 | Obsoletes: xorg-driver-video-fglrx-libdri |
f72bb093 | 69 | Obsoletes: xorg-driver-video-fglrx-libglx |
f9cbcfd5 | 70 | %if %{without multigl} |
f72bb093 JR |
71 | Conflicts: xorg-driver-video-nvidia |
72 | Conflicts: xorg-xserver-libglx | |
f9cbcfd5 | 73 | %endif |
de93633b | 74 | ExclusiveArch: i586 i686 athlon pentium3 pentium4 %{x8664} |
75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
76 | ||
185c64d2 | 77 | %define _ccver %(rpm -q --qf "%{VERSION}" gcc | sed 's/\\..*//') |
78 | ||
50ee3256 JR |
79 | %define _noautoreqdep libGL.so.1 |
80 | %define no_install_post_check_so 1 | |
de93633b | 81 | |
82 | %description | |
83 | Display driver files for the ATI Radeon 8500, 9700, Mobility M9 and | |
84 | the FireGL 8700/8800, E1, Z1/X1 graphics accelerators. This package | |
85 | provides 2D display drivers and hardware accelerated OpenGL. | |
86 | ||
91bd8dfa | 87 | %description -l pl.UTF-8 |
de93633b | 88 | Sterowniki do kart graficznych ATI Radeon 8500, 9700, Mobility M9 oraz |
91bd8dfa JR |
89 | graficznych akceleratorów FireGL 8700/8800, E1, Z1/X1. Pakiet |
90 | dostarcza sterowniki obsługujące wyświetlanie 2D oraz sprzętowo | |
de93633b | 91 | akcelerowany OpenGL. |
92 | ||
5b2ffdd6 JR |
93 | %package libs |
94 | Summary: OpenGL (GL and GLX) ATI/AMD libraries | |
95 | Summary(pl.UTF-8): Biblioteki OpenGL (GL i GLX) ATI/AMD | |
96 | Group: X11/Development/Libraries | |
97 | Requires(post,postun): /sbin/ldconfig | |
98 | # 4.0 for Radeon HD 5000 Series | |
99 | Provides: OpenGL = 3.3 | |
100 | Provides: OpenGL-GLX = 1.4 | |
101 | %if %{without multigl} | |
102 | Obsoletes: Mesa | |
103 | Conflicts: Mesa-libGL | |
104 | %endif | |
105 | Obsoletes: X11-OpenGL-core < 1:7.0.0 | |
106 | Obsoletes: X11-OpenGL-libGL < 1:7.0.0 | |
107 | Obsoletes: XFree86-OpenGL-core < 1:7.0.0 | |
108 | Obsoletes: XFree86-OpenGL-libGL < 1:7.0.0 | |
109 | ||
110 | %description libs | |
111 | ATI/AMD OpenGL (GL and GLX only) implementation libraries. | |
112 | ||
113 | %description libs -l pl.UTF-8 | |
114 | Implementacja OpenGL (tylko GL i GLX) firmy ATI/AMD. | |
115 | ||
57e97736 | 116 | %package devel |
91311dfb | 117 | Summary: Header files for development for the ATI Radeon cards proprietary driver |
7bd8110b | 118 | Summary(pl.UTF-8): Pliki nagłówkowe do programowania z użyciem własnościowego sterownika dla kart ATI Radeon |
57e97736 | 119 | Group: X11/Development/Libraries |
5b2ffdd6 | 120 | Requires: %{pname}-libs = %{epoch}:%{version}-%{rel} |
91311dfb JB |
121 | # or more? |
122 | Requires: xorg-proto-glproto-devel | |
5b2ffdd6 | 123 | # 4.0 for Radeon HD 5000 Series |
5b2ffdd6 | 124 | Provides: OpenGL-GLX-devel = 1.4 |
a1d0c0b1 | 125 | Provides: OpenGL-devel = 3.3 |
5b2ffdd6 JR |
126 | Obsoletes: X11-OpenGL-devel-base |
127 | Obsoletes: XFree86-OpenGL-devel-base | |
57e97736 PS |
128 | |
129 | %description devel | |
a1d0c0b1 | 130 | Header files for development for the ATI proprietary driver for ATI |
131 | Radeon graphic cards. | |
91311dfb | 132 | |
91bd8dfa JR |
133 | %description devel -l pl.UTF-8 |
134 | Pliki nagłówkowe do programowania z użyciem własnościowego sterownika | |
91311dfb | 135 | ATI dla kart graficznych Radeon. |
57e97736 PS |
136 | |
137 | %package static | |
91311dfb | 138 | Summary: Static libraries for development for the ATI Radeon cards proprietary driver |
7bd8110b | 139 | Summary(pl.UTF-8): Biblioteki statyczne do programowania z użyciem własnościowego sterownika dla kart ATI Radeon |
57e97736 | 140 | Group: X11/Development/Libraries |
72311a60 | 141 | Requires: %{pname}-devel = %{epoch}:%{version}-%{release} |
57e97736 PS |
142 | |
143 | %description static | |
144 | Static libraries for development for the ATI proprietary driver for | |
145 | ATI Radeon graphic cards. | |
146 | ||
91bd8dfa JR |
147 | %description static -l pl.UTF-8 |
148 | Biblioteki statyczne do programowania z użyciem własnościowego | |
91311dfb JB |
149 | sterownika ATI dla kart graficznych ATI Radeon. |
150 | ||
566515bf JR |
151 | %package atieventsd |
152 | Summary: ATI external events daemon | |
1a3464b2 | 153 | Summary(pl.UTF-8): Demon zewnętrznych zdarzeń ATI |
566515bf JR |
154 | Group: Daemons |
155 | Requires: %{pname} = %{epoch}:%{version}-%{rel} | |
156 | Requires: acpid | |
157 | Requires(post,preun): /sbin/chkconfig | |
158 | Requires: rc-scripts | |
159 | ||
160 | %description atieventsd | |
a1d0c0b1 | 161 | The ATI External Events Daemon is a user-level application that |
162 | monitors various system events such as ACPI or hotplug, then notifies | |
163 | the driver via the X extensions interface that the event has occured. | |
566515bf JR |
164 | |
165 | %description atieventsd -l pl.UTF-8 | |
a1d0c0b1 | 166 | Demon zewnętrznych zdarzeń ATI jest aplikacją monitorującą różne |
167 | zdarzenia systemowe, takie jak ACPI lub hotplug, a następnie | |
168 | informującą sterownik poprzez interfejs rozszerzeń X, że zaszło | |
169 | zdarzenie. | |
566515bf | 170 | |
f8d82c29 ZU |
171 | %package config |
172 | Summary: Xorg configuration file to use fglrx module | |
62382631 | 173 | Summary(pl.UTF-8): Plik konfiguracyjny modułu fglrx dla Xorg |
f8d82c29 ZU |
174 | Group: X11 |
175 | Requires: %{name} = %{epoch}:%{version}-%{rel} | |
176 | ||
177 | %description config | |
178 | Without configuration file Xorg doesn't use fglrx module. If you want | |
179 | to use it you should install this package or create own configuration | |
180 | file. | |
181 | ||
62382631 | 182 | %description config -l pl.UTF-8 |
183 | Bez odpowiedniej konfiguracji Xorg nie będzie używał modułu fglrx. Aby | |
184 | to umożliwić należy zainstalować tą paczkę lub stworzyć własny plik | |
185 | konfiguracyjny. | |
186 | ||
12b4fedb | 187 | %package -n kernel%{_alt_kernel}-video-firegl |
de93633b | 188 | Summary: ATI kernel module for FireGL support |
7bd8110b | 189 | Summary(pl.UTF-8): Moduł jądra oferujący wsparcie dla ATI FireGL |
06b22105 | 190 | Release: %{rel}@%{_kernel_ver_str} |
de93633b | 191 | License: ATI |
192 | Group: Base/Kernel | |
812075a5 | 193 | %{?with_dist_kernel:%requires_releq_kernel} |
5cd011e2 | 194 | %if "%{_alt_kernel}" != "%{nil}" |
195 | Provides: kernel-video-firegl = %{epoch}:%{version}-%{rel}@%{_kernel_ver_str} | |
196 | %endif | |
de93633b | 197 | Requires(post,postun): /sbin/depmod |
de93633b | 198 | |
12b4fedb | 199 | %description -n kernel%{_alt_kernel}-video-firegl |
de93633b | 200 | ATI kernel module for FireGL support. |
201 | ||
91bd8dfa JR |
202 | %description -n kernel%{_alt_kernel}-video-firegl -l pl.UTF-8 |
203 | Moduł jądra oferujący wsparcie dla ATI FireGL. | |
de93633b | 204 | |
de93633b | 205 | %prep |
206 | %setup -q -c -T | |
207 | ||
c060e134 | 208 | sh %{SOURCE0} --extract . |
de93633b | 209 | |
c060e134 | 210 | cp arch/%{arch_dir}/lib/modules/fglrx/build_mod/* common/lib/modules/fglrx/build_mod |
de93633b | 211 | |
1d968be3 | 212 | %if %{with dist_kernel} |
1e707323 | 213 | %patch0 -p1 |
8b7f9c10 | 214 | %patch1 -p0 |
ce2fff9a | 215 | %patch2 -p0 |
48533427 | 216 | %endif |
1e707323 JR |
217 | %patch3 -p1 |
218 | %patch4 -p1 | |
d62793ba | 219 | %patch5 -p1 |
40168e3e | 220 | %patch6 -p0 |
6e4e8ff3 | 221 | %patch7 -p0 |
de93633b | 222 | |
e27c0f70 | 223 | install -d common{%{_prefix}/{%{_lib},bin,sbin},/etc} |
6800c75d | 224 | cp -r %{x11ver}%{arch_sufix}/usr/X11R6/%{_lib}/* common%{_libdir} |
dbf2846b | 225 | mv common%{_libdir}/modules/extensions/{fglrx/fglrx-libglx.so,libglx.so} |
75801aec | 226 | cp -r arch/%{arch_dir}/usr/X11R6/%{_lib}/* common%{_libdir} |
dbf2846b | 227 | cp -r arch/%{arch_dir}/usr/X11R6/%{_lib}/modules common%{_libdir}/xorg |
c060e134 | 228 | cp -r arch/%{arch_dir}/usr/X11R6/bin/* common%{_bindir} |
053842d1 | 229 | cp -r arch/%{arch_dir}/usr/bin/* common%{_bindir} |
27570731 | 230 | cp -r arch/%{arch_dir}/usr/sbin/* common%{_sbindir} |
d49fb583 | 231 | cp -r arch/%{arch_dir}/usr/%{_lib}/*.so* common%{_libdir} |
dbf2846b | 232 | mv common%{_libdir}/{fglrx/fglrx-libGL.so.1.2,libGL.so.1.2} |
e27c0f70 | 233 | cp -r arch/%{arch_dir}/etc/* common/etc |
de93633b | 234 | |
235 | %build | |
236 | %if %{with kernel} | |
237 | cd common/lib/modules/fglrx/build_mod | |
238 | cp -f 2.6.x/Makefile . | |
62d28f66 | 239 | %build_kernel_modules -c -m fglrx GCC_VER_MAJ=%{_ccver} |
de93633b | 240 | cd - |
241 | %endif | |
242 | ||
de93633b | 243 | %install |
244 | rm -rf $RPM_BUILD_ROOT | |
245 | ||
246 | %if %{with kernel} | |
12b4fedb | 247 | %install_kernel_modules -m common/lib/modules/fglrx/build_mod/fglrx -d misc |
de93633b | 248 | %endif |
249 | ||
250 | %if %{with userspace} | |
317e6556 | 251 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{ati,env.d,X11/xorg.conf.d},%{_bindir},%{_sbindir}} \ |
e3dbb82b | 252 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/ati,%{_mandir}/man8} \ |
566515bf | 253 | $RPM_BUILD_ROOT{%{_libdir}/xorg/modules,%{_includedir}/{X11/extensions,GL}} \ |
e27c0f70 JR |
254 | $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} \ |
255 | $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors | |
566515bf JR |
256 | |
257 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/atieventsd | |
258 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/atieventsd | |
317e6556 | 259 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d |
566515bf | 260 | cp -r common%{_datadir}/doc/fglrx/examples/etc/acpi $RPM_BUILD_ROOT/etc |
e27c0f70 | 261 | install -p common/etc/OpenCL/vendors/*.icd $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors |
e3dbb82b JR |
262 | |
263 | install common%{_bindir}/* $RPM_BUILD_ROOT%{_bindir} | |
264 | install common/usr/X11R6/bin/* $RPM_BUILD_ROOT%{_bindir} | |
265 | install common%{_sbindir}/* $RPM_BUILD_ROOT%{_sbindir} | |
266 | ||
267 | rm $RPM_BUILD_ROOT%{_sbindir}/atigetsysteminfo.sh | |
de93633b | 268 | |
de93633b | 269 | cp -r common%{_libdir}/modules/* $RPM_BUILD_ROOT%{_libdir}/xorg/modules |
fa23496e | 270 | ln -s %{_libdir}/xorg/modules/dri $RPM_BUILD_ROOT%{_libdir} |
eb789250 | 271 | cp -r common%{_sysconfdir}/ati/control $RPM_BUILD_ROOT%{_sysconfdir}/ati/control |
1cf8b52c | 272 | cp -r common%{_sysconfdir}/ati/signature $RPM_BUILD_ROOT%{_sysconfdir}/ati/signature |
217c853b BZ |
273 | cp -r common%{_sysconfdir}/ati/amdpcsdb.default $RPM_BUILD_ROOT%{_sysconfdir}/ati/amdpcsdb.default |
274 | cp -r common%{_sysconfdir}/ati/atiogl.xml $RPM_BUILD_ROOT%{_sysconfdir}/ati/atiogl.xml | |
de93633b | 275 | |
a0e674b9 | 276 | cp -r common%{_datadir}/ati/* $RPM_BUILD_ROOT%{_datadir}/ati |
a0e674b9 BZ |
277 | cp -r common%{_datadir}/icons/*.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
278 | ||
1e707323 JR |
279 | cp -r common%{_desktopdir}/*.desktop $RPM_BUILD_ROOT%{_desktopdir} |
280 | ||
e3dbb82b JR |
281 | cp -r common%{_mandir}/man8/*.8 $RPM_BUILD_ROOT%{_mandir}/man8 |
282 | ||
bd12a4d2 JR |
283 | %if %{with multigl} |
284 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ld.so.conf.d,%{_libdir}/fglrx} | |
285 | ||
286 | echo %{_libdir}/fglrx >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/fglrx.conf | |
287 | ||
288 | cp -r common%{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
289 | cp -r common%{_libdir}/lib*.so* $RPM_BUILD_ROOT%{_libdir}/fglrx | |
1f616757 | 290 | cp -r common%{_libdir}/lib*.cap $RPM_BUILD_ROOT%{_libdir}/fglrx |
bd12a4d2 | 291 | |
f9cbcfd5 JR |
292 | mv -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/{libglx.so,libglx.so.%{version}} |
293 | ln -sf libglx.so.%{version} $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libglx.so | |
294 | ||
63192f6b | 295 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/fglrx |
bd12a4d2 | 296 | ln -sf fglrx/libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so |
bd12a4d2 JR |
297 | %else |
298 | cp -r common%{_libdir}/lib* $RPM_BUILD_ROOT%{_libdir} | |
299 | ||
63192f6b | 300 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} |
de93633b | 301 | ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so |
bd12a4d2 | 302 | %endif |
9d6674ac | 303 | |
de93633b | 304 | install common%{_includedir}/GL/*.h $RPM_BUILD_ROOT%{_includedir}/GL |
62d28f66 | 305 | #install common/usr/X11R6/include/X11/extensions/*.h $RPM_BUILD_ROOT%{_includedir}/X11/extensions |
57e97736 PS |
306 | echo "LIBGL_DRIVERS_PATH=%{_libdir}/xorg/modules/dri" > $RPM_BUILD_ROOT%{_sysconfdir}/env.d/LIBGL_DRIVERS_PATH |
307 | ||
308 | cd $RPM_BUILD_ROOT%{_libdir} | |
62d28f66 | 309 | for f in libfglrx_dm; do |
bd12a4d2 | 310 | %if %{with multigl} |
63192f6b | 311 | ln -s fglrx/$f.so.*.* $f.so |
bd12a4d2 | 312 | %else |
63192f6b | 313 | ln -s $f.so.*.* $f.so |
bd12a4d2 | 314 | %endif |
57e97736 | 315 | done |
de93633b | 316 | %endif |
317 | ||
566515bf | 318 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
051fc62d | 319 | %{__sed} -e 's|@@prefix@@|%{_prefix}|g;s|@@libdir@@|%{_libdir}|g;s|@@includedir@@|%{_includedir}|g;s|@@version@@|%{version}|g' < %{SOURCE3} \ |
566515bf JR |
320 | > $RPM_BUILD_ROOT%{_pkgconfigdir}/gl.pc |
321 | ||
de93633b | 322 | %clean |
323 | rm -rf $RPM_BUILD_ROOT | |
324 | ||
f9cbcfd5 JR |
325 | %if %{with multigl} |
326 | %post | |
f9cbcfd5 JR |
327 | if [ ! -e %{_libdir}/xorg/modules/extensions/libglx.so ]; then |
328 | ln -sf libglx.so.%{version} %{_libdir}/xorg/modules/extensions/libglx.so | |
329 | fi | |
f9cbcfd5 JR |
330 | %endif |
331 | ||
5b2ffdd6 JR |
332 | %post libs -p /sbin/ldconfig |
333 | %postun libs -p /sbin/ldconfig | |
de93633b | 334 | |
566515bf JR |
335 | %post atieventsd |
336 | /sbin/chkconfig --add atieventsd | |
337 | %service atieventsd restart | |
338 | ||
339 | %preun atieventsd | |
340 | if [ "$1" = "0" ]; then | |
341 | %service -q atieventsd stop | |
342 | /sbin/chkconfig --del atieventsd | |
343 | fi | |
344 | ||
12b4fedb | 345 | %post -n kernel%{_alt_kernel}-video-firegl |
de93633b | 346 | %depmod %{_kernel_ver} |
347 | ||
12b4fedb | 348 | %postun -n kernel%{_alt_kernel}-video-firegl |
de93633b | 349 | %depmod %{_kernel_ver} |
350 | ||
de93633b | 351 | %if %{with userspace} |
352 | %files | |
353 | %defattr(644,root,root,755) | |
f42f7da0 | 354 | %doc LICENSE.TXT common%{_docdir}/fglrx/*.html common%{_docdir}/fglrx/articles common%{_docdir}/fglrx/user-manual |
cc34c4f1 | 355 | %dir %{_sysconfdir}/ati |
eb789250 | 356 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ati/control |
1cf8b52c | 357 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ati/signature |
217c853b BZ |
358 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ati/amdpcsdb.default |
359 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ati/atiogl.xml | |
57e97736 | 360 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/env.d/LIBGL_DRIVERS_PATH |
de93633b | 361 | %attr(755,root,root) %{_bindir}/* |
566515bf | 362 | %attr(755,root,root) %{_sbindir}/amdnotifyui |
b94c2073 | 363 | %{_desktopdir}/*.desktop |
a0e674b9 BZ |
364 | %{_pixmapsdir}/*.xpm |
365 | %{_datadir}/ati | |
bd12a4d2 | 366 | %if %{with multigl} |
5b2ffdd6 JR |
367 | %ghost %{_libdir}/xorg/modules/extensions/libglx.so |
368 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so.%{version} | |
369 | %else | |
370 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libglx.so | |
371 | %endif | |
372 | %{_libdir}/dri | |
373 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/fglrx_dri.so | |
374 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/fglrx_drv.so | |
bb2b340f | 375 | %dir %{_libdir}/xorg/modules/linux |
5b2ffdd6 JR |
376 | %attr(755,root,root) %{_libdir}/xorg/modules/linux/libfglrxdrm.so |
377 | %attr(755,root,root) %{_libdir}/xorg/modules/amdxmm.so | |
378 | %attr(755,root,root) %{_libdir}/xorg/modules/glesx.so | |
379 | ||
380 | %files libs | |
381 | %defattr(644,root,root,755) | |
e27c0f70 JR |
382 | %dir %{_sysconfdir}/OpenCL |
383 | %dir %{_sysconfdir}/OpenCL/vendors | |
384 | %{_sysconfdir}/OpenCL/vendors/*.icd | |
5b2ffdd6 | 385 | %if %{with multigl} |
bd12a4d2 JR |
386 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf.d/fglrx.conf |
387 | %dir %{_libdir}/fglrx | |
424a1cb0 | 388 | %attr(755,root,root) %{_libdir}/fglrx/libAMDXvBA.so.*.* |
63192f6b | 389 | %attr(755,root,root) %{_libdir}/fglrx/libAMDXvBA.so.1 |
e27c0f70 | 390 | %attr(755,root,root) %{_libdir}/fglrx/libOpenCL.so.1 |
053842d1 | 391 | %attr(755,root,root) %{_libdir}/fglrx/libSlotMaximizerAg.so |
50f18a66 | 392 | %ifarch %{ix86} |
053842d1 | 393 | %attr(755,root,root) %{_libdir}/fglrx/libSlotMaximizerBe.so |
50f18a66 | 394 | %endif |
ab5aac73 | 395 | %attr(755,root,root) %{_libdir}/fglrx/libXvBAW.so.*.* |
63192f6b JB |
396 | %attr(755,root,root) %{_libdir}/fglrx/libXvBAW.so.1 |
397 | %{_libdir}/fglrx/libAMDXvBA.cap | |
e27c0f70 | 398 | %attr(755,root,root) %{_libdir}/fglrx/libamdocl*.so |
c37980c7 | 399 | %attr(755,root,root) %{_libdir}/fglrx/libatiadlxx.so |
d49fb583 AA |
400 | %attr(755,root,root) %{_libdir}/fglrx/libaticalcl.so |
401 | %attr(755,root,root) %{_libdir}/fglrx/libaticaldd.so | |
402 | %attr(755,root,root) %{_libdir}/fglrx/libaticalrt.so | |
ca92b9f5 | 403 | %attr(755,root,root) %{_libdir}/fglrx/libatiuki.so.*.* |
bd12a4d2 | 404 | %attr(755,root,root) %{_libdir}/fglrx/libGL.so.*.* |
46a59818 | 405 | %attr(755,root,root) %{_libdir}/fglrx/libGL.so.1 |
bd12a4d2 | 406 | %attr(755,root,root) %{_libdir}/fglrx/libfglrx_dm.so.*.* |
bd12a4d2 | 407 | %else |
424a1cb0 | 408 | %attr(755,root,root) %{_libdir}/libAMDXvBA.so.*.* |
63192f6b | 409 | %attr(755,root,root) %ghost %{_libdir}/libAMDXvBA.so.1 |
e27c0f70 | 410 | %attr(755,root,root) %{_libdir}/libOpenCL.so.1 |
053842d1 JR |
411 | %attr(755,root,root) %{_libdir}/libSlotMaximizerAg.so |
412 | %attr(755,root,root) %{_libdir}/libSlotMaximizerBe.so | |
ab5aac73 | 413 | %attr(755,root,root) %{_libdir}/libXvBAW.so.*.* |
63192f6b JB |
414 | %attr(755,root,root) %ghost %{_libdir}/libXvBAW.so.1 |
415 | %{_libdir}/libAMDXvBA.cap | |
e27c0f70 | 416 | %attr(755,root,root) %{_libdir}/libamdocl*.so |
c37980c7 | 417 | %attr(755,root,root) %{_libdir}/libatiadlxx.so |
d49fb583 AA |
418 | %attr(755,root,root) %{_libdir}/libaticalcl.so |
419 | %attr(755,root,root) %{_libdir}/libaticaldd.so | |
420 | %attr(755,root,root) %{_libdir}/libaticalrt.so | |
ca92b9f5 JR |
421 | %attr(755,root,root) %{_libdir}/libatiuki.so.*.* |
422 | %attr(755,root,root) %ghost %{_libdir}/libatiuki.so.1 | |
de93633b | 423 | %attr(755,root,root) %{_libdir}/libGL.so.*.* |
63192f6b | 424 | %attr(755,root,root) %ghost %{_libdir}/libGL.so.1 |
de93633b | 425 | %attr(755,root,root) %{_libdir}/libGL.so |
426 | %attr(755,root,root) %{_libdir}/libfglrx_dm.so.*.* | |
f9cbcfd5 | 427 | %endif |
b8dac3df | 428 | |
57e97736 PS |
429 | %files devel |
430 | %defattr(644,root,root,755) | |
6800c75d | 431 | %attr(755,root,root) %{_libdir}/libfglrx_dm.so |
f3848da1 | 432 | %{_includedir}/GL |
bd12a4d2 JR |
433 | %if %{with multigl} |
434 | %attr(755,root,root) %{_libdir}/libGL.so | |
435 | %endif | |
566515bf | 436 | %{_pkgconfigdir}/gl.pc |
de93633b | 437 | |
57e97736 PS |
438 | %files static |
439 | %defattr(644,root,root,755) | |
6800c75d | 440 | %{_libdir}/libfglrx_dm.a |
de93633b | 441 | |
566515bf JR |
442 | %files atieventsd |
443 | %defattr(644,root,root,755) | |
444 | %attr(754,root,root) /etc/rc.d/init.d/atieventsd | |
445 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atieventsd | |
446 | %attr(755,root,root) %{_sbindir}/atieventsd | |
447 | %attr(755,root,root) %{_sysconfdir}/acpi/ati-powermode.sh | |
448 | %{_sysconfdir}/acpi/events/* | |
449 | %{_mandir}/man8/atieventsd.8* | |
450 | ||
f8d82c29 ZU |
451 | %files config |
452 | %defattr(644,root,root,755) | |
453 | %{_sysconfdir}/X11/xorg.conf.d/10-fglrx.conf | |
5ebc6789 | 454 | %endif |
f8d82c29 | 455 | |
de93633b | 456 | %if %{with kernel} |
12b4fedb | 457 | %files -n kernel%{_alt_kernel}-video-firegl |
de93633b | 458 | %defattr(644,root,root,755) |
459 | /lib/modules/%{_kernel_ver}/misc/*.ko* | |
83b2fef2 | 460 | %endif |