]>
Commit | Line | Data |
---|---|---|
e157f8ba | 1 | Summary: Web Browser/Editor from the World Wide Web Consortium |
500e4efe | 2 | Summary(pl.UTF-8): Przeglądarka/edytor stron WWW z World Wide Web Consortium |
e157f8ba | 3 | Name: amaya |
057d42e2 ER |
4 | Version: 11.4.4 |
5 | Release: 0.1 | |
e157f8ba | 6 | License: Copyright 1995-2002 (MIT) (INRIA), (L)GPL compatible |
7 | Group: X11/Applications/Networking | |
057d42e2 ER |
8 | Source0: ftp://ftp.w3.org/pub/amaya/%{name}-sources-%{version}.tgz |
9 | # Source0-md5: e8072c7b1d06b983951c56e9f51fbacf | |
796ec945 | 10 | Patch0: %{name}-opt.patch |
f678ef3d | 11 | Patch1: libpng-1.5.patch |
701003ac | 12 | URL: http://www.w3.org/Amaya/ |
796ec945 JB |
13 | BuildRequires: OpenGL-GLU-devel |
14 | BuildRequires: autoconf >= 2.54 | |
d40d69cb | 15 | BuildRequires: automake |
f678ef3d | 16 | BuildRequires: dos2unix |
e157f8ba | 17 | BuildRequires: expat-devel |
796ec945 JB |
18 | BuildRequires: libjpeg-devel >= 6b |
19 | BuildRequires: libpng-devel >= 1.0 | |
28a5669a | 20 | BuildRequires: libraptor |
21 | BuildRequires: libraptor-devel | |
22 | BuildRequires: libtool >= 2:1.4d-3 | |
057d42e2 ER |
23 | BuildRequires: redland-devel >= 0.9.16 |
24 | BuildRequires: w3c-libwww-devel >= 5.4.0-8 | |
25 | BuildRequires: zlib-devel | |
796ec945 JB |
26 | BuildRequires: wxGTK2-unicode-devel |
27 | BuildRequires: wxGTK2-unicode-gl-devel | |
701003ac | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e157f8ba | 29 | |
057d42e2 ER |
30 | # ../.././thotlib/base/batchmessage.c:29:25: error: format not a string literal and no format arguments [-Werror=format-security] |
31 | # ../.././thotlib/base/batchmessage.c:37:25: error: format not a string literal and no format arguments [-Werror=format-security] | |
32 | %define filterout_cxx -Werror=format-security | |
796ec945 | 33 | |
701003ac | 34 | %description |
e157f8ba | 35 | Amaya is a complete web browsing and authoring environment and comes |
36 | equipped with a WYSIWYG style of interface, similar to that of the | |
37 | most popular commercial browsers. With such an interface, users do not | |
38 | need to know the HTML or CSS languages. | |
39 | ||
b93d60f7 JR |
40 | %description -l pl.UTF-8 |
41 | Amaya jest kompletną przeglądarką WWW i środowiskiem tworzenia stron | |
42 | WWW, wyposażona jest w interfejs WYSIWYG podobny do stosowanego w | |
43 | najbardziej popularnych komercyjnych przeglądarkach. Z takim | |
44 | interfejsem użytkownicy nie muszą wiedzieć co to jest HTML czy CSS. | |
e157f8ba | 45 | |
e157f8ba | 46 | %prep |
057d42e2 ER |
47 | %setup -q -n Amaya%{version} |
48 | install -d sys-libs | |
49 | mv Mesa freetype libwww redland wxWidgets sys-libs | |
50 | cd Amaya | |
e157f8ba | 51 | %patch0 -p1 |
f678ef3d ER |
52 | %patch1 -p1 |
53 | ||
54 | # AC_SUBST_FILE doesn't work with CR+LF | |
55 | #dos2unix amaya/Makefile.in | |
e157f8ba | 56 | |
57 | %build | |
057d42e2 | 58 | cd Amaya |
28a5669a | 59 | %{__libtoolize} |
b01b5274 | 60 | %{__aclocal} |
e157f8ba | 61 | %{__autoconf} |
b01b5274 | 62 | %{__autoheader} |
057d42e2 | 63 | install -d Linux |
e157f8ba | 64 | cd Linux |
65 | ../%configure \ | |
796ec945 | 66 | WXCONFIG=/usr/bin/wx-gtk2-unicode-config \ |
057d42e2 ER |
67 | --prefix=%{_libdir} \ |
68 | --enable-system-libwww \ | |
796ec945 | 69 | --enable-system-wx \ |
e157f8ba | 70 | --with-dav \ |
057d42e2 | 71 | --with-gl |
796ec945 | 72 | |
057d42e2 ER |
73 | %{__make} -j1 \ |
74 | AMAYA_LIBWWW_SRC= \ | |
75 | AMAYA_LIBWWW_INCLUDES="$(libwww-config --cflags)" \ | |
76 | AMAYA_LIBWWW_LIBS="$(libwww-config --libs)" \ | |
77 | IMGLIBS="-lpng -ljpeg" \ | |
78 | EXPAT_LIBRARIES="-lpng -ljpeg" | |
79 | ||
80 | # EXPAT_LIBRARIES/IMGLIBS is fake, just convient place to add LIBS | |
e157f8ba | 81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
796ec945 | 84 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}} |
057d42e2 ER |
85 | %{__make} -C Amaya/Linux install \ |
86 | AMAYA_LIBWWW_SRC= \ | |
796ec945 | 87 | DESTDIR=$RPM_BUILD_ROOT |
020215f7 | 88 | |
057d42e2 | 89 | ln -sf %{_libdir}/Amaya/wx/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya |
e157f8ba | 90 | |
d40d69cb JB |
91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
e157f8ba | 94 | %files |
95 | %defattr(644,root,root,755) | |
057d42e2 ER |
96 | %doc Amaya/{amaya/COPYRIGHT,README,README.wx} |
97 | %attr(755,root,root) %{_bindir}/amaya | |
98 | %dir %{_libdir}/Amaya | |
99 | %{_libdir}/Amaya/amaya | |
100 | %{_libdir}/Amaya/annotlib | |
101 | %{_libdir}/Amaya/config | |
102 | %{_libdir}/Amaya/dicopar | |
103 | %{_libdir}/Amaya/doc | |
104 | %{_libdir}/Amaya/fonts | |
105 | %{_libdir}/Amaya/resources | |
106 | %dir %{_libdir}/Amaya/wx | |
107 | %dir %{_libdir}/Amaya/wx/bin | |
108 | %attr(755,root,root) %{_libdir}/Amaya/wx/bin/amaya | |
109 | %attr(755,root,root) %{_libdir}/Amaya/wx/bin/amaya_bin | |
110 | %attr(755,root,root) %{_libdir}/Amaya/wx/bin/print |