]> git.pld-linux.org Git - packages/Mesa.git/blob - Mesa.spec
- Merge From DEVEL: updated to 4.0.1
[packages/Mesa.git] / Mesa.spec
1 #
2 # _with_glide: with GLIDE
3 #
4 Summary:        Free OpenGL implementation
5 Summary(pl):    Bezp³atna implementacja standardu OpenGL
6 Name:           Mesa
7 Version:        4.0.1
8 Release:        1
9 License:        MIT (core), LGPL (MesaGLU), SGI (GLU,libGLw) and others - see COPYRIGHT file
10 Group:          X11/Libraries
11 Group(de):      X11/Libraries
12 Group(es):      X11/Bibliotecas
13 Group(fr):      X11/Librairies
14 Group(pl):      X11/Biblioteki
15 Group(pt_BR):   X11/Bibliotecas
16 Group(ru):      X11/âÉÂÌÉÏÔÅËÉ
17 Group(uk):      X11/â¦Â̦ÏÔÅËÉ
18 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Lib-%{version}.tar.bz2
19 Source1:        ftp://ftp.sourceforge.net/pub/sourceforge/mesa3d/%{name}Demos-%{version}.tar.bz2
20 Patch0:         %{name}-am.patch
21 Patch1:         %{name}-ac.patch
22 Patch2:         %{name}-paths.patch
23 Patch3:         %{name}-libGLw.patch
24 URL:            http://www.mesa3d.org/
25 BuildRequires:  XFree86-devel
26 BuildRequires:  autoconf
27 BuildRequires:  motif-devel
28 BuildRequires:  perl
29 %ifarch %{ix86} alpha
30 %{?_with_glide:BuildRequires:   Glide3-DRI-devel}
31 %{?_with_glide:Requires:        Glide3-DRI}
32 %endif
33 Provides:       OpenGL
34 Obsoletes:      XFree86-OpenGL-core XFree86-OpenGL-libs
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 # avoid XFree86-OpenGL* dependency
38 # Glide3 can be provided by Glide_V3-DRI or Glide_V5-DRI
39 %define         _noautoreqdep   libGL.so.1 libGLU.so.1 libOSMesa.so.4   libglide3.so.3
40
41 %define         _prefix         /usr/X11R6
42 %define         _mandir         %{_prefix}/man
43
44 %description
45 Mesa is a 3-D graphics library with an API which is very similar to
46 that of OpenGL*. To the extent that Mesa utilizes the OpenGL command
47 syntax or state machine, it is being used with authorization from
48 Silicon Graphics, Inc. However, the author makes no claim that Mesa is
49 in any way a compatible replacement for OpenGL or associated with
50 Silicon Graphics, Inc. Those who want a licensed implementation of
51 OpenGL should contact a licensed vendor. This software is distributed
52 under the terms of the GNU Library General Public License, see the
53 LICENSE file for details.
54
55 - OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
56
57 %description -l pl
58 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standardu
59 OpenGL(*).
60
61 - OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics,
62   Inc.
63
64 %package devel
65 Summary:        Development environment for Mesa
66 Summary(pl):    ¦rodowisko programistyczne biblioteki Mesa
67 Group:          Development/Libraries
68 Group(de):      Entwicklung/Libraries
69 Group(es):      Desarrollo/Bibliotecas
70 Group(fr):      Development/Librairies
71 Group(pl):      Programowanie/Biblioteki
72 Group(pt_BR):   Desenvolvimento/Bibliotecas
73 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
74 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
75 Requires:       %{name} = %{version}
76 Requires:       XFree86-devel
77 Provides:       OpenGL-devel
78 Obsoletes:      XFree86-OpenGL-devel
79
80 %description devel
81 Header files and documentation needed for development.
82
83 %description devel -l pl
84 Pliki nag³ówkowe i dokumentacja do Mesy.
85
86 %package static
87 Summary:        Mesa static libraries
88 Summary(pl):    Biblioteki statyczne Mesy
89 Group:          Development/Libraries
90 Group(de):      Entwicklung/Libraries
91 Group(es):      Desarrollo/Bibliotecas
92 Group(fr):      Development/Librairies
93 Group(pl):      Programowanie/Biblioteki
94 Group(pt_BR):   Desenvolvimento/Bibliotecas
95 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
96 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
97 Requires:       %{name}-devel = %{version}
98 Provides:       OpenGL-static
99 Obsoletes:      XFree86-OpenGL-static
100
101 %description static
102 The static version of the Mesa libraries.
103
104 %description static -l pl
105 Biblioteki statyczne Mesy.
106
107 %package demos
108 Summary:        Mesa Demos
109 Summary(pl):    Demonstracje mo¿liwo¶ci bibliotek Mesa
110 Group:          Development/Libraries
111 Group(de):      Entwicklung/Libraries
112 Group(es):      Desarrollo/Bibliotecas
113 Group(fr):      Development/Librairies
114 Group(pl):      Programowanie/Biblioteki
115 Group(pt_BR):   Desenvolvimento/Bibliotecas
116 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
117 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
118 Requires:       OpenGL-devel
119
120 %description demos
121 Demonstration programs for the Mesa libraries.
122
123 %description demos -l pl
124 Programy demonstracyjne dla bibliotek Mesa.
125
126 %prep
127 %setup -q -n Mesa-%{version} -b 1
128 %patch0 -p1
129 %patch1 -p1
130 %patch2 -p1
131 %patch3 -p1
132
133 # fix demos
134 perl -pi -e "s,\.\./images/,%{_examplesdir}/Mesa/images/,g" demos/*
135
136 %build
137 %configure \
138         --enable-static \
139         --enable-shared \
140         --with-ggi="no" \
141         --with-svga="no" \
142         --disable-ggi-fbdev \
143         --disable-ggi-genkgi \
144         --enable-optimize \
145         %{!?_with_glide:--without-glide} \
146 %ifarch %{ix86} \
147         --enable-x86 \
148   %ifarch i586 i686 k6 athlon \
149         --enable-mmx \
150         --enable-3dnow \
151     %ifarch i686 athlon \
152         --enable-katmai \
153     %else \
154         --disable-katmai \
155     %endif \
156   %else \
157         --disable-mmx \
158         --disable-3dnow \
159   %endif \
160 %else \
161 %ifarch sparc \
162         --enable-sparc \
163 %endif \
164         --disable-x86 \
165         --disable-mmx \
166         --disable-3dnow
167 %endif
168
169 %{__make}
170         
171 (cd widgets-mesa
172 autoconf
173 %configure \
174         --with-motif
175 %{__make} || :
176 )
177
178 (cd widgets-sgi
179 touch depend
180 %{__make} dep
181 %{__make} linux OPTFLAGS="%{rpmcflags}"
182 )
183
184 %install
185 rm -rf $RPM_BUILD_ROOT
186 %{__make} install DESTDIR=$RPM_BUILD_ROOT
187
188 install -d $RPM_BUILD_ROOT%{_mandir}/man3
189
190 (cd widgets-mesa
191 %{__make} install \
192         prefix=$RPM_BUILD_ROOT%{_prefix} \
193         mandir=$RPM_BUILD_ROOT%{_mandir}/man3
194 # Mesa widgets are not binary compatible with SGI ones
195 cd $RPM_BUILD_ROOT%{_includedir}/GL
196 mkdir Mesa-widgets
197 mv -f GLw*.h Mesa*.h Mesa-widgets
198 )
199
200 install widgets-sgi/libGLw* $RPM_BUILD_ROOT%{_libdir}
201 install widgets-sgi/GLw*.h $RPM_BUILD_ROOT%{_includedir}/GL
202
203 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
204 for l in book demos samples xdemos images ; do
205         cp -Rf $l $RPM_BUILD_ROOT%{_examplesdir}/Mesa/$l
206 done
207
208 rm -f docs/*~
209 gzip -9nf docs/*
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post   -p /sbin/ldconfig
215 %postun -p /sbin/ldconfig
216
217 %files
218 %defattr(644,root,root,755)
219 %doc docs/CONFIG.gz
220 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mesa.conf
221 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
222 %attr(755,root,root) %{_libdir}/libOSMesa.so.*.*
223
224 %files devel
225 %defattr(644,root,root,755)
226 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
227 %doc docs/README.{3DFX,GGI,MITS,QUAKE,X11,THREADS}.gz
228 %attr(755,root,root) %{_libdir}/libGL*.so
229 %attr(755,root,root) %{_libdir}/libOSMesa.so
230 %{_libdir}/libGLw.a
231 %{_libdir}/libMesaGLw*.a
232 %dir %{_includedir}/GL
233 %{_includedir}/GL/Mesa-widgets
234 %{_includedir}/GL/GLwDrawA.h
235 %{_includedir}/GL/GLwDrawAP.h
236 %{_includedir}/GL/GLwMDrawA.h
237 %{_includedir}/GL/GLwMDrawAP.h
238 %{_includedir}/GL/gl.h
239 %{_includedir}/GL/glext.h
240 %{_includedir}/GL/gl_mangle.h
241 %{_includedir}/GL/glu.h
242 %{_includedir}/GL/glu_mangle.h
243 %{_includedir}/GL/glx.h
244 %{_includedir}/GL/glxext.h
245 %{_includedir}/GL/glx_mangle.h
246 %{_includedir}/GL/osmesa.h
247 %{_includedir}/GL/xmesa.h
248 %{_includedir}/GL/xmesa_x.h
249 %{_includedir}/GL/xmesa_xf86.h
250 %{_mandir}/man3/*
251
252 %files static
253 %defattr(644,root,root,755)
254 %{_libdir}/libGL.a
255 %{_libdir}/libGLU.a
256 %{_libdir}/libOSMesa.a
257
258 %files demos
259 %defattr(644,root,root,755)
260 %dir %{_examplesdir}/Mesa
261 %dir %{_examplesdir}/Mesa/book
262 %dir %{_examplesdir}/Mesa/demos
263 %dir %{_examplesdir}/Mesa/samples
264 %dir %{_examplesdir}/Mesa/xdemos
265
266 %doc %{_examplesdir}/Mesa/book/*
267 %doc %{_examplesdir}/Mesa/demos/*
268 %doc %{_examplesdir}/Mesa/samples/*
269 %doc %{_examplesdir}/Mesa/xdemos/*
This page took 0.048557 seconds and 4 git commands to generate.