]> git.pld-linux.org Git - packages/freewrl.git/blob - freewrl.spec
- "f" and some "g" letters of small fixes inpired by kloczek
[packages/freewrl.git] / freewrl.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        FreeWRL - VRML browser
3 Summary(pl):    FreeWRL - przegl±darka VRML
4 Name:           freewrl
5 Version:        0.39
6 Release:        1
7 License:        LGPL
8 Group:          X11/Applications/Graphics
9 Source0:        http://dl.sourceforge.net/freewrl/FreeWRL-%{version}.tar.gz
10 # Source0-md5:  1601edff4f9c75efeaae5de93fe0a509
11 Patch0:         %{name}-config.patch
12 Patch1:         %{name}-DESTDIR.patch
13 Patch2:         %{name}-mozilla.patch
14 Patch3:         %{name}-gcc3.patch
15 Patch4:         %{name}-system-js.patch
16 URL:            http://freewrl.sourceforge.net/
17 BuildRequires:  ImageMagick
18 BuildRequires:  OpenGL-devel
19 BuildRequires:  XFree86-devel
20 BuildRequires:  freetype-devel
21 BuildRequires:  gtk+-devel
22 BuildRequires:  jdk
23 BuildRequires:  js-devel
24 BuildRequires:  libjpeg-devel
25 BuildRequires:  libpng-devel
26 BuildRequires:  perl-devel >= 5.8.0
27 BuildRequires:  rpm-perlprov >= 4.1-13
28 BuildRequires:  saxon
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %define         mozilladir      /usr/lib/mozilla
32 %define         netscapedir     /usr/lib/netscape
33
34 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
35 # false positives found by perlreq from rpm 4.1
36 %define         _noautoreq      'perl(VRML::Events)' 'perl(VRML::VRMLCU)' 'perl(VRML::VRMLFields)' 'perl(VRML::VRMLNodes)' 'perl(VRMLFields)' 'perl(VRMLNodes)' 'perl(VRMLRend)'
37
38 %description
39 FreeWRL - VRML browser.
40
41 %description -l pl
42 FreeWRL - przegl±darka VRML.
43
44 %package -n mozilla-plugin-freewrl
45 Summary:        VRML plugin for Mozilla WWW browser
46 Summary(pl):    Wtyczka VRML dla przegl±darki WWW Mozilla
47 Group:          Libraries
48 Requires:       %{name} = %{version}
49
50 %description -n mozilla-plugin-freewrl
51 VRML plugin for Mozilla WWW browser.
52
53 %description -n mozilla-plugin-freewrl -l pl
54 Wtyczka VRML dla przegl±darki WWW Mozilla.
55
56 %package -n netscape-plugin-freewrl
57 Summary:        VRML plugin for Netscape WWW browser
58 Summary(pl):    Wtyczka VRML dla przegl±darki WWW Netscape
59 Group:          Libraries
60 Requires:       %{name} = %{version}
61
62 %description -n netscape-plugin-freewrl
63 VRML plugin for Netscape WWW browser.
64
65 %description -n netscape-plugin-freewrl -l pl
66 Wtyczka VRML dla przegl±darki WWW Netscape.
67
68 %prep
69 %setup -q -n FreeWRL-%{version}
70 %patch0 -p1
71 %patch1 -p1
72 %patch2 -p1
73 %patch3 -p1
74 %patch4 -p1
75
76 %build
77 %{__perl} Makefile.PL \
78         INSTALLDIRS=vendor
79 %{__make} \
80         OPTIMIZE="%{rpmcflags}" \
81         OPTIMIZER="%{rpmcflags}" \
82         MOZILLA_INC="/usr/include/mozilla"
83
84 %{__make} -C Plugin/netscape \
85         OPTIMIZER="%{rpmcflags}"
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{mozilladir}/{plugins,java/classes},%{netscapedir}/plugins}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 install Plugin/mozilla/_lib/npFreeWRL.so $RPM_BUILD_ROOT%{mozilladir}/plugins
95 install Plugin/netscape/_lib/npfreewrl.so $RPM_BUILD_ROOT%{netscapedir}/plugins
96 install java/classes/vrml.jar $RPM_BUILD_ROOT%{mozilladir}/java/classes
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %files
102 %defattr(644,root,root,755)
103 %doc README* TODO* ARCHITECTURE* CONFORMANCE*
104 %attr(755,root,root) %{_bindir}/*
105 %{perl_vendorarch}/VRML
106 %dir %{perl_vendorarch}/auto/VRML
107 %dir %{perl_vendorarch}/auto/VRML/*
108 %{perl_vendorarch}/auto/VRML/*/*.bs
109 %attr(755,root,root) %{perl_vendorarch}/auto/VRML/*/*.so
110 %{_mandir}/man1/*.1*
111 %{_mandir}/man3/*.3*
112
113 %files -n mozilla-plugin-freewrl
114 %defattr(644,root,root,755)
115 %{mozilladir}/java/classes/*
116 %{mozilladir}/plugins/*
117
118 %files -n netscape-plugin-freewrl
119 %defattr(644,root,root,755)
120 %{netscapedir}/java/classes/*
121 %{netscapedir}/plugins/*
This page took 0.092053 seconds and 4 git commands to generate.