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