2 # - install fonts system-wide (subpackage?)
3 %include /usr/lib/rpm/macros.perl
4 Summary: FreeWRL - VRML browser
5 Summary(pl): FreeWRL - przegl±darka VRML
10 Group: X11/Applications/Graphics
11 Source0: http://dl.sourceforge.net/freewrl/FreeWRL-%{version}.tar.gz
12 # Source0-md5: cb4435f5f64cebd6b0cc5cf831fb186f
13 Patch0: %{name}-config.patch
14 Patch1: %{name}-DESTDIR.patch
15 Patch2: %{name}-mozilla.patch
16 Patch3: %{name}-gcc3.patch
17 Patch4: %{name}-system-js.patch
18 URL: http://freewrl.sourceforge.net/
19 BuildRequires: ImageMagick
20 BuildRequires: OpenGL-devel
21 BuildRequires: XFree86-devel
22 BuildRequires: freetype-devel
23 BuildRequires: gtk+2-devel
26 BuildRequires: js-devel
27 BuildRequires: libjpeg-devel
28 BuildRequires: libpng-devel
29 BuildRequires: mozilla-devel
30 BuildRequires: mozilla-embedded(gtk2)
31 BuildRequires: perl-devel >= 1:5.8.0
32 BuildRequires: pkgconfig
33 BuildRequires: rpm-perlprov >= 4.1-13
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define mozilladir /usr/lib/mozilla
38 %define netscapedir /usr/lib/netscape
40 %define _noautoreqdep libGL.so.1 libGLU.so.1
41 # false positives found by perlreq from rpm 4.1
42 %define _noautoreq 'perl(VRML::Events)' 'perl(VRML::VRMLCU)' 'perl(VRML::VRMLFields)' 'perl(VRML::VRMLNodes)' 'perl(VRMLFields)' 'perl(VRMLNodes)' 'perl(VRMLRend)'
45 FreeWRL - VRML browser.
48 FreeWRL - przegl±darka VRML.
50 %package -n mozilla-plugin-freewrl
51 Summary: VRML plugin for Mozilla WWW browser
52 Summary(pl): Wtyczka VRML dla przegl±darki WWW Mozilla
54 Requires: %{name} = %{version}
55 Requires: mozilla-embedded(gtk2)
57 %description -n mozilla-plugin-freewrl
58 VRML plugin for Mozilla WWW browser.
60 %description -n mozilla-plugin-freewrl -l pl
61 Wtyczka VRML dla przegl±darki WWW Mozilla.
63 %package -n netscape-plugin-freewrl
64 Summary: VRML plugin for Netscape WWW browser
65 Summary(pl): Wtyczka VRML dla przegl±darki WWW Netscape
67 Requires: %{name} = %{version}
69 %description -n netscape-plugin-freewrl
70 VRML plugin for Netscape WWW browser.
72 %description -n netscape-plugin-freewrl -l pl
73 Wtyczka VRML dla przegl±darki WWW Netscape.
76 %setup -q -n FreeWRL-%{version}
79 # for mozilla plugin - removed intentionaly?
85 %{__perl} Makefile.PL \
88 OPTIMIZE="%{rpmcflags}" \
89 OPTIMIZER="%{rpmcflags}"
90 # MOZILLA_INC="/usr/include/mozilla" \
91 # GTK_CONFIG="pkg-config gtk+-2.0"
93 %{__make} -C Plugin/netscape \
94 OPTIMIZER="%{rpmcflags}"
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{mozilladir}/{plugins,java/classes},%{netscapedir}/plugins}
101 DESTDIR=$RPM_BUILD_ROOT \
102 SITEARCHEXP=$RPM_BUILD_ROOT%{perl_vendorarch}
104 #install Plugin/mozilla/_lib/npFreeWRL.so $RPM_BUILD_ROOT%{mozilladir}/plugins
106 install Plugin/netscape/_lib/npfreewrl.so $RPM_BUILD_ROOT%{mozilladir}/plugins
107 install Plugin/netscape/_lib/npfreewrl.so $RPM_BUILD_ROOT%{netscapedir}/plugins
109 # no such directory, don't know how to make mozilla+java load this jar
110 # without placing it in /usr/lib/java/jre/lib/ext :/
111 #install java/classes/vrml.jar $RPM_BUILD_ROOT%{mozilladir}/java/classes
114 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/*
120 %{perl_vendorarch}/VRML
121 %dir %{perl_vendorarch}/auto/VRML
122 %dir %{perl_vendorarch}/auto/VRML/*
123 %{perl_vendorarch}/auto/VRML/*/*.bs
124 %attr(755,root,root) %{perl_vendorarch}/auto/VRML/*/*.so
128 %files -n mozilla-plugin-freewrl
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{mozilladir}/plugins/*.so
132 %files -n netscape-plugin-freewrl
133 %defattr(644,root,root,755)
134 %{netscapedir}/java/classes/*.jar
135 %attr(755,root,root) %{netscapedir}/plugins/*.so