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