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