1 %include /usr/lib/rpm/macros.perl
5 # note: there is 0.35 on ftp
10 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/freewrl/FreeWRL-%{version}.tar.gz
11 Patch0: %{name}-config.patch
12 Patch1: %{name}-DESTDIR.patch
13 Patch2: %{name}-mozilla.patch
14 URL: http://freewrl.sourceforge.net/
15 BuildRequires: ImageMagick
16 BuildRequires: binutils-static
17 BuildRequires: gtk+-devel
18 BuildRequires: perl-devel
19 BuildRequires: rpm-perlprov
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define mozilladir /usr/X11R6/lib/mozilla
24 %define netscapedir /usr/X11R6/lib/netscape
30 %package -n netscape-plugin-freewrl
35 %description -n netscape-plugin-freewrl
37 %description -n netscape-plugin-freewrl -l pl
39 %package -n mozilla-plugin-freewrl
44 %description -n mozilla-plugin-freewrl
46 %description -n mozilla-plugin-freewrl -l pl
55 CFLAGS="%{rpmcflags} -I/usr/X11R6/include/mozilla"
57 MOZILLA_INC="-I/usr/X11R6/include/mozilla"
58 export CFLAGS CXXFLAGS MOZILLA_INC
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT
66 %{__make} install DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc README* TODO* ARCHITECTURE* CONFORMANCE*
74 %attr(755,root,root) %{_bindir}/*
76 %{perl_sitearch}/auto/VRML
78 %files -n mozilla-plugin-freewrl
79 %defattr(644,root,root,755)
80 %{mozilladir}/java/classes/*
81 %{mozilladir}/plugins/*
83 %files -n netscape-plugin-freewrl
84 %defattr(644,root,root,755)
85 %{netscapedir}/java/classes/*
86 %{netscapedir}/plugins/*