]> git.pld-linux.org Git - packages/Mesa.git/blob - Mesa.spec
- Mesa-libname patch removed (nod needed any more)
[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.2
5 Release:        1
6 License:        GPL
7 Group:          X11/Libraries
8 Group(pl):      X11/Biblioteki
9 Source0:        ftp://ftp.mesa3d.org/mesa/%{name}Lib-%{version}.tar.bz2
10 Source1:        ftp://ftp.mesa3d.org/mesa/%{name}Demos-%{version}.tar.bz2
11 Patch0:         Mesa-paths.patch
12 URL:            http://www.mesa3d.org/
13 BuildRequires:  XFree86-devel
14 Provides:       OpenGL
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _prefix         /usr/X11R6
18 %define         _mandir         %{_prefix}/man
19
20 %description
21 Mesa is a 3-D graphics library with an API which is very similar to that of
22 OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax or
23 state machine, it is being used with authorization from Silicon Graphics,
24 Inc. However, the author makes no claim that Mesa is in any way a
25 compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
26 Those who want a licensed implementation of OpenGL should contact a
27 licensed vendor. This software is distributed under the terms of the GNU
28 Library General Public License, see the LICENSE file for details.
29
30 * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
31
32 %description -l pl
33 Mesa jest bibliotek± 3D bêd±c± darmowym odpowiednikiem standartu OpenGL(*).
34
35 * OpenGL jest zastrze¿onym znakiem towarowym firmy Silicon Graphics, Inc.
36
37 %package devel
38 Summary:        Development environment for Mesa
39 Summary(pl):    ¦rodowisko programistyczne biblioteki Mesa
40 Group:          Development/Libraries
41 Group(pl):      Programowanie/Biblioteki
42 Requires:       %{name} = %{version}
43 Provides:       OpenGL-devel
44
45 %description devel
46 Header files and documentation needed for development.
47
48 %description -l pl devel
49 Pliki nag³ówkowe i dokumentacja do Mesy.
50
51 %package static
52 Summary:        Mesa static libraries
53 Summary(pl):    Biblioteki statyczne Mesy
54 Group:          Development/Libraries
55 Group(pl):      Programowanie/Biblioteki
56 Requires:       %{name}-devel = %{version}
57 Provides:       OpenGL-static
58
59 %description static
60 The static version of the Mesa libraries
61
62 %description -l pl static
63 Biblioteki statyczne Mesy.
64
65 %package demos
66 Summary:        Mesa Demos
67 Summary(pl):    Demonstracje mo¿liwo¶ci biblioteki MESA.
68 Group:          Development/Libraries
69 Group(pl):      Programowanie/Biblioteki
70 Requires:       %{name} = %{version}
71
72 %description demos
73 Demonstration programs for the Mesa libraries.
74
75 %description -l pl demos
76 Programy demonstracyjne dla biblioteki Mesa.
77
78 %prep
79 %setup -q -n Mesa-%{version} -b 1
80 %patch0 -p1
81
82 %build
83 LDFLAGS="-s"; export LDFLAGS
84 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
85 %configure \
86         --enable-static \
87         --enable-shared \
88         --with-ggi="no" \
89         --with-svga="no" \
90         --disable-ggi-fbdev \
91         --disable-ggi-genkgi \
92 %ifarch %{ix86} \
93         --enable-x86 \
94   %ifarch i686 \
95         --enable-mmx \
96         --enable-3dnow \
97   %else \
98     %ifarch k6 \
99         --enable-mmx \
100         --enable-3dnow" \
101     %else \
102         --disable-mmx \
103         --disable-3dnow \
104     %endif \
105   %endif \
106 %else \
107         --disable-x86 \
108         --disable-mmx \
109         --diable-3dnow \
110 %endif
111         --host=%{_host}
112
113 make
114         
115 (cd widgets-mesa; autoconf; \
116 LDFLAGS="-s"; export LDFLAGS
117 %configure \
118         --host=%{_host}
119 make)
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123 make install DESTDIR=$RPM_BUILD_ROOT
124
125 install -d $RPM_BUILD_ROOT%{_mandir}/man3
126
127 (cd widgets-mesa; \
128 make install \
129         prefix=$RPM_BUILD_ROOT%{_prefix} \
130         mandir=$RPM_BUILD_ROOT%{_mandir}/man3)
131
132 install -d $RPM_BUILD_ROOT/usr/src/examples/Mesa
133 for l in book demos samples xdemos ; do
134         cp -R $l $RPM_BUILD_ROOT/usr/src/examples/Mesa/$l
135 done
136
137 gzip -9nf docs/* || :
138         
139 %post   -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
141
142 %clean
143 rm -fr $RPM_BUILD_ROOT
144
145 %files
146 %defattr(644,root,root,755)
147 %doc docs/CONFIG.gz
148 %attr(755,root,root) %{_libdir}/libGL*.so.*.*
149
150 %files devel
151 %defattr(644,root,root,755)
152 %doc docs/{IAFA-PACKAGE,README,RELNOTES-*,VERSIONS,CONFORM,COPYRIGHT,DEVINFO,*.spec}.gz
153 %doc docs/README.{3DFX,GGI,MGL,QUAKE,X11,THREADS}.gz
154 %attr(755,root,root) %{_libdir}/libGL*.so
155
156 %dir /usr/X11R6/include/GL
157 %{_includedir}/GL/*.h
158 %{_mandir}/man3/*
159
160 %files static
161 %defattr(644,root,root,755)
162 %{_libdir}/libGL*.a
163
164 %files demos
165 %defattr(644,root,root,755)
166 %dir /usr/src/examples/Mesa/book
167 %dir /usr/src/examples/Mesa/demos
168 %dir /usr/src/examples/Mesa/samples
169 %dir /usr/src/examples/Mesa/xdemos
170
171 %doc /usr/src/examples/Mesa/book/*
172 %doc /usr/src/examples/Mesa/demos/*
173 %doc /usr/src/examples/Mesa/samples/*
174 %doc /usr/src/examples/Mesa/xdemos/*
This page took 0.078858 seconds and 4 git commands to generate.