]> git.pld-linux.org Git - packages/X11-driver-firegl.git/blame - X11-driver-firegl.spec
- rel 0.2
[packages/X11-driver-firegl.git] / X11-driver-firegl.spec
CommitLineData
73f83a82 1#
2# Conditional build:
65666b9f 3%bcond_without dist_kernel # without distribution kernel
56f8b0b0 4%bcond_without kernel # don't build kernel modules
de505e65 5%bcond_without smp # don't build SMP module
56f8b0b0 6%bcond_without userspace # don't build userspace tools
de505e65 7%bcond_with verbose # verbose build (V=1)
2aa20f95 8%bcond_without incall # include all sources in srpm
6cec6fba 9%bcond_with grsec_kernel # build for kernel-grsecurity
10#
9a8b5c18 11%if !%{with kernel}
37862d70 12%undefine with_dist_kernel
13%endif
6cec6fba 14#
15%if %{with kernel} && %{with dist_kernel} && %{with grsec_kernel}
16%define alt_kernel grsecurity
17%endif
18#
19%define _min_eq_x11 1:6.9.0
20%define _max_x11 1:7.0.0
21%define x11ver x690
37862d70 22
935ce2f3 23%ifarch %{ix86}
674278d1 24%define arch_sufix ""
25%define arch_dir x86
2aa20f95 26%else
42ab2c5b 27%define arch_sufix _64a
674278d1 28%define arch_dir x86_64
2aa20f95
PZ
29%endif
30
8f6e06eb 31%define _rel 0.2
73f83a82 32Summary: Linux Drivers for ATI graphics accelerators
6ec2f123 33Summary(pl.UTF-8): Sterowniki do akceleratorów graficznych ATI
21b4bb90 34Name: X11-driver-firegl
aaafd05b 35Version: 8.34.8
ec3d3e05 36Release: %{_rel}
3b871561 37License: ATI Binary (parts are GPL)
42ab2c5b 38Group: X11
d0c301b5 39Source0: http://www2.ati.com/drivers/linux/ati-driver-installer-%{version}-x86.x86_64.run
aaafd05b 40# Source0-md5: 44eda48613542b955a63bd6af2ccc6ce
54d5ebd9 41Patch0: firegl-panel.patch
44f1fe6d 42Patch1: firegl-panel-ugliness.patch
2ad3dd01 43Patch2: %{name}-kh.patch
44Patch3: %{name}-viak8t.patch
d6783586 45Patch4: %{name}-force-define-AGP.patch
8f6e06eb 46Patch5: xorg-driver-video-fglrx-2.6.20-restore_syscalls.patch
47Patch6: xorg-driver-video-fglrx-2.6.20-init_work_macro.patch
d0c301b5 48URL: http://ati.amd.com/support/drivers/linux/linux-radeon.html
42ab2c5b 49#BuildRequires: X11-devel >= %{_min_eq_x11} # disabled for now
909a7a21 50%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.14}
6ad30d21 51%{?with_userspace:BuildRequires: qt-devel}
a3a376da 52BuildRequires: rpmbuild(macros) >= 1.330
9e00e8f6 53Requires: X11-OpenGL-core >= %{_min_eq_x11}
c8bdf4d6 54Requires: X11-Xserver
2ad3dd01 55%{?with_kernel:Requires: X11-driver-firegl(kernel)}
9e00e8f6 56Requires: X11-libs < %{_max_x11}
42ab2c5b 57Requires: X11-libs >= %{_min_eq_x11}
9e00e8f6 58Requires: X11-modules < %{_max_x11}
42ab2c5b 59Requires: X11-modules >= %{_min_eq_x11}
4aa9a663 60Provides: X11-OpenGL-libGL
65666b9f 61Provides: XFree86-OpenGL-libGL
8d7b5ede 62Obsoletes: Mesa
21b4bb90 63Obsoletes: X11-OpenGL-libGL
8d7b5ede 64Obsoletes: XFree86-OpenGL-libGL
21b4bb90 65Obsoletes: XFree86-driver-firegl
06d82cec 66ExclusiveArch: i586 i686 athlon pentium3 pentium4 %{x8664}
b0e61c0f
AM
67BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
ea373867 69%define _ccver %(rpm -q --qf "%{VERSION}" gcc | sed 's/\\..*//')
bf7a2974 70
2d2f8d91 71%define _noautoreqdep libGL.so.1
b0e61c0f 72
b0e61c0f
AM
73%define _prefix /usr/X11R6
74%define _mandir %{_prefix}/man
b0e61c0f
AM
75
76%description
77e2079e
AM
77Display driver files for the ATI Radeon 8500, 9700, Mobility M9 and
78the FireGL 8700/8800, E1, Z1/X1 graphics accelerators. This package
79provides 2D display drivers and hardware accelerated OpenGL.
b0e61c0f 80
69025518 81%description -l pl.UTF-8
77e2079e 82Sterowniki do kart graficznych ATI Radeon 8500, 9700, Mobility M9 oraz
69025518
JR
83graficznych akceleratorów FireGL 8700/8800, E1, Z1/X1. Pakiet
84dostarcza sterowniki obsługujące wyświetlanie 2D oraz sprzętowo
666ae80e 85akcelerowany OpenGL.
b0e61c0f 86
909a7a21 87%package -n kernel%{_alt_kernel}-video-firegl
b0e61c0f 88Summary: ATI kernel module for FireGL support
6ec2f123 89Summary(pl.UTF-8): Moduł jądra oferujący wsparcie dla ATI FireGL
ec3d3e05 90Release: %{_rel}@%{_kernel_ver_str}
b0e61c0f 91License: ATI
b0e61c0f 92Group: Base/Kernel
65666b9f 93%{?with_dist_kernel:%requires_releq_kernel_up}
ff402db6 94Requires(post,postun): /sbin/depmod
fa80fc8a 95Provides: X11-driver-firegl(kernel)
b0e61c0f 96
909a7a21 97%description -n kernel%{_alt_kernel}-video-firegl
b0e61c0f
AM
98ATI kernel module for FireGL support.
99
69025518
JR
100%description -n kernel%{_alt_kernel}-video-firegl -l pl.UTF-8
101Moduł jądra oferujący wsparcie dla ATI FireGL.
b0e61c0f 102
909a7a21 103%package -n kernel%{_alt_kernel}-smp-video-firegl
074bf6e3 104Summary: ATI kernel module for FireGL support
6ec2f123 105Summary(pl.UTF-8): Moduł jądra oferujący wsparcie dla ATI FireGL
ec3d3e05 106Release: %{_rel}@%{_kernel_ver_str}
074bf6e3 107License: ATI
074bf6e3 108Group: Base/Kernel
65666b9f 109%{?with_dist_kernel:%requires_releq_kernel_smp}
074bf6e3 110Requires(post,postun): /sbin/depmod
fa80fc8a 111Provides: X11-driver-firegl(kernel)
074bf6e3 112
909a7a21 113%description -n kernel%{_alt_kernel}-smp-video-firegl
074bf6e3
PG
114ATI kernel module for FireGL support.
115
69025518
JR
116%description -n kernel%{_alt_kernel}-smp-video-firegl -l pl.UTF-8
117Moduł jądra oferujący wsparcie dla ATI FireGL.
074bf6e3 118
b0e61c0f 119%prep
77e2079e 120%setup -q -c -T
42ab2c5b 121
42ab2c5b 122sh %{SOURCE0} --extract .
42ab2c5b 123
674278d1 124cp arch/%{arch_dir}/lib/modules/fglrx/build_mod/* common/lib/modules/fglrx/build_mod
42ab2c5b 125
56f8b0b0 126install -d panel_src
cbe5572b 127tar -xzf common/usr/src/ati/fglrx_panel_sources.tgz -C panel_src
54d5ebd9 128%patch0 -p1
44f1fe6d 129%patch1 -p1
42ab2c5b 130cd common
2ad3dd01 131%{?with_dist_kernel:%patch2 -p1}
132%patch3 -p1
d6783586 133%patch4 -p2
42ab2c5b 134cd -
8f6e06eb 135%patch5 -p1
136%patch6 -p1
42ab2c5b 137
138install -d common%{_prefix}/{%{_lib},bin}
8dfcd94a
AM
139cp -r %{x11ver}%{arch_sufix}%{_prefix}/%{_lib}/* common%{_prefix}/%{_lib}
140cp -r %{x11ver}%{arch_sufix}%{_bindir}/* common%{_bindir}
674278d1 141cp -r arch/%{arch_dir}%{_prefix}/%{_lib}/* common%{_prefix}/%{_lib}
142cp -r arch/%{arch_dir}%{_bindir}/* common%{_bindir}
b0e61c0f
AM
143
144%build
56f8b0b0 145%if %{with kernel}
42ab2c5b 146cd common/lib/modules/fglrx/build_mod
54eab238 147cp -f 2.6.x/Makefile .
bf7a2974 148%build_kernel_modules -m fglrx GCC_VER_MAJ=%{_ccver}
de505e65 149cd -
56f8b0b0 150%endif
123d3a2e 151
56f8b0b0 152%if %{with userspace}
c5f71a31 153%{__make} -C panel_src \
ca7c1407
KK
154 C="%{__cc}" \
155 CC="%{__cxx}" \
c5f71a31
PS
156 CCFLAGS="%{rpmcflags} -DFGLRX_USE_XEXTENSIONS" \
157 MK_QTDIR=/usr \
158 LIBQT_DYN=qt-mt
56f8b0b0 159%endif
b0e61c0f
AM
160
161%install
162rm -rf $RPM_BUILD_ROOT
b0e61c0f 163
56f8b0b0 164%if %{with kernel}
addd07ab 165%install_kernel_modules -m common/lib/modules/fglrx/build_mod/fglrx -d misc
56f8b0b0
JB
166%endif
167
168%if %{with userspace}
169install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/X11/extensions} \
170 $RPM_BUILD_ROOT/usr/{%{_lib},include/GL}
b0e61c0f 171
674278d1 172install common%{_bindir}/{fgl_glxgears,fglrxinfo,aticonfig} \
5e5f3f25 173 $RPM_BUILD_ROOT%{_bindir}
c5f71a31
PS
174install panel_src/fireglcontrol.qt3.gcc%(gcc -dumpversion) \
175 $RPM_BUILD_ROOT%{_bindir}/fireglcontrol
42ab2c5b 176cp -r common%{_prefix}/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}
b0e61c0f 177
56f8b0b0
JB
178ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
179
180# OpenGL ABI for Linux compatibility
181ln -sf %{_libdir}/libGL.so.1 $RPM_BUILD_ROOT/usr/%{_lib}/libGL.so.1
182ln -sf %{_libdir}/libGL.so $RPM_BUILD_ROOT/usr/%{_lib}/libGL.so
183
42ab2c5b 184install common/usr/include/GL/*.h $RPM_BUILD_ROOT/usr/include/GL
185install common%{_includedir}/X11/extensions/*.h $RPM_BUILD_ROOT%{_includedir}/X11/extensions
56f8b0b0 186%endif
b0e61c0f
AM
187
188%clean
189rm -rf $RPM_BUILD_ROOT
190
191%post -p /sbin/ldconfig
192%postun -p /sbin/ldconfig
193
909a7a21 194%post -n kernel%{_alt_kernel}-video-firegl
65666b9f 195%depmod %{_kernel_ver}
b0e61c0f 196
909a7a21 197%postun -n kernel%{_alt_kernel}-video-firegl
65666b9f 198%depmod %{_kernel_ver}
b0e61c0f 199
909a7a21 200%post -n kernel%{_alt_kernel}-smp-video-firegl
65666b9f 201%depmod %{_kernel_ver}smp
074bf6e3 202
909a7a21 203%postun -n kernel%{_alt_kernel}-smp-video-firegl
65666b9f 204%depmod %{_kernel_ver}smp
074bf6e3 205
56f8b0b0 206%if %{with userspace}
b0e61c0f
AM
207%files
208%defattr(644,root,root,755)
b0e61c0f 209%attr(755,root,root) %{_bindir}/*
56f8b0b0
JB
210%attr(755,root,root) %{_libdir}/libGL.so.*.*
211%attr(755,root,root) %{_libdir}/libGL.so
674278d1 212%attr(755,root,root) %{_libdir}/libfglrx_dm.so.*.*
56f8b0b0 213%attr(755,root,root) %{_libdir}/libfglrx_gamma.so.*.*
29617f5d 214%attr(755,root,root) %{_libdir}/libfglrx_pp.so.*.*
56f8b0b0
JB
215# Linux OpenGL ABI compatibility symlinks
216%attr(755,root,root) /usr/%{_lib}/libGL.so.1
217%attr(755,root,root) /usr/%{_lib}/libGL.so
218
8f6e06eb 219#attr(755,root,root) %{_libdir}/modules/dri/atiogl_a_dri.so
56f8b0b0 220%attr(755,root,root) %{_libdir}/modules/dri/fglrx_dri.so
42ab2c5b 221%attr(755,root,root) %{_libdir}/modules/drivers/fglrx_drv.so
222%attr(755,root,root) %{_libdir}/modules/linux/libfglrxdrm.so
223%doc ATI_LICENSE.TXT common%{_docdir}/fglrx/*.html common%{_docdir}/fglrx/articles common%{_docdir}/fglrx/release-notes common%{_docdir}/fglrx/user-manual
56f8b0b0
JB
224
225# -devel
226#%attr(755,root,root) %{_libdir}/libfglrx_gamma.so
227#%{_includedir}/X11/include/libfglrx_gamma.h
a5669d3a 228#/usr/include/GL/glATI.h
56f8b0b0
JB
229#/usr/include/GL/glxATI.h
230
231# -static
232#%{_libdir}/libfglrx_gamma.a
a5669d3a 233#%{_libdir}/libfglrx_pp.a
56f8b0b0
JB
234%endif
235
236%if %{with kernel}
909a7a21 237%files -n kernel%{_alt_kernel}-video-firegl
b0e61c0f 238%defattr(644,root,root,755)
c894bed3 239/lib/modules/%{_kernel_ver}/misc/*.ko*
074bf6e3 240
bbc12abe 241%if %{with smp} && %{with dist_kernel}
909a7a21 242%files -n kernel%{_alt_kernel}-smp-video-firegl
074bf6e3 243%defattr(644,root,root,755)
c894bed3 244/lib/modules/%{_kernel_ver}smp/misc/*.ko*
56f8b0b0 245%endif
bbc12abe 246%endif
This page took 0.359472 seconds and 4 git commands to generate.