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
25 BuildRequires: js-devel
26 BuildRequires: libjpeg-devel
27 BuildRequires: libpng-devel
28 BuildRequires: mozilla-devel
29 BuildRequires: mozilla-embedded(gtk2)
30 BuildRequires: perl-devel >= 1:5.8.0
31 BuildRequires: pkgconfig
32 BuildRequires: rpm-perlprov >= 4.1-13
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define mozilladir /usr/lib/mozilla
37 %define netscapedir /usr/lib/netscape
39 %define _noautoreqdep libGL.so.1 libGLU.so.1
40 # false positives found by perlreq from rpm 4.1
41 %define _noautoreq 'perl(VRML::Events)' 'perl(VRML::VRMLCU)' 'perl(VRML::VRMLFields)' 'perl(VRML::VRMLNodes)' 'perl(VRMLFields)' 'perl(VRMLNodes)' 'perl(VRMLRend)'
44 FreeWRL - VRML browser.
47 FreeWRL - przegl±darka VRML.
49 %package -n mozilla-plugin-freewrl
50 Summary: VRML plugin for Mozilla WWW browser
51 Summary(pl): Wtyczka VRML dla przegl±darki WWW Mozilla
53 Requires: %{name} = %{version}
54 Requires: mozilla-embedded(gtk2)
56 %description -n mozilla-plugin-freewrl
57 VRML plugin for Mozilla WWW browser.
59 %description -n mozilla-plugin-freewrl -l pl
60 Wtyczka VRML dla przegl±darki WWW Mozilla.
62 %package -n netscape-plugin-freewrl
63 Summary: VRML plugin for Netscape WWW browser
64 Summary(pl): Wtyczka VRML dla przegl±darki WWW Netscape
66 Requires: %{name} = %{version}
68 %description -n netscape-plugin-freewrl
69 VRML plugin for Netscape WWW browser.
71 %description -n netscape-plugin-freewrl -l pl
72 Wtyczka VRML dla przegl±darki WWW Netscape.
75 %setup -q -n FreeWRL-%{version}
78 # for mozilla plugin - removed intentionaly?
84 %{__perl} Makefile.PL \
87 OPTIMIZE="%{rpmcflags}" \
88 OPTIMIZER="%{rpmcflags}"
89 # MOZILLA_INC="/usr/include/mozilla" \
90 # GTK_CONFIG="pkg-config gtk+-2.0"
92 %{__make} -C Plugin/netscape \
93 OPTIMIZER="%{rpmcflags}"
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{mozilladir}/{plugins,java/classes},%{netscapedir}/plugins}
100 DESTDIR=$RPM_BUILD_ROOT \
101 SITEARCHEXP=$RPM_BUILD_ROOT%{perl_vendorarch}
103 #install Plugin/mozilla/_lib/npFreeWRL.so $RPM_BUILD_ROOT%{mozilladir}/plugins
105 install Plugin/netscape/_lib/npfreewrl.so $RPM_BUILD_ROOT%{mozilladir}/plugins
106 install Plugin/netscape/_lib/npfreewrl.so $RPM_BUILD_ROOT%{netscapedir}/plugins
108 # no such directory, don't know how to make mozilla+java load this jar
109 # without placing it in /usr/lib/java/jre/lib/ext :/
110 #install java/classes/vrml.jar $RPM_BUILD_ROOT%{mozilladir}/java/classes
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/*
119 %{perl_vendorarch}/VRML
120 %dir %{perl_vendorarch}/auto/VRML
121 %dir %{perl_vendorarch}/auto/VRML/*
122 %{perl_vendorarch}/auto/VRML/*/*.bs
123 %attr(755,root,root) %{perl_vendorarch}/auto/VRML/*/*.so
127 %files -n mozilla-plugin-freewrl
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{mozilladir}/plugins/*.so
131 %files -n netscape-plugin-freewrl
132 %defattr(644,root,root,755)
133 %{netscapedir}/java/classes/*.jar
134 %attr(755,root,root) %{netscapedir}/plugins/*.so