]> git.pld-linux.org Git - SPECS.git/blob - amaya.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / amaya.spec
1 Summary:        Web Browser/Editor from the World Wide Web Consortium
2 Summary(pl.UTF-8):      Przeglądarka/edytor stron WWW z World Wide Web Consortium
3 Name:           amaya
4 Version:        11.4.4
5 Release:        0.1
6 License:        Copyright 1995-2002 (MIT) (INRIA), (L)GPL compatible
7 Group:          X11/Applications/Networking
8 Source0:        ftp://ftp.w3.org/pub/amaya/%{name}-sources-%{version}.tgz
9 # Source0-md5:  e8072c7b1d06b983951c56e9f51fbacf
10 Patch0:         %{name}-opt.patch
11 Patch1:         libpng-1.5.patch
12 URL:            http://www.w3.org/Amaya/
13 BuildRequires:  OpenGL-GLU-devel
14 BuildRequires:  autoconf >= 2.54
15 BuildRequires:  automake
16 BuildRequires:  dos2unix
17 BuildRequires:  expat-devel
18 BuildRequires:  libjpeg-devel >= 6b
19 BuildRequires:  libpng-devel >= 1.0
20 BuildRequires:  libraptor
21 BuildRequires:  libraptor-devel
22 BuildRequires:  libtool >= 2:1.4d-3
23 BuildRequires:  redland-devel >= 0.9.16
24 BuildRequires:  w3c-libwww-devel >= 5.4.0-8
25 BuildRequires:  zlib-devel
26 BuildRequires:  wxGTK2-unicode-devel
27 BuildRequires:  wxGTK2-unicode-gl-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
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
33
34 %description
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
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.
45
46 %prep
47 %setup -q -n Amaya%{version}
48 install -d sys-libs
49 mv Mesa freetype libwww redland wxWidgets sys-libs
50 cd Amaya
51 %patch0 -p1
52 %patch1 -p1
53
54 # AC_SUBST_FILE doesn't work with CR+LF
55 #dos2unix amaya/Makefile.in
56
57 %build
58 cd Amaya
59 %{__libtoolize}
60 %{__aclocal}
61 %{__autoconf}
62 %{__autoheader}
63 install -d Linux
64 cd Linux
65 ../%configure \
66         WXCONFIG=/usr/bin/wx-gtk2-unicode-config \
67         --prefix=%{_libdir} \
68         --enable-system-libwww \
69         --enable-system-wx \
70         --with-dav \
71         --with-gl
72
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
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}}
85 %{__make} -C Amaya/Linux install \
86         AMAYA_LIBWWW_SRC= \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 ln -sf %{_libdir}/Amaya/wx/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
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
This page took 0.055654 seconds and 3 git commands to generate.