]> git.pld-linux.org Git - packages/X11-driver-firegl.git/blob - X11-driver-firegl.spec
46896444b9a701092b86a556969bfbdeefe6121f
[packages/X11-driver-firegl.git] / X11-driver-firegl.spec
1 #
2 # Conditional build:
3 # _without_dist_kernel
4 #
5 # TODO:
6 # - kernel modules (SMP)
7
8 Summary:        Linux Drivers for ATI graphics accelerators
9 Summary(pl):    Sterowniki do akceleratorów graficznych ATI
10 Name:           XFree86-driver-firegl
11 Version:        2.9.12
12 Release:        2
13 License:        ATI Binary
14 Vendor:         ATI
15 Group:          X11/XFree86
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
19 Patch0:         firegl-panel.patch
20 BuildRequires:  cpio
21 %{!?_without_dist_kernel:BuildRequires:         kernel-headers >= 2.2.0 }
22 BuildRequires:  rpm-utils
23 Requires:       XFree86-Xserver
24 Requires:       XFree86-libs >= 4.2.0
25 Requires:       XFree86-modules >= 4.2.0
26 Requires:       kernel-video-firegl = %{version}
27 Provides:       XFree86-OpenGL-core
28 Obsoletes:      Mesa
29 Obsoletes:      XFree86-OpenGL-core
30 Conflicts:      XFree86-OpenGL-devel <= 4.2.0-3
31 ExclusiveArch:  i586 i686 athlon
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _noautoreqdep   libGL.so.1.2
35
36 %define         _prefix         /usr/X11R6
37 %define         _mandir         %{_prefix}/man
38
39 %description
40 Display driver files for the ATI Radeon 8500, 9700, Mobility M9 and
41 the FireGL 8700/8800, E1, Z1/X1 graphics accelerators. This package
42 provides 2D display drivers and hardware accelerated OpenGL.
43
44 %description -l pl
45 Sterowniki do kart graficznych ATI Radeon 8500, 9700, Mobility M9 oraz
46 graficznych akceleratorów FireGL 8700/8800, E1, Z1/X1. Pakiet
47 dostarcza sterowniki obs³uguj±ce wy¶wietlanie 2D oraz sprzêtowo
48 akcelerowany OpenGL.
49
50 %package -n kernel-video-firegl
51 Summary:        ATI kernel module for FireGL support
52 Summary(pl):    Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL
53 Release:        %{release}@%{_kernel_ver_str}
54 License:        ATI
55 Vendor:         ATI
56 Group:          Base/Kernel
57 %{!?_without_dist_kernel:%requires_releq_kernel_up}
58 PreReq:         modutils >= 2.3.18-2
59 Requires(post,postun):  /sbin/depmod
60
61 %description -n kernel-video-firegl
62 ATI kernel module for FireGL support.
63
64 %description -n kernel-video-firegl -l pl
65 Modu³ j±dra oferuj±cy wsparcie dla ATI FireGL.
66
67 %prep
68 %setup -q -c -T
69 unzip %{SOURCE0}
70 mv Xfree4.3.0_2.9.12/* .
71 rpm2cpio fglrx-glc22-4.3.0-%{version}.i586.rpm | cpio -i -d
72 bzip2 -d -v usr/X11R6/bin/*.bz2
73 mkdir panel_src
74 tar -xzf usr/src/fglrx_panel_sources.tgz -C panel_src
75 %patch0 -p1
76
77 %build
78 cd lib/modules/fglrx/build_mod/
79 cp make.sh make.sh.org && rm -f make.sh
80 sed -e 's#gcc#%{kgcc}#g' -e 's#`id -u` -ne 0#`id -u` -ne `id -u`#g' make.sh.org > make.sh
81 chmod 755 make.sh
82 ./make.sh
83 cd ../../../../panel_src
84 %{__make} MK_QTDIR=/usr \
85         LIBQT_DYN=qt-mt
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}/X11/extensions}
90 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/
91
92 install lib/modules/fglrx/build_mod/fglrx.o             $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/
93
94 install usr/X11R6/bin/{fgl_glxgears,fglrxconfig,fglrxinfo} $RPM_BUILD_ROOT%{_bindir}
95 install panel_src/{fireglcontrol.qt3.gcc3.2.3,fireglcontrol} $RPM_BUILD_ROOT%{_bindir}
96 cp -r usr/X11R6/lib/* $RPM_BUILD_ROOT%{_libdir}/
97
98 cd $RPM_BUILD_ROOT%{_libdir}
99 ln -s libGL.so.* libGL.so
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %post   -n kernel-video-firegl
108 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver} }%{_kernel_ver}
109
110 %postun -n kernel-video-firegl
111 /sbin/depmod -a %{!?_without_dist_kernel:-F /boot/System.map-%{_kernel_ver} }%{_kernel_ver}
112
113 %files
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/*
116 %attr(755,root,root) %{_libdir}/lib*.so*
117 %attr(755,root,root) %{_libdir}/modules/*/*.so
118 %attr(755,root,root) %{_libdir}/modules/*/*.o
119 %attr(644,root,root) %{_libdir}/modules/*/*.a
120
121 %files -n kernel-video-firegl
122 %defattr(644,root,root,755)
123 /lib/modules/%{_kernel_ver}/misc/*.o*
This page took 0.112294 seconds and 3 git commands to generate.