]> git.pld-linux.org Git - packages/XFree86-glx.git/blob - XFree86-glx.spec
- updated URLs, added md5
[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.sf.net/mesa3d/MesaLib-%{mesaversion}.tar.bz2
13 # Source0-md5:  dcd5a6aa77b3bdb400c8179419473e58
14 Source1:        http://dl.sf.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 Conflicts:      XFree86 =< 4.1.0
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Provides:       OpenGL
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 -p -i -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     --prefix=%{_prefix} \
108                 --sysconfdir=%{_sysconfdir} \
109                 --disable-mmx \
110                 --disable-3dnow \
111                 --without-ggi \
112                 --enable-mga=no \
113                 --enable-mach64=no \
114                 --enable-tnt=yes \
115                 --enable-i810=no \
116                 --enable-s3virge=no \
117                 --enable-s3savage=no \
118                 --enable-sis6326=no
119
120 %endif
121 %ifarch i586 i686 k6 athlon
122 CFLAGS="%{rpmcflags}" CXXFLAGS="%{rpmcflags}" \
123 ./configure     --prefix=%{_prefix} \
124                 --sysconfdir=%{_sysconfdir} \
125                 --with-glide=/usr \
126                 --without-ggi \
127                 --enable-mga=no \
128                 --enable-mach64=no \
129                 --enable-tnt=yes \
130                 --enable-i810=no \
131                 --enable-s3virge=no \
132                 --enable-s3savage=no \
133                 --enable-sis6326=no
134 %endif
135 %ifnarch %{ix86}
136 ./configure     --prefix=%{_prefix} \
137                 --sysconfdir=%{_sysconfdir} \
138                 --disable-3dnow \
139                 --without-ggi \
140                 --enable-mga=no \
141                 --enable-mach64=no \
142                 --enable-tnt=yes \
143                 --enable-i810=no \
144                 --enable-s3virge=no \
145                 --enable-s3savage=no \
146                 --enable-sis6326=no
147 %endif
148
149 %{__make}
150
151 %ifarch alpha sparc sparc64 ppc # Skip utah_glx for alpha - (fg) also skip it for
152                                 # sparc - (jb) also added skip for ppc
153         echo 'utah_glx skipped for alpha, powerpc and sparcs'
154 %else
155 cd glx
156 cp -fv ../config.sub ./
157
158 CFLAGS="%{rpmcflags}" \
159         ./autogen.sh    --with-chipset=both \
160                         --with-mesa=../ \
161                         --enable-extra \
162                         --disable-mtrr \
163                         --disable-agp \
164                         --disable-glut \
165                         --disable-GLU \
166                         --prefix=%{_prefix} \
167                         --sysconfdir=%{_sysconfdir} \
168                         --without-x86-asm \
169                         --without-mmx-asm \
170                         --without-3dnow-asm \
171                         --enable-mga=no \
172                         --enable-mach64=no \
173                         --enable-tnt=yes \
174                         --enable-i810=no \
175                         --enable-s3virge=no \
176                         --enable-s3savage=no \
177                         --enable-sis6326=no
178
179 # Arg docs sux ((Dadou) "are not OK", it's better ;)
180 cd docs
181 cat <<EOF > config.cache
182 ac_cv_path_install=${ac_cv_path_install='/usr/bin/install -c'}
183 ac_cv_prog_CP=${ac_cv_prog_CP='cp -f'}
184 ac_cv_prog_LN_S=${ac_cv_prog_LN_S='ln -s'}
185 ac_cv_prog_MKDIR=${ac_cv_prog_MKDIR='mkdir -p'}
186 ac_cv_prog_MV=${ac_cv_prog_MV='mv -f'}
187 ac_cv_prog_RM=${ac_cv_prog_RM='rm -f'}
188 ac_cv_prog_have_dvips=${ac_cv_prog_have_dvips=no}
189 ac_cv_prog_have_jade=${ac_cv_prog_have_jade=no}
190 ac_cv_prog_have_jadetex=${ac_cv_prog_have_jadetex=no}
191 ac_cv_prog_have_lynx=${ac_cv_prog_have_lynx=no}
192 ac_cv_prog_have_ps2pdf=${ac_cv_prog_have_ps2pdf=no}
193 ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
194 EOF
195
196 ./configure     --enable-text \
197                 --enable-html \
198                 --enable-ps \
199                 --enable-pdf
200 cd ..
201
202 %{__make}
203 cd ..
204 %endif # Skip glx for Alpha
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT{%{_includedir}/GL,%{_sysconfdir},/usr/bin}
209 install -d $RPM_BUILD_ROOT%{_libdir}/modules
210
211 %{__make} DESTDIR=$RPM_BUILD_ROOT install
212 install include/GL/svgamesa.h $RPM_BUILD_ROOT%{_includedir}/GL
213 install glx/servGL/libglx.so $RPM_BUILD_ROOT%{_libdir}/modules
214
215 %ifarch alpha sparc sparc64 ppc
216 echo 'Skipping utah_glx'
217 %else
218 cat > $RPM_BUILD_ROOT/usr/bin/glx <<EOF
219 #!/bin/sh
220 LD_PRELOAD=%{_prefix}/lib/libGL.so.1.0 "\$@"
221 EOF
222
223 ## glx
224 cd glx
225 %{__make} DESTDIR=$RPM_BUILD_ROOT sysconfdir=%{_sysconfdir} install
226 cd ..
227 %endif # glx
228
229 cd $RPM_BUILD_ROOT/%{_prefix}/lib/
230 ln -sf libGL.so.1 libGL.so
231 ln -sf libGLU.so.1 libGLU.so
232 ln -sf libGLU.so.1 libGLU.so.3
233 ln -sf libglut.so.3 libglut.so
234
235 # (gc) add Mesa symlinks for compatibility
236 ln -sf libGL.so libMesaGL.so
237 ln -sf libGL.so.1 libMesaGL.so.1
238 ln -sf libGL.so.1.0 libMesaGL.so.1.0
239 ln -sf libGLU.so libMesaGLU.so
240 ln -sf libGLU.so.1 libMesaGLU.so.1
241
242 %clean
243 rm -rf $RPM_BUILD_ROOT
244
245 %post   -p /sbin/ldconfig
246 %postun -p /sbin/ldconfig
247
248 %files
249 %defattr(644,root,root,755)
250 %doc docs/{COPYRIGHT,README*,COPYING,DEVINFO,CONFORM,VERSIONS} glx/docs/README.*
251 %attr(755,root,root) /usr/bin/glx
252 %{_libdir}/*.so.*
253 %config %{_sysconfdir}/mesa.conf
254 %ifarch %{ix86}
255 %{_prefix}/lib/modules/extensions/*.so
256 %config %{_sysconfdir}/glx.conf
257 %endif
258
259 %files devel
260 %defattr(644,root,root,755)
261 %dir %{_includedir}/GL
262 %{_includedir}/GL/gl*.h
263 %{_includedir}/GL/o*.h
264 %{_includedir}/GL/x*.h
265 %ifarch %{ix86}
266 %{_includedir}/GL/svgamesa.h
267 %endif
268 %{_prefix}/lib/lib*.so
269 %{_prefix}/lib/lib*.la
This page took 0.102147 seconds and 4 git commands to generate.