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: 6af5a46a8dff01d973c76201a34d57ac
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 >= 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}
83 %{__perl} Makefile.PL \
86 OPTIMIZE="%{rpmcflags}" \
87 OPTIMIZER="%{rpmcflags}" \
88 MOZILLA_INC="/usr/include/mozilla" \
89 GTK_CONFIG="pkg-config gtk+-2.0"
91 %{__make} -C Plugin/netscape \
92 OPTIMIZER="%{rpmcflags}"
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT{%{mozilladir}/{plugins,java/classes},%{netscapedir}/plugins}
99 DESTDIR=$RPM_BUILD_ROOT \
100 SITEARCHEXP=$RPM_BUILD_ROOT%{perl_vendorarch}
102 install Plugin/mozilla/_lib/npFreeWRL.so $RPM_BUILD_ROOT%{mozilladir}/plugins
103 install Plugin/netscape/_lib/npfreewrl.so $RPM_BUILD_ROOT%{netscapedir}/plugins
104 install java/classes/vrml.jar $RPM_BUILD_ROOT%{mozilladir}/java/classes
107 rm -rf $RPM_BUILD_ROOT
110 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/*
113 %{perl_vendorarch}/VRML
114 %dir %{perl_vendorarch}/auto/VRML
115 %dir %{perl_vendorarch}/auto/VRML/*
116 %{perl_vendorarch}/auto/VRML/*/*.bs
117 %attr(755,root,root) %{perl_vendorarch}/auto/VRML/*/*.so
121 %files -n mozilla-plugin-freewrl
122 %defattr(644,root,root,755)
123 %{mozilladir}/java/classes/*
124 %{mozilladir}/plugins/*
126 %files -n netscape-plugin-freewrl
127 %defattr(644,root,root,755)
128 %{netscapedir}/java/classes/*
129 %{netscapedir}/plugins/*