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