]> git.pld-linux.org Git - packages/amaya.git/blob - amaya.spec
ae665271d28fdca21b3188d57b3a5c1854e9b688
[packages/amaya.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 URL:            http://www.w3.org/Amaya/
12 BuildRequires:  OpenGL-GLU-devel
13 BuildRequires:  autoconf >= 2.54
14 BuildRequires:  automake
15 BuildRequires:  expat-devel
16 BuildRequires:  libjpeg-devel >= 6b
17 BuildRequires:  libpng-devel >= 1.0
18 BuildRequires:  libraptor
19 BuildRequires:  libraptor-devel
20 BuildRequires:  libtool >= 2:1.4d-3
21 BuildRequires:  redland-devel >= 0.9.16
22 BuildRequires:  w3c-libwww-devel >= 5.4.0-8
23 BuildRequires:  zlib-devel
24 BuildRequires:  wxGTK2-unicode-devel
25 BuildRequires:  wxGTK2-unicode-gl-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 # ../.././thotlib/base/batchmessage.c:29:25: error: format not a string literal and no format arguments [-Werror=format-security]
29 # ../.././thotlib/base/batchmessage.c:37:25: error: format not a string literal and no format arguments [-Werror=format-security]
30 %define         filterout_cxx   -Werror=format-security
31
32 %description
33 Amaya is a complete web browsing and authoring environment and comes
34 equipped with a WYSIWYG style of interface, similar to that of the
35 most popular commercial browsers. With such an interface, users do not
36 need to know the HTML or CSS languages.
37
38 %description -l pl.UTF-8
39 Amaya jest kompletną przeglądarką WWW i środowiskiem tworzenia stron
40 WWW, wyposażona jest w interfejs WYSIWYG podobny do stosowanego w
41 najbardziej popularnych komercyjnych przeglądarkach. Z takim
42 interfejsem użytkownicy nie muszą wiedzieć co to jest HTML czy CSS.
43
44 %prep
45 %setup -q -n Amaya%{version}
46 install -d sys-libs
47 mv Mesa freetype libwww redland wxWidgets sys-libs
48 cd Amaya
49 %patch0 -p1
50
51 %build
52 cd Amaya
53 %{__libtoolize}
54 %{__aclocal}
55 %{__autoconf}
56 %{__autoheader}
57 install -d Linux
58 cd Linux
59 ../%configure \
60         WXCONFIG=/usr/bin/wx-gtk2-unicode-config \
61         --prefix=%{_libdir} \
62         --enable-system-libwww \
63         --enable-system-wx \
64         --with-dav \
65         --with-gl
66
67 %{__make} -j1 \
68         AMAYA_LIBWWW_SRC= \
69         AMAYA_LIBWWW_INCLUDES="$(libwww-config --cflags)" \
70         AMAYA_LIBWWW_LIBS="$(libwww-config --libs)" \
71         IMGLIBS="-lpng -ljpeg" \
72         EXPAT_LIBRARIES="-lpng -ljpeg"
73
74 #  EXPAT_LIBRARIES/IMGLIBS is fake, just convient place to add LIBS
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_bindir},%{_prefix}}
79 %{__make} -C Amaya/Linux install \
80         AMAYA_LIBWWW_SRC= \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 ln -sf %{_libdir}/Amaya/wx/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc Amaya/{amaya/COPYRIGHT,README,README.wx}
91 %attr(755,root,root) %{_bindir}/amaya
92 %dir %{_libdir}/Amaya
93 %{_libdir}/Amaya/amaya
94 %{_libdir}/Amaya/annotlib
95 %{_libdir}/Amaya/config
96 %{_libdir}/Amaya/dicopar
97 %{_libdir}/Amaya/doc
98 %{_libdir}/Amaya/fonts
99 %{_libdir}/Amaya/resources
100 %dir %{_libdir}/Amaya/wx
101 %dir %{_libdir}/Amaya/wx/bin
102 %attr(755,root,root) %{_libdir}/Amaya/wx/bin/amaya
103 %attr(755,root,root) %{_libdir}/Amaya/wx/bin/amaya_bin
104 %attr(755,root,root) %{_libdir}/Amaya/wx/bin/print
This page took 0.202937 seconds and 3 git commands to generate.