]>
Commit | Line | Data |
---|---|---|
796ec945 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk1 # GTK+ 1.x instead of WX | |
4 | # | |
e157f8ba | 5 | Summary: Web Browser/Editor from the World Wide Web Consortium |
500e4efe | 6 | Summary(pl.UTF-8): Przeglądarka/edytor stron WWW z World Wide Web Consortium |
e157f8ba | 7 | Name: amaya |
796ec945 | 8 | Version: 9.54 |
55d8d7ec | 9 | Release: 1.1 |
e157f8ba | 10 | License: Copyright 1995-2002 (MIT) (INRIA), (L)GPL compatible |
11 | Group: X11/Applications/Networking | |
e157f8ba | 12 | Source0: ftp://ftp.w3.org/pub/amaya/%{name}-src-%{version}.tgz |
796ec945 JB |
13 | # Source0-md5: b8fa2655e026091835a9bb7c59e3db83 |
14 | Patch0: %{name}-opt.patch | |
15 | Patch1: %{name}-system-libwww.patch | |
701003ac | 16 | URL: http://www.w3.org/Amaya/ |
796ec945 JB |
17 | BuildRequires: OpenGL-GLU-devel |
18 | BuildRequires: autoconf >= 2.54 | |
d40d69cb | 19 | BuildRequires: automake |
796ec945 | 20 | BuildRequires: dos2unix |
e157f8ba | 21 | BuildRequires: expat-devel |
796ec945 JB |
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 | |
28a5669a | 27 | BuildRequires: libraptor |
28 | BuildRequires: libraptor-devel | |
29 | BuildRequires: libtool >= 2:1.4d-3 | |
796ec945 | 30 | %if %{with gtk1} |
e2ca440e | 31 | BuildRequires: gtk+-devel |
ca3b2a8b | 32 | BuildRequires: imlib-devel |
796ec945 JB |
33 | %else |
34 | BuildRequires: wxGTK2-unicode-devel | |
35 | BuildRequires: wxGTK2-unicode-gl-devel | |
36 | %endif | |
701003ac | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e157f8ba | 38 | |
796ec945 JB |
39 | %define _prefix /usr/%{_lib} |
40 | %define _bindir /usr/bin | |
41 | ||
701003ac | 42 | %description |
e157f8ba | 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 | ||
b93d60f7 JR |
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. | |
e157f8ba | 53 | |
e157f8ba | 54 | %prep |
55 | %setup -q -n Amaya | |
56 | %patch0 -p1 | |
57 | ||
796ec945 JB |
58 | # AC_SUBST_FILE doesn't work with CR+LF |
59 | dos2unix amaya/Makefile.in | |
60 | ||
61 | %patch1 -p1 | |
62 | ||
e157f8ba | 63 | %build |
28a5669a | 64 | export LDFLAGS="-lraptor" |
65 | %{__libtoolize} | |
b01b5274 | 66 | %{__aclocal} |
e157f8ba | 67 | %{__autoconf} |
b01b5274 | 68 | %{__autoheader} |
e157f8ba | 69 | mkdir Linux |
70 | cd Linux | |
71 | ../%configure \ | |
796ec945 JB |
72 | WXCONFIG=/usr/bin/wx-gtk2-unicode-config \ |
73 | --enable-system-redland \ | |
74 | --enable-system-wx \ | |
75 | --without-graphiclibs \ | |
e157f8ba | 76 | --with-dav \ |
796ec945 JB |
77 | %{?with_gtk1:--with-gtk} \ |
78 | %{!?with_gtk1:--with-wx --with-gl} | |
79 | ||
e157f8ba | 80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
796ec945 JB |
84 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}} |
85 | ||
86 | %{__make} -C Linux install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
020215f7 | 88 | |
55d8d7ec | 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 | |
796ec945 JB |
93 | rm -f $RPM_BUILD_ROOT%{_bindir}/amaya-wx |
94 | ln -sf %{_prefix}/Amaya-%{version}/wx/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya | |
55d8d7ec | 95 | %endif |
e157f8ba | 96 | |
d40d69cb JB |
97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
e157f8ba | 100 | %files |
101 | %defattr(644,root,root,755) | |
b01b5274 | 102 | %doc amaya/COPYRIGHT README README.amaya README.gl README.wx |
796ec945 JB |
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 | |
55d8d7ec | 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 | |
796ec945 JB |
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 | |
55d8d7ec | 122 | %endif |