3 %bcond_without dbus # disable DBUS support
4 %bcond_without apidocs # disable gtk-doc
6 Summary: Document viewer for multiple document formats -- the no libgnome version
7 Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach -- wersja nie wykorzystująca libgnome
8 %define _realname evince
13 Group: X11/Applications/Graphics
14 Source0: http://ftp.gnome.org/pub/gnome/sources/evince/0.9/%{_realname}-%{version}.tar.bz2
15 # Source0-md5: 620294cf13a7b98e966bfa64a9eec08f
16 Patch0: %{_realname}-desktop.patch
17 Patch1: %{_realname}-gs8.patch
18 Patch2: %{name}-comics-gnome-vfs2.patch
19 URL: http://www.gnome.org/projects/evince/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71}
23 BuildRequires: djvulibre-devel >= 3.5.17
24 BuildRequires: ghostscript
25 BuildRequires: gtk+2-devel >= 2:2.10.6
26 BuildRequires: intltool >= 0.35.0
27 BuildRequires: kpathsea-devel
28 BuildRequires: libglade2-devel >= 1:2.6.0
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtiff-devel
31 BuildRequires: libxslt-progs >= 1.1.17
32 BuildRequires: pkgconfig
33 BuildRequires: poppler-glib-devel >= 0.5.4
34 BuildRequires: python-libxml2
35 BuildRequires: rpmbuild(macros) >= 1.197
36 BuildRequires: scrollkeeper
37 Requires(post,postun): desktop-file-utils
38 Requires(post,postun): gtk+2 >= 2:2.10.6
39 Requires(post,postun): scrollkeeper
40 Requires: cairo >= 1.2.4
41 Requires: djvulibre >= 3.5.17
42 Requires: gtk+2 >= 2:2.10.6
43 Requires: poppler-glib >= 0.5.4
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Evince is a document viewer for multiple document formats like pdf,
49 postscript, and many others. The goal of evince is to replace the
50 multiple document viewers that exist on the GNOME Desktop, like ggv,
51 gpdf, and xpdf with a single simple application.
53 This version doesn't use GNOME libraries, but only GTK+.
55 %description -l pl.UTF-8
56 Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf,
57 postscript i wielu innych. W zamierzeniach program ma zastąpić
58 przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i
59 xpdf jedną prostą aplikacją.
61 Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
64 Summary: Evince API documentation
65 Summary(pl.UTF-8): Dokumentacja API aplikacji Evince
67 Requires: gtk-doc-common
70 Evince API documentation.
72 This version doesn't use GNOME libraries, but only GTK+.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API aplikacji Evince.
77 Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
80 %setup -q -n %{_realname}-%{version}
92 %{?with_apidocs:--enable-gtk-doc} \
95 --disable-schemas-install \
97 %{?with_dbus:--enable-dbus} \
105 --with-html-dir=%{_gtkdocdir} \
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT \
115 HTML_DIR=%{_gtkdocdir}
117 %find_lang %{_realname}
120 rm -rf $RPM_BUILD_ROOT
123 %update_desktop_database_post
124 %scrollkeeper_update_post
125 %update_icon_cache hicolor
130 %update_desktop_database_postun
131 %scrollkeeper_update_postun
132 %update_icon_cache hicolor
134 %files -f %{_realname}.lang
135 %defattr(644,root,root,755)
136 %doc AUTHORS ChangeLog NEWS README TODO
137 %attr(755,root,root) %{_bindir}/*
139 %{_datadir}/%{_realname}
140 %{_desktopdir}/*.desktop
142 %{_omf_dest_dir}/evince
146 %defattr(644,root,root,755)