]>
Commit | Line | Data |
---|---|---|
c2345b2d | 1 | %include /usr/lib/rpm/macros.perl |
c12db79b | 2 | Summary: - |
3 | Summary(pl): - | |
4 | Name: freewrl | |
c2345b2d | 5 | # note: there is 0.35 on ftp |
c12db79b | 6 | Version: 0.34 |
7 | Release: 0.1 | |
8 | License: LGPL | |
9 | Group: - | |
c2345b2d | 10 | Source0: ftp://ftp.sourceforge.net/pub/sourceforge/freewrl/FreeWRL-%{version}.tar.gz |
c12db79b | 11 | Patch0: %{name}-config.patch |
12 | Patch1: %{name}-DESTDIR.patch | |
13 | Patch2: %{name}-mozilla.patch | |
14 | URL: http://freewrl.sourceforge.net/ | |
c12db79b | 15 | BuildRequires: ImageMagick |
c12db79b | 16 | BuildRequires: binutils-static |
c2345b2d JB |
17 | BuildRequires: gtk+-devel |
18 | BuildRequires: perl-devel | |
19 | BuildRequires: rpm-perlprov | |
20 | BuildRequires: saxon | |
c12db79b | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
c2345b2d JB |
23 | %define mozilladir /usr/X11R6/lib/mozilla |
24 | %define netscapedir /usr/X11R6/lib/netscape | |
25 | ||
c12db79b | 26 | %description |
27 | ||
28 | %description -l pl | |
29 | ||
30 | %package -n netscape-plugin-freewrl | |
31 | Summary: - | |
32 | Summary(pl): - | |
33 | Group: - | |
34 | ||
35 | %description -n netscape-plugin-freewrl | |
36 | ||
37 | %description -n netscape-plugin-freewrl -l pl | |
38 | ||
39 | %package -n mozilla-plugin-freewrl | |
40 | Summary: - | |
41 | Summary(pl): - | |
42 | Group: - | |
43 | ||
44 | %description -n mozilla-plugin-freewrl | |
45 | ||
46 | %description -n mozilla-plugin-freewrl -l pl | |
47 | ||
c12db79b | 48 | %prep |
49 | %setup -q | |
50 | %patch0 -p1 | |
51 | %patch1 -p1 | |
52 | %patch2 -p1 | |
53 | ||
54 | %build | |
55 | CFLAGS="%{rpmcflags} -I/usr/X11R6/include/mozilla" | |
56 | CXXFLAGS="$CFLAGS" | |
57 | MOZILLA_INC="-I/usr/X11R6/include/mozilla" | |
58 | export CFLAGS CXXFLAGS MOZILLA_INC | |
59 | perl Makefile.PL | |
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | install -d $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
c12db79b | 71 | %files |
72 | %defattr(644,root,root,755) | |
73 | %doc README* TODO* ARCHITECTURE* CONFORMANCE* | |
74 | %attr(755,root,root) %{_bindir}/* | |
c2345b2d JB |
75 | %{perl_sitearch}/VRML |
76 | %{perl_sitearch}/auto/VRML | |
c12db79b | 77 | |
78 | %files -n mozilla-plugin-freewrl | |
79 | %defattr(644,root,root,755) | |
c2345b2d JB |
80 | %{mozilladir}/java/classes/* |
81 | %{mozilladir}/plugins/* | |
c12db79b | 82 | |
83 | %files -n netscape-plugin-freewrl | |
84 | %defattr(644,root,root,755) | |
c2345b2d JB |
85 | %{netscapedir}/java/classes/* |
86 | %{netscapedir}/plugins/* |