]> git.pld-linux.org Git - packages/amaya.git/blame - amaya.spec
libpng 1.5 fix from netbsd cvs
[packages/amaya.git] / amaya.spec
CommitLineData
e157f8ba 1Summary: Web Browser/Editor from the World Wide Web Consortium
500e4efe 2Summary(pl.UTF-8): Przeglądarka/edytor stron WWW z World Wide Web Consortium
e157f8ba 3Name: amaya
057d42e2
ER
4Version: 11.4.4
5Release: 0.1
e157f8ba 6License: Copyright 1995-2002 (MIT) (INRIA), (L)GPL compatible
7Group: X11/Applications/Networking
057d42e2
ER
8Source0: ftp://ftp.w3.org/pub/amaya/%{name}-sources-%{version}.tgz
9# Source0-md5: e8072c7b1d06b983951c56e9f51fbacf
796ec945 10Patch0: %{name}-opt.patch
f678ef3d 11Patch1: libpng-1.5.patch
701003ac 12URL: http://www.w3.org/Amaya/
796ec945
JB
13BuildRequires: OpenGL-GLU-devel
14BuildRequires: autoconf >= 2.54
d40d69cb 15BuildRequires: automake
f678ef3d 16BuildRequires: dos2unix
e157f8ba 17BuildRequires: expat-devel
796ec945
JB
18BuildRequires: libjpeg-devel >= 6b
19BuildRequires: libpng-devel >= 1.0
28a5669a 20BuildRequires: libraptor
21BuildRequires: libraptor-devel
22BuildRequires: libtool >= 2:1.4d-3
057d42e2
ER
23BuildRequires: redland-devel >= 0.9.16
24BuildRequires: w3c-libwww-devel >= 5.4.0-8
25BuildRequires: zlib-devel
796ec945
JB
26BuildRequires: wxGTK2-unicode-devel
27BuildRequires: wxGTK2-unicode-gl-devel
701003ac 28BuildRoot: %{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 35Amaya is a complete web browsing and authoring environment and comes
36equipped with a WYSIWYG style of interface, similar to that of the
37most popular commercial browsers. With such an interface, users do not
38need to know the HTML or CSS languages.
39
b93d60f7
JR
40%description -l pl.UTF-8
41Amaya jest kompletną przeglądarką WWW i środowiskiem tworzenia stron
42WWW, wyposażona jest w interfejs WYSIWYG podobny do stosowanego w
43najbardziej popularnych komercyjnych przeglądarkach. Z takim
44interfejsem użytkownicy nie muszą wiedzieć co to jest HTML czy CSS.
e157f8ba 45
e157f8ba 46%prep
057d42e2
ER
47%setup -q -n Amaya%{version}
48install -d sys-libs
49mv Mesa freetype libwww redland wxWidgets sys-libs
50cd 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 58cd Amaya
28a5669a 59%{__libtoolize}
b01b5274 60%{__aclocal}
e157f8ba 61%{__autoconf}
b01b5274 62%{__autoheader}
057d42e2 63install -d Linux
e157f8ba 64cd 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
83rm -rf $RPM_BUILD_ROOT
796ec945 84install -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 89ln -sf %{_libdir}/Amaya/wx/bin/amaya $RPM_BUILD_ROOT%{_bindir}/amaya
e157f8ba 90
d40d69cb
JB
91%clean
92rm -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
This page took 0.09706 seconds and 4 git commands to generate.