2 # - doesn't build with mozilla-1.8-0.a6.2, 1.7.6-2.2 is fine
3 # - includedir/openvrml/openvrml sees like a bug
5 Summary: VRML97 runtime library
6 Summary(pl.UTF-8): Biblioteka uruchomieniowa VRML97
12 Source0: http://dl.sourceforge.net/openvrml/%{name}-%{version}.tar.gz
13 # Source0-md5: a4134d658685be71596c620169221e6f
14 URL: http://www.openvrml.org/
15 BuildRequires: SDL-devel >= 1.2
16 BuildRequires: X11-devel >= 1:6.7
17 BuildRequires: boost-devel >= 1.35.0
18 BuildRequires: dejagnu >= 1.4
19 BuildRequires: fontconfig-devel >= 2.0
20 BuildRequires: freetype-devel >= 2.1.2
21 BuildRequires: gtk+2-devel >= 2.0.0
22 BuildRequires: libgcj-devel >= 5:3.3
23 BuildRequires: libjpeg-devel >= 6b
24 BuildRequires: libpng-devel >= 1.0.12
25 BuildRequires: mozilla-devel >= 5:1.7.6-2.2
26 BuildRequires: pkgconfig >= 0.12.0
27 BuildRequires: zlib-devel >= 1.1.3
28 Requires: fontconfig >= 2.0
29 Requires: freetype >= 2.1.2
30 Requires: libgcj >= 5:3.3
31 Requires: libjpeg >= 6b
32 Requires: libpng >= 1.0.12
33 Requires: mozilla >= 5:1.7.6
34 Requires: zlib >= 1.1.3
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 OpenVRML is a free cross-platform runtime for VRML available under the
39 GNU Lesser General Public License. The basic OpenVRML distribution
40 includes libraries you can use to add VRML support to an application,
41 and Lookat, a simple stand-alone VRML browser.
43 %description -l pl.UTF-8
44 OpenVRML to wolnodostępne, wieloplatformowe środowisko uruchomieniowe
45 dla VRML dostępne na licencji GNU LGPL. Podstawowa dystrybucja
46 OpenVRML zawiera biblioteki, które można używać w celu dodania do
47 aplikacji obsługi VRML oraz Lookat - prostą, samodzielną przeglądarkę
51 Summary: Headers for developing C++ programs with OpenVRML
52 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów w C++ z użyciem OpenVRML
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 Headers that programmers will need to develop C++ programs using
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe potrzebne programistom do tworzenia programów w C++
65 Summary: Static OpenVRML library
66 Summary(pl.UTF-8): Statyczna biblioteka OpenVRML
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static OpenVRML library.
73 %description static -l pl.UTF-8
74 Statyczna biblioteka OpenVRML.
77 Summary: OpenGL renderer for OpenVRML
78 Summary(pl.UTF-8): Renderer OpenGL dla OpenVRML
80 Requires: %{name} = %{version}-%{release}
81 Requires: X11-OpenGL-libs >= 1:6.7
84 OpenGL renderer for OpenVRML.
86 %description gl -l pl.UTF-8
87 Renderer OpenGL dla OpenVRML.
90 Summary: Header files for OpenVRML OpenGL renderer
91 Summary(pl.UTF-8): Pliki nagłówkowe dla renderera OpenGL dla OpenVRML
92 Group: X11/Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
94 Requires: %{name}-gl = %{version}-%{release}
95 Requires: X11-devel >= 1:6.7.0
98 Headers that programmers will need to develop C++ programs using the
99 OpenVRML OpenGL renderer.
101 %description gl-devel -l pl.UTF-8
102 Pliki nagłówkowe potrzebne programistom do tworzenia programów w C++
103 przy użyciu renderera OpenGL dla OpenVRML.
106 Summary: Static OpenVRML OpenGL renderer library
107 Summary(pl.UTF-8): Statyczna biblioteka renderera OpenGL dla OpenVRML
108 Group: Development/Libraries
109 Requires: %{name}-gl-devel = %{version}-%{release}
111 %description gl-static
112 Static OpenVRML OpenGL renderer library.
114 %description gl-static -l pl.UTF-8
115 Statyczna biblioteka renderera OpenGL dla OpenVRML.
119 Summary(pl.UTF-8): Przeglądarka VRML
120 Group: Applications/Multimedia
121 Requires: %{name}-gl = %{version}-%{release}
122 #Requires: mozilla = %(rpm -q mozilla --qf='%%{epoch}:%%{version}')
125 %description -n lookat
126 SDL-based VRML viewer.
128 %description -n lookat -l pl.UTF-8
129 Przeglądarka VRML oparta na SDL.
131 %package -n mozilla-plugin-%{name}
132 Summary: VRML plugin for Mozilla WWW browser
133 Summary(pl.UTF-8): Wtyczka VRML dla przeglądarki WWW Mozilla
135 Requires: %{name} = %{version}-%{release}
136 Requires: mozilla-embedded(gtk2)
138 %description -n mozilla-plugin-%{name}
139 VRML plugin for Mozilla WWW browser.
141 %description -n mozilla-plugin-%{name} -l pl.UTF-8
142 Wtyczka VRML dla przeglądarki WWW Mozilla.
144 %package -n netscape-plugin-%{name}
145 Summary: VRML plugin for Netscape WWW browser
146 Summary(pl.UTF-8): Wtyczka VRML dla przeglądarki WWW Netscape
148 Requires: %{name} = %{version}-%{release}
150 %description -n netscape-plugin-%{name}
151 VRML plugin for Netscape WWW browser.
153 %description -n netscape-plugin-%{name} -l pl.UTF-8
154 Wtyczka VRML dla przeglądarki WWW Netscape.
156 %package -n mozilla-firefox-plugin-%{name}
157 Summary: VRML plugin for Mozilla Firefox browser
158 Summary(pl.UTF-8): Wtyczka VRML dla przeglądarki Mozilla Firefox
160 PreReq: mozilla-firefox
161 Requires: %{name} = %{version}-%{release}
163 %description -n mozilla-firefox-plugin-%{name}
164 VRML plugin for Mozilla Firefox browser.
166 %description -n mozilla-firefox-plugin-%{name} -l pl.UTF-8
167 Wtyczka VRML dla przeglądarki Mozilla Firefox.
169 %package -n konqueror-plugin-%{name}
170 Summary: VRML plugin for Konqueror browser
171 Summary(pl.UTF-8): Wtyczka VRML dla przeglądarki Konqueror
173 PreReq: konqueror >= 3.0.8-2.3
174 Requires: %{name} = %{version}-%{release}
176 %description -n konqueror-plugin-%{name}
177 VRML plugin for Konqueror browser.
179 %description -n konqueror-plugin-%{name} -l pl.UTF-8
180 Wtyczka VRML dla przeglądarki Konqueror.
187 CPPFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" \
188 XPIDL=%{_bindir}/xpidl \
189 XPIDLFLAGS="-I %{_datadir}/idl" \
190 mozincludedir=%{_includedir}/mozilla
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT%{_libdir}/{mozilla{,-firefox},netscape,kde3}/plugins/konqueror
199 DESTDIR=$RPM_BUILD_ROOT
202 install $RPM_BUILD_ROOT%{_libdir}/mozilla{/plugins/openvrml.{so,xpt},-firefox/plugins}
204 install $RPM_BUILD_ROOT%{_libdir}/{mozilla/plugins,kde3/plugins/konqueror}/openvrml.so
206 install $RPM_BUILD_ROOT%{_libdir}/{mozilla,netscape}/plugins/openvrml.so
209 rm -rf $RPM_BUILD_ROOT
211 %post -p /sbin/ldconfig
212 %postun -p /sbin/ldconfig
214 %post gl -p /sbin/ldconfig
215 %postun gl -p /sbin/ldconfig
218 %defattr(644,root,root,755)
219 %doc AUTHORS COPYING.LESSER ChangeLog NEWS README THANKS
220 %attr(755,root,root) %{_libdir}/libopenvrml.so.*.*.*
223 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/libopenvrml.so
226 %{_libdir}/libopenvrml.la
227 %dir %{_includedir}/%{name}
228 %dir %{_includedir}/%{name}/openvrml
229 %{_includedir}/%{name}/openvrml/*.h
230 %{_pkgconfigdir}/openvrml.pc
233 %defattr(644,root,root,755)
234 %{_libdir}/libopenvrml.a
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libopenvrml-gl.so.*.*.*
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libopenvrml-gl.so
243 %{_libdir}/libopenvrml-gl.la
244 %{_includedir}/%{name}/openvrml/gl
245 %{_pkgconfigdir}/openvrml-gl.pc
248 %defattr(644,root,root,755)
249 %{_libdir}/libopenvrml-gl.a
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/lookat
254 %{_pixmapsdir}/lookat.xpm
256 %files -n mozilla-plugin-%{name}
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_libdir}/mozilla/plugins/*.so
259 %{_libdir}/mozilla/plugins/*.xpt
261 %attr(755,root,root) %{_libdir}/openvrml-player
262 %{_datadir}/idl/%{name}-%{version}
264 %files -n netscape-plugin-%{name}
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/netscape/plugins/*.so
268 %files -n mozilla-firefox-plugin-%{name}
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/mozilla-firefox/plugins/*.so
271 %{_libdir}/mozilla-firefox/plugins/*.xpt
273 %files -n konqueror-plugin-%{name}
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/kde3/plugins/konqueror/*.so