]> git.pld-linux.org Git - packages/freewrl.git/blob - freewrl.spec
- added Source0 URL, use macros in %%files
[packages/freewrl.git] / freewrl.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        -
3 Summary(pl):    -
4 Name:           freewrl
5 # note: there is 0.35 on ftp
6 Version:        0.34
7 Release:        0.1
8 License:        LGPL
9 Group:          -
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
20 BuildRequires:  saxon
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         mozilladir      /usr/X11R6/lib/mozilla
24 %define         netscapedir     /usr/X11R6/lib/netscape
25
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
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
71 %files
72 %defattr(644,root,root,755)
73 %doc README* TODO* ARCHITECTURE* CONFORMANCE*
74 %attr(755,root,root) %{_bindir}/*
75 %{perl_sitearch}/VRML
76 %{perl_sitearch}/auto/VRML
77
78 %files -n mozilla-plugin-freewrl
79 %defattr(644,root,root,755)
80 %{mozilladir}/java/classes/*
81 %{mozilladir}/plugins/*
82
83 %files -n netscape-plugin-freewrl
84 %defattr(644,root,root,755)
85 %{netscapedir}/java/classes/*
86 %{netscapedir}/plugins/*
This page took 0.10895 seconds and 4 git commands to generate.