]> git.pld-linux.org Git - packages/amaya.git/blob - amaya.spec
- missing libtool and libraptor in BR
[packages/amaya.git] / amaya.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk1    # GTK+ 1.x instead of WX
4 #
5 Summary:        Web Browser/Editor from the World Wide Web Consortium
6 Summary(pl.UTF-8):      Przeglądarka/edytor stron WWW z World Wide Web Consortium
7 Name:           amaya
8 Version:        9.54
9 Release:        1.1
10 License:        Copyright 1995-2002 (MIT) (INRIA), (L)GPL compatible
11 Group:          X11/Applications/Networking
12 Source0:        ftp://ftp.w3.org/pub/amaya/%{name}-src-%{version}.tgz
13 # Source0-md5:  b8fa2655e026091835a9bb7c59e3db83
14 Patch0:         %{name}-opt.patch
15 Patch1:         %{name}-system-libwww.patch
16 URL:            http://www.w3.org/Amaya/
17 BuildRequires:  OpenGL-GLU-devel
18 BuildRequires:  autoconf >= 2.54
19 BuildRequires:  automake
20 BuildRequires:  dos2unix
21 BuildRequires:  expat-devel
22 BuildRequires:  libjpeg-devel >= 6b
23 BuildRequires:  libpng-devel >= 1.0
24 BuildRequires:  redland-devel >= 0.9.16
25 BuildRequires:  w3c-libwww-devel >= 5.4.0-8
26 BuildRequires:  zlib-devel
27 BuildRequires:  libraptor
28 BuildRequires:  libraptor-devel
29 BuildRequires:  libtool >= 2:1.4d-3
30 %if %{with gtk1}
31 BuildRequires:  gtk+-devel
32 BuildRequires:  imlib-devel
33 %else
34 BuildRequires:  wxGTK2-unicode-devel
35 BuildRequires:  wxGTK2-unicode-gl-devel
36 %endif
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _prefix         /usr/%{_lib}
40 %define         _bindir         /usr/bin
41
42 %description
43 Amaya is a complete web browsing and authoring environment and comes
44 equipped with a WYSIWYG style of interface, similar to that of the
45 most popular commercial browsers. With such an interface, users do not
46 need to know the HTML or CSS languages.
47
48 %description -l pl.UTF-8
49 Amaya jest kompletną przeglądarką WWW i środowiskiem tworzenia stron
50 WWW, wyposażona jest w interfejs WYSIWYG podobny do stosowanego w
51 najbardziej popularnych komercyjnych przeglądarkach. Z takim
52 interfejsem użytkownicy nie muszą wiedzieć co to jest HTML czy CSS.
53
54 %prep
55 %setup -q -n Amaya
56 %patch0 -p1
57
58 # AC_SUBST_FILE doesn't work with CR+LF
59 dos2unix amaya/Makefile.in
60
61 %patch1 -p1
62
63 %build
64 export LDFLAGS="-lraptor"
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 mkdir Linux
70 cd Linux
71 ../%configure \
72         WXCONFIG=/usr/bin/wx-gtk2-unicode-config \
73         --enable-system-redland \
74         --enable-system-wx \
75         --without-graphiclibs \
76         --with-dav \
77         %{?with_gtk1:--with-gtk} \
78         %{!?with_gtk1:--with-wx --with-gl}
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}}
85
86 %{__make} -C Linux install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 %if  %{with gtk1}
90 rm -f $RPM_BUILD_ROOT%{_bindir}/amaya-gtk
91 ln -sf %{_prefix}/Amaya-%{version}/gtk/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya
92 %else
93 rm -f $RPM_BUILD_ROOT%{_bindir}/amaya-wx
94 ln -sf %{_prefix}/Amaya-%{version}/wx/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya
95 %endif
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %doc amaya/COPYRIGHT README README.amaya README.gl README.wx
103 %attr(755,root,root) %{_bindir}/amaya*
104 %dir %{_prefix}/Amaya*
105 %{_prefix}/Amaya*/amaya
106 %{_prefix}/Amaya*/annotlib
107 %{_prefix}/Amaya*/config
108 %{_prefix}/Amaya*/dicopar
109 %{_prefix}/Amaya*/doc
110 %{_prefix}/Amaya*/fonts
111 %{_prefix}/Amaya*/resources
112 %if  %{with gtk1}
113 %dir %{_prefix}/Amaya*/gtk
114 %dir %{_prefix}/Amaya*/gtk/bin
115 %attr(755,root,root) %{_prefix}/Amaya*/gtk/bin/amaya
116 %attr(755,root,root) %{_prefix}/Amaya*/gtk/bin/print
117 %else
118 %dir %{_prefix}/Amaya*/wx
119 %dir %{_prefix}/Amaya*/wx/bin
120 %attr(755,root,root) %{_prefix}/Amaya*/wx/bin/amaya
121 %attr(755,root,root) %{_prefix}/Amaya*/wx/bin/print
122 %endif
This page took 0.142163 seconds and 3 git commands to generate.