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