]> git.pld-linux.org Git - packages/Mesa.git/blob - Mesa.spec
*** empty log message ***
[packages/Mesa.git] / Mesa.spec
1 Summary:   Free OpenGL implementation. Runtime environment
2 Summary(pl): Bezp³atna implementacja standardu OpenGL
3 Name:      Mesa
4 Version:   3.0
5 Release:   2
6 Copyright: GPL
7 Group:     X11/Libraries
8 Group(pl): X11/Biblioteki
9 Source0:   ftp://iris.ssec.wisc.edu/pub/Mesa/%{name}Lib-%{version}.tar.gz
10 Source1:   ftp://iris.ssec.wisc.edu/pub/Mesa/%{name}Demos-%{version}.tar.gz
11 URL:       http://www.ssec.wisc.edu/~brianp/Mesa.html
12 BuildRoot: /tmp/%{name}-%{version}-root
13 Patch:     Mesa-3.0-misc.diff
14 Prefix:    /usr/X11R6
15
16 %description
17 Mesa is a 3-D graphics library with an API which is very similar to that
18 of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
19 or state machine, it is being used with authorization from Silicon Graphics,
20 Inc.  However, the author makes no claim that Mesa is in any way a
21 compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
22 Those who want a licensed implementation of OpenGL should contact a licensed
23 vendor.  This software is distributed under the terms of the GNU Library
24 General Public License, see the LICENSE file for details.
25
26 * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
27
28 %description -l pl
29 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standartu OpenGL(*).
30 * OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics, Inc.
31
32 %package devel
33 Summary:   Development environment for Mesa
34 Summary(pl): ¦rodowisko programistyczne biblioteki MESA
35 Requires:  Mesa = %{version}
36 Group:     Development/Libraries
37 Group(pl): Programowanie/Biblioteki
38
39 %description devel
40 The static version of the Mesa libraries and include files needed for
41 development.
42
43 %description -l pl devel
44 Wersja biblioteki MESA linkowana statycznie wraz z plikami nag³ówkowymi.
45
46 %package glut
47 Summary:   GLUT library for Mesa
48 Summary(pl): Biblioteka GLUT dla Mesy
49 Group:     X11/Libraries
50 Group(pl): X11/Biblioteki
51 Requires:  Mesa = %{version}
52 Obsoletes: glut
53
54 %description glut
55 The GLUT library.
56
57 %description -l pl glut
58 Biblioteka GLUT
59
60 %package glut-devel
61 Summary:   GLUT Development environment for Mesa
62 Summary(pl): ¦rodowisko programistyczne 'GLUT' dla biblioteki MESA.
63 Group:     Development/Libraries
64 Group(pl): Programowanie/Biblioteki
65 Requires:  Mesa = %{version}
66 Obsoletes: glut-devel
67
68 %description glut-devel
69 The static version of the GLUT library and include files needed for
70 development.
71
72 %description -l pl glut-devel
73 Statycznie linkowana wersja biblioteki GLUT wraz z plikami naglowkowymi
74 potrzebnymi do pisania programow.
75
76 %package demos
77 Summary:   Mesa Demos
78 Summary(pl): Demonstrace mo¿liwo¶ci biblioteki MESA.
79 Group:     Development/Libraries
80 Group(pl): Programowanie/Biblioteki
81
82 %description demos
83 Demonstration programs for the Mesa libraries.
84
85 %description -l pl demos
86 Programy demonstracyjne dla biblioteki Mesa.
87
88 %prep
89 %setup -q -n Mesa-%{version} -b 1
90 %patch -p1
91
92 %build
93 %ifarch alpha
94 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LIBS_ONLY=YES linux-alpha
95 make clean
96 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-alpha-elf
97 %endif
98
99 %ifarch ppc
100 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-ppc
101 %endif
102
103 %ifarch i386
104 make clean
105 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LIBS_ONLY=YES linux-386
106 make clean
107 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-386-elf
108 %endif
109
110 %ifarch sparc sparc64
111 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-elf
112 %endif
113
114 (cd widgets-mesa; CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr/X11R6/; make )
115
116 %install
117 rm -fr $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT/usr/X11R6/{lib/Mesa,include,man/man3}
119
120 cp -dpr lib include $RPM_BUILD_ROOT/usr/X11R6
121 cp -dpr book demos xdemos samples util $RPM_BUILD_ROOT/usr/X11R6/lib/Mesa
122 install Make-config $RPM_BUILD_ROOT/usr/X11R6/lib/Mesa
123
124 (cd widgets-mesa; make prefix=$RPM_BUILD_ROOT/usr/X11R6 install )
125
126 install */lib*.a $RPM_BUILD_ROOT/usr/X11R6/lib
127
128 strip $RPM_BUILD_ROOT/usr/X11R6/lib/{lib*so.*.*,Mesa/*/*} ||
129
130 cd $RPM_BUILD_ROOT/usr/X11R6/man/man3
131 gzip -9 *
132
133 %clean
134 rm -fr $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name-%version
135
136 %post   -p /sbin/ldconfig
137
138 %postun -p /sbin/ldconfig
139
140 %files
141 %defattr(644, root, root, 755)
142 %doc FUTURE IAFA-PACKAGE LICENSE README* RELNOTES VERSIONS
143
144 %ifnarch ppc
145 /usr/X11R6/lib/libMesa*.so.*.*
146 %else
147 /usr/X11R6/lib/libMesa*.a
148 %endif
149
150 %files glut
151 %defattr(644, root, root, 755)
152 %ifnarch ppc
153 /usr/X11R6/lib/libglut.so.*
154 %else
155 /usr/X11R6/lib/libglut.a
156 %endif
157
158 %files glut-devel
159 %defattr(644, root, root, 755)
160 %ifnarch ppc
161 /usr/X11R6/lib/libglut.so
162 /usr/X11R6/lib/libglut.a
163 %endif
164 /usr/X11R6/include/GL/glut.h
165
166 %files devel
167 %defattr(644, root, root, 755)
168 %ifnarch ppc
169 /usr/X11R6/lib/libMesa*.so
170 /usr/X11R6/lib/libMesa*.a
171 %endif
172
173 %dir /usr/X11R6/lib/Mesa
174 /usr/X11R6/lib/Mesa/Make-config
175 %dir /usr/X11R6/lib/Mesa/util
176 /usr/X11R6/lib/Mesa/util/*
177
178 %dir /usr/X11R6/include/GL
179 /usr/X11R6/include/GL/*.h
180 %attr(644, root, man) /usr/X11R6/man/man3/*.gz
181
182 %files demos
183 %defattr(644, root, root, 755)
184 %dir /usr/X11R6/lib/Mesa/book
185 %dir /usr/X11R6/lib/Mesa/demos
186 %dir /usr/X11R6/lib/Mesa/samples
187 %dir /usr/X11R6/lib/Mesa/xdemos
188
189 %attr(-, root, root)/usr/X11R6/lib/Mesa/book/*
190 %attr(-, root, root)/usr/X11R6/lib/Mesa/demos/*
191 %attr(-, root, root)/usr/X11R6/lib/Mesa/samples/*
192 %attr(-, root, root)/usr/X11R6/lib/Mesa/xdemos/*
193
194 %changelog
195 * Sat Jan 23 1999 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
196 - gzipped man page.
197
198 * Thu Jan 12 1999 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
199 - fixing library location.
200
201 * Thu Oct  1 1998 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
202 - fixing access permision.
203
204 * Wed Sep 30 1998 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
205 - updated to Mesa 3.0.
206
207 * Thu Aug 27 1998 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
208 - updated to Mesa 3.0 beta 8.
209
210 * Mon Aug  3 1998 Wojciech "Sas" Cieciwa <cieciwa@alpha.zarz.agh.edu.pl>
211 - uptated to Mesa 3.0 beta 7.
212
213 * Thu Jul 23 1998 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
214 - updated to Mesa 3.0 Beta 6.
215
216 * Wed May  5 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
217 - removed declarate %%{version}, %%{name}, %%{release} macros because
218   all are predefined,
219 - removed check $RPM_BUILD_ROOT in %clean and %install,
220 - added "Requires: Mesa = %%{version}" for all subpackages (for
221   keeping corectly dependences),
222 - in Mesa-glut* packages changed "Conflict:" to "Obsoletes:",
223 - added striping shared libs and demos,
224 - added modification in %build wihch allow build Mesa on sparc[64]
225   architecture,
226 - all utils and demos instaled in /usr/lib/Mesa,
227 - added %defattr macros in %files (on rebuild require rpm >= 2.4.99),
228 - added -q %setup parameter.
229
230 * Thu Feb 12 1998 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
231 - updated to final version 2.6
232
233 * Thu Feb 05 1998 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
234 - Fixed thinko in misc patch
235 - build against glibc
236
237 * Sat Jan 31 1998 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
238 - updated to version 2.6beta5
239 - added widget-mesa to the things to be build.
240
241 * Mon Jan 26 1998 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
242 - updated to version 2.6beta4
243
244 * Sun Dec 14 1997 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
245 - updated to version 2.6beta1
246
247 * Sat Dec 13 1997 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
248 - Moved GLUT into a separate subpackage and added an Obsoletes tag to this
249   subpackage
250 - Moved lib*.so to the devel package, they are only needed for development,
251   not for a runtime environment.
252
253 * Sat Nov 29 1997 Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
254 - added patches from ftp://iris.ssec.wisc.edu/pub/Mesa/patches_to_2.5
255 - BuildRoot'ed
256 - Prefix'ed
257 - added static versions of the libraries. (PPC version seems not to have
258   support for shared versions of the library)
259 - moved static versions of the library and the includes to the new subpackage
260   'devel'
261 - targets other than linux-x86 still untested.
262 - added Conflitcs tag
263 - added %postun
264 - added patch for RPM_OPT_FLAGS support
265
266 * Fri Nov 21 1997 Karsten Weiss <karsten@addx.au.s.shuttle.de>
267 - Upgraded to Mesa 2.5
268 - Multiarch destinations (untested).
269 - Included GLUT.
270 - Removed some of the READMEs for other platforms from the binary RPM.
This page took 0.097637 seconds and 4 git commands to generate.