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