]> git.pld-linux.org Git - packages/XFree86-glx.git/blob - XFree86-glx.spec
- changed dl.sf.net to dl.sourceforge.net
[packages/XFree86-glx.git] / XFree86-glx.spec
1 %define mesaversion     3.2.1
2 %define glx_ver latest
3
4 Summary:        OpenGL 1.2 compatible 3D graphics library
5 Summary(pl):    Biblioteka grafiki 3D kompatybilna z OpenGL 1.2
6 Name:           XFree86-glx
7 Version:        4.2.0
8 Release:        0.2
9 License:        LGPL
10 Vendor:         Brian Paul <brian_paul@mesa3d.org>
11 Group:          X11/Libraries
12 Source0:        http://dl.sourceforge.net/mesa3d/MesaLib-%{mesaversion}.tar.bz2
13 # Source0-md5:  dcd5a6aa77b3bdb400c8179419473e58
14 Source1:        http://dl.sourceforge.net/mesa3d/MesaDemos-%{mesaversion}.tar.bz2
15 # Source1-md5:  621bd95ed9f93467f4dfa615e2f27c16
16 Source2:        http://snow.ashlu.bc.ca/glx/snapshots/utah-glx-src-%{glx_ver}.tar.gz
17 # Source2-md5:  654ae59e0603d71c18a88737e9f954c6
18 URL:            http://www.mesa3d.org/
19 BuildRequires:  binutils >= 2.9.1.0.19a
20 BuildRequires:  tcl
21 Provides:       OpenGL
22 Conflicts:      XFree86 =< 4.1.0
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Obsoletes:      Mesa
25 Obsoletes:      XFree86-OpenGL-core
26 Obsoletes:      XFree86-OpenGL-libs
27
28 %define         _prefix         /usr/X11R6
29 %define         _sysconfdir     /etc/X11
30
31 %description
32 This is an implementation of the Mesa 3D library and GLX with support
33 for hardware acceleration. GLX was developed by SGI as an extension to
34 the X window system to integrate OpenGL rendering functions. This
35 allows the Mesa 3D library to perform its 3D rendering functions
36 within the X server's process, rather than within the X client
37 program. This offers potential performance benefits, because the
38 rendered image does not have to be moved from the X client program to
39 the X server. (Only the commands required to render the image are
40 sent.) It also makes 3-D hardware acceleration much more practical
41 (and fast). This package includes a accelerated hardware drivers for
42 video card based on NVIDIA Riva series and ATI Rage Pro chipsets.
43
44 The Mesa 3D graphics library is a powerful and generic toolset for
45 creating hardware assisted computer graphics. To the extent that Mesa
46 utilizes the OpenGL command syntax or state machine, it is being used
47 with authorization from Silicon Graphics, Inc. However, the author
48 (Brian Paul) makes no claim that Mesa is in any way a compatible
49 replacement for OpenGL or associated with Silicon Graphics, Inc. Those
50 who want a licensed implementation of OpenGL should contact a licensed
51 vendor. However, Mesa is very similar to OpenGL, and you might find
52 Mesa to be a valid alternative to OpenGL.
53
54 This package is based on Mesa %{mesaver} and utah-glx-%{glxver}.
55
56 please see http://utah-glx.sourceforge.net/ for more information.
57
58 %description -l pl
59 To jest implementacja biblioteki Mesa 3D oraz GLX z obs³ug± sprzêtowej
60 akceleracji. GLX zosta³ stworzony przez SGI jako rozszerzenie systemu
61 X Window w celu integracji funkcji renderuj±cych OpenGL. Pozwala to
62 bibliotece Mesa 3D na wykonywanie funkcji renderujacych 3D wewn±trz
63 procesu X serwera zamiast po stronie X klienta. Daje to potencjalne
64 zyski wydajno¶ci, poniewa¿ wyrenderowany obraz nie musi byæ przesy³any
65 z programu X klienta do X serwera (przesy³ane s± tylko polecenia
66 potrzebne do renderowania). Daje to tak¿e mo¿liwo¶æ u¿ycia sprzêtowej
67 akceleracji 3D. Ten pakiet zawiera sterowniki wykorzystuj±ce
68 akceleracjê dla kart graficznych opartych na uk³adach z serii NVIDIA
69 Riva i ATI Rage Pro.
70
71 Biblioteka graficzna Mesa 3D jest potê¿nym i ogólnym zestawem narzêdzi
72 do tworzenia grafiki komputerowej przy wsparciu sprzêtu. Mesa u¿ywa
73 sk³adni poleceñ i maszyny stanów OpenGL za zgod± Silicon Graphics,
74 Inc. Nie jest to jednak licencjonowana implementacja OpenGL.
75
76 Ten pakiet bazuje na Mesie %{mesaver} oraz utah-glx-%{glxver}.
77
78 Wiêcej informacji na stronie http://utah-glx.sourceforge.net/.
79
80 %package devel
81 Summary:        Development files for Mesa (OpenGL compatible 3D lib)
82 Summary(pl):    Pliki nag³ówkowe dla Mesy (biblioteki 3D zgodnej z OpenGL)
83 Group:          X11/Development/Libraries
84 Requires:       %{name} = %{version}
85 Provides:       OpenGL-devel
86 Obsoletes:      Mesa-devel
87 Obsoletes:      XFree86-OpenGL-devel
88
89 %description devel
90 Mesa is an OpenGL 1.2 compatible 3D graphics library. This package
91 contains the header files needed to compile Mesa programs.
92
93 %description devel -l pl
94 Mesa jest bibliotek± 3D zgodn± z OpenGL 1.2. Ten pakiet zawiera pliki
95 nag³ówkowe potrzebne do kompilowania programów u¿ywaj±cych Mesy.
96
97 %prep
98 %setup -q -n Mesa-%{mesaversion} -b1 -a2
99 [ -d glx-xf4 ] && ln -s glx-xf4 glx;
100
101 perl -pi -e "s/-O3/%{rpmcflags}/" Make-config
102
103 %build
104 RPM_OPT_FLAGS="%{rpmcflags}"; export RPM_OPT_FLAGS
105 %ifarch i386 i486
106 CFLAGS="%{rpmcflags}" CXXFLAGS="%{rpmcflags}" \
107 ./configure \
108         --prefix=%{_prefix} \
109         --sysconfdir=%{_sysconfdir} \
110         --disable-mmx \
111         --disable-3dnow \
112         --without-ggi \
113         --enable-mga=no \
114         --enable-mach64=no \
115         --enable-tnt=yes \
116         --enable-i810=no \
117         --enable-s3virge=no \
118         --enable-s3savage=no \
119         --enable-sis6326=no
120
121 %endif
122 %ifarch i586 i686 k6 athlon
123 CFLAGS="%{rpmcflags}" CXXFLAGS="%{rpmcflags}" \
124 ./configure \
125         --prefix=%{_prefix} \
126         --sysconfdir=%{_sysconfdir} \
127         --with-glide=/usr \
128         --without-ggi \
129         --enable-mga=no \
130         --enable-mach64=no \
131         --enable-tnt=yes \
132         --enable-i810=no \
133         --enable-s3virge=no \
134         --enable-s3savage=no \
135         --enable-sis6326=no
136 %endif
137 %ifnarch %{ix86}
138 ./configure \
139         --prefix=%{_prefix} \
140         --sysconfdir=%{_sysconfdir} \
141         --disable-3dnow \
142         --without-ggi \
143         --enable-mga=no \
144         --enable-mach64=no \
145         --enable-tnt=yes \
146         --enable-i810=no \
147         --enable-s3virge=no \
148         --enable-s3savage=no \
149         --enable-sis6326=no
150 %endif
151
152 %{__make}
153
154 %ifarch alpha sparc sparc64 ppc # Skip utah_glx for alpha - (fg) also skip it for
155                                 # sparc - (jb) also added skip for ppc
156         echo 'utah_glx skipped for alpha, powerpc and sparcs'
157 %else
158 cd glx
159 cp -fv ../config.sub .
160
161 CFLAGS="%{rpmcflags}" \
162 ./autogen.sh \
163         --with-chipset=both \
164         --with-mesa=../ \
165         --enable-extra \
166         --disable-mtrr \
167         --disable-agp \
168         --disable-glut \
169         --disable-GLU \
170         --prefix=%{_prefix} \
171         --sysconfdir=%{_sysconfdir} \
172         --without-x86-asm \
173         --without-mmx-asm \
174         --without-3dnow-asm \
175         --enable-mga=no \
176         --enable-mach64=no \
177         --enable-tnt=yes \
178         --enable-i810=no \
179         --enable-s3virge=no \
180         --enable-s3savage=no \
181         --enable-sis6326=no
182
183 # Arg docs sux ((Dadou) "are not OK", it's better ;)
184 cd docs
185 cat <<EOF > config.cache
186 ac_cv_path_install=${ac_cv_path_install='/usr/bin/install -c'}
187 ac_cv_prog_CP=${ac_cv_prog_CP='cp -f'}
188 ac_cv_prog_LN_S=${ac_cv_prog_LN_S='ln -s'}
189 ac_cv_prog_MKDIR=${ac_cv_prog_MKDIR='mkdir -p'}
190 ac_cv_prog_MV=${ac_cv_prog_MV='mv -f'}
191 ac_cv_prog_RM=${ac_cv_prog_RM='rm -f'}
192 ac_cv_prog_have_dvips=${ac_cv_prog_have_dvips=no}
193 ac_cv_prog_have_jade=${ac_cv_prog_have_jade=no}
194 ac_cv_prog_have_jadetex=${ac_cv_prog_have_jadetex=no}
195 ac_cv_prog_have_lynx=${ac_cv_prog_have_lynx=no}
196 ac_cv_prog_have_ps2pdf=${ac_cv_prog_have_ps2pdf=no}
197 ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
198 EOF
199
200 ./configure \
201         --enable-text \
202         --enable-html \
203         --enable-ps \
204         --enable-pdf
205 cd ..
206
207 %{__make}
208 cd ..
209 %endif # Skip glx for Alpha
210
211 %install
212 rm -rf $RPM_BUILD_ROOT
213 install -d $RPM_BUILD_ROOT{%{_includedir}/GL,%{_sysconfdir},/usr/bin} \
214         $RPM_BUILD_ROOT%{_libdir}/modules
215
216 %{__make} install \
217         DESTDIR=$RPM_BUILD_ROOT
218
219 install include/GL/svgamesa.h $RPM_BUILD_ROOT%{_includedir}/GL
220 install glx/servGL/libglx.so $RPM_BUILD_ROOT%{_libdir}/modules
221
222 %ifarch alpha sparc sparc64 ppc
223 echo 'Skipping utah_glx'
224 %else
225 cat > $RPM_BUILD_ROOT/usr/bin/glx <<EOF
226 #!/bin/sh
227 LD_PRELOAD=%{_prefix}/lib/libGL.so.1.0 "\$@"
228 EOF
229
230 ## glx
231 cd glx
232 %{__make} install \
233         DESTDIR=$RPM_BUILD_ROOT \
234         sysconfdir=%{_sysconfdir}
235 cd ..
236 %endif # glx
237
238 cd $RPM_BUILD_ROOT%{_prefix}/lib
239 ln -sf libGL.so.1 libGL.so
240 ln -sf libGLU.so.1 libGLU.so
241 ln -sf libGLU.so.1 libGLU.so.3
242 ln -sf libglut.so.3 libglut.so
243
244 # (gc) add Mesa symlinks for compatibility
245 ln -sf libGL.so libMesaGL.so
246 ln -sf libGL.so.1 libMesaGL.so.1
247 ln -sf libGL.so.1.0 libMesaGL.so.1.0
248 ln -sf libGLU.so libMesaGLU.so
249 ln -sf libGLU.so.1 libMesaGLU.so.1
250
251 %clean
252 rm -rf $RPM_BUILD_ROOT
253
254 %post   -p /sbin/ldconfig
255 %postun -p /sbin/ldconfig
256
257 %files
258 %defattr(644,root,root,755)
259 %doc docs/{COPYRIGHT,README*,DEVINFO,CONFORM,VERSIONS} glx/docs/README.*
260 %attr(755,root,root) /usr/bin/glx
261 %{_libdir}/*.so.*
262 %config %{_sysconfdir}/mesa.conf
263 %ifarch %{ix86}
264 %{_prefix}/lib/modules/extensions/*.so
265 %config %{_sysconfdir}/glx.conf
266 %endif
267
268 %files devel
269 %defattr(644,root,root,755)
270 %dir %{_includedir}/GL
271 %{_includedir}/GL/gl*.h
272 %{_includedir}/GL/o*.h
273 %{_includedir}/GL/x*.h
274 %ifarch %{ix86}
275 %{_includedir}/GL/svgamesa.h
276 %endif
277 %{_prefix}/lib/lib*.so
278 %{_prefix}/lib/lib*.la
This page took 1.493605 seconds and 3 git commands to generate.