]> git.pld-linux.org Git - SPECS.git/blob - openvrml.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / openvrml.spec
1 # TODO
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
4 # - -devel deps
5 Summary:        VRML97 runtime library
6 Summary(pl.UTF-8):      Biblioteka uruchomieniowa VRML97
7 Name:           openvrml
8 Version:        0.15.9
9 Release:        0.5
10 License:        LGPL
11 Group:          X11/Libraries
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)
36
37 %description
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.
42
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ę
48 VRML.
49
50 %package devel
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}
55
56 %description devel
57 Headers that programmers will need to develop C++ programs using
58 OpenVRML.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe potrzebne programistom do tworzenia programów w C++
62 przy użyciu OpenVRML.
63
64 %package static
65 Summary:        Static OpenVRML library
66 Summary(pl.UTF-8):      Statyczna biblioteka OpenVRML
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Static OpenVRML library.
72
73 %description static -l pl.UTF-8
74 Statyczna biblioteka OpenVRML.
75
76 %package gl
77 Summary:        OpenGL renderer for OpenVRML
78 Summary(pl.UTF-8):      Renderer OpenGL dla OpenVRML
79 Group:          X11/Libraries
80 Requires:       %{name} = %{version}-%{release}
81 Requires:       X11-OpenGL-libs >= 1:6.7
82
83 %description gl
84 OpenGL renderer for OpenVRML.
85
86 %description gl -l pl.UTF-8
87 Renderer OpenGL dla OpenVRML.
88
89 %package gl-devel
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
96
97 %description gl-devel
98 Headers that programmers will need to develop C++ programs using the
99 OpenVRML OpenGL renderer.
100
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.
104
105 %package gl-static
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}
110
111 %description gl-static
112 Static OpenVRML OpenGL renderer library.
113
114 %description gl-static -l pl.UTF-8
115 Statyczna biblioteka renderera OpenGL dla OpenVRML.
116
117 %package -n lookat
118 Summary:        VRML viewer
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}')
123 Requires:       SDL >= 1.2
124
125 %description -n lookat
126 SDL-based VRML viewer.
127
128 %description -n lookat -l pl.UTF-8
129 Przeglądarka VRML oparta na SDL.
130
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
134 Group:          Libraries
135 Requires:       %{name} = %{version}-%{release}
136 Requires:       mozilla-embedded(gtk2)
137
138 %description -n mozilla-plugin-%{name}
139 VRML plugin for Mozilla WWW browser.
140
141 %description -n mozilla-plugin-%{name} -l pl.UTF-8
142 Wtyczka VRML dla przeglądarki WWW Mozilla.
143
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
147 Group:          Libraries
148 Requires:       %{name} = %{version}-%{release}
149
150 %description -n netscape-plugin-%{name}
151 VRML plugin for Netscape WWW browser.
152
153 %description -n netscape-plugin-%{name} -l pl.UTF-8
154 Wtyczka VRML dla przeglądarki WWW Netscape.
155
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
159 Group:          Libraries
160 PreReq:         mozilla-firefox
161 Requires:       %{name} = %{version}-%{release}
162
163 %description -n mozilla-firefox-plugin-%{name}
164 VRML plugin for Mozilla Firefox browser.
165
166 %description -n mozilla-firefox-plugin-%{name} -l pl.UTF-8
167 Wtyczka VRML dla przeglądarki Mozilla Firefox.
168
169 %package -n konqueror-plugin-%{name}
170 Summary:        VRML plugin for Konqueror browser
171 Summary(pl.UTF-8):      Wtyczka VRML dla przeglądarki Konqueror
172 Group:          Libraries
173 PreReq:         konqueror >= 3.0.8-2.3
174 Requires:       %{name} = %{version}-%{release}
175
176 %description -n konqueror-plugin-%{name}
177 VRML plugin for Konqueror browser.
178
179 %description -n konqueror-plugin-%{name} -l pl.UTF-8
180 Wtyczka VRML dla przeglądarki Konqueror.
181
182 %prep
183 %setup -q
184
185 %build
186 %configure \
187         CPPFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" \
188         XPIDL=%{_bindir}/xpidl \
189         XPIDLFLAGS="-I %{_datadir}/idl" \
190         mozincludedir=%{_includedir}/mozilla
191
192 %{__make}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196 install -d $RPM_BUILD_ROOT%{_libdir}/{mozilla{,-firefox},netscape,kde3}/plugins/konqueror
197
198 %{__make} install \
199         DESTDIR=$RPM_BUILD_ROOT
200
201 # mozilla-firefox
202 install $RPM_BUILD_ROOT%{_libdir}/mozilla{/plugins/openvrml.{so,xpt},-firefox/plugins}
203 # kde
204 install $RPM_BUILD_ROOT%{_libdir}/{mozilla/plugins,kde3/plugins/konqueror}/openvrml.so
205 # netscape
206 install $RPM_BUILD_ROOT%{_libdir}/{mozilla,netscape}/plugins/openvrml.so
207
208 %clean
209 rm -rf $RPM_BUILD_ROOT
210
211 %post   -p /sbin/ldconfig
212 %postun -p /sbin/ldconfig
213
214 %post   gl -p /sbin/ldconfig
215 %postun gl -p /sbin/ldconfig
216
217 %files
218 %defattr(644,root,root,755)
219 %doc AUTHORS COPYING.LESSER ChangeLog NEWS README THANKS
220 %attr(755,root,root) %{_libdir}/libopenvrml.so.*.*.*
221
222 %files devel
223 %defattr(644,root,root,755)
224 %doc doc/manual
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
231
232 %files static
233 %defattr(644,root,root,755)
234 %{_libdir}/libopenvrml.a
235
236 %files gl
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libopenvrml-gl.so.*.*.*
239
240 %files gl-devel
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
246
247 %files gl-static
248 %defattr(644,root,root,755)
249 %{_libdir}/libopenvrml-gl.a
250
251 %files -n lookat
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/lookat
254 %{_pixmapsdir}/lookat.xpm
255
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
260 # dunno
261 %attr(755,root,root) %{_libdir}/openvrml-player
262 %{_datadir}/idl/%{name}-%{version}
263
264 %files -n netscape-plugin-%{name}
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/netscape/plugins/*.so
267
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
272
273 %files -n konqueror-plugin-%{name}
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/kde3/plugins/konqueror/*.so
This page took 0.513899 seconds and 3 git commands to generate.