2 # - are schemas (thus GConf) needed?
5 %bcond_without dbus # disable DBUS support
6 %bcond_without apidocs # disable gtk-doc
8 Summary: Document viewer for multiple document formats -- the no libgnome version
9 Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach -- wersja nie wykorzystująca libgnome
10 %define _realname evince
15 Group: X11/Applications/Graphics
16 Source0: http://ftp.gnome.org/pub/gnome/sources/evince/2.19/%{_realname}-%{version}.tar.bz2
17 # Source0-md5: 9e95005f53560ddbfeb20f0779044db5
18 Patch0: %{_realname}-desktop.patch
19 Patch1: %{_realname}-gs8.patch
20 URL: http://www.gnome.org/projects/evince/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71}
24 BuildRequires: djvulibre-devel >= 3.5.17
25 BuildRequires: ghostscript
26 BuildRequires: gtk+2-devel >= 2:2.10.6
27 BuildRequires: intltool >= 0.35.0
28 BuildRequires: kpathsea-devel
29 BuildRequires: libglade2-devel >= 1:2.6.0
30 BuildRequires: libstdc++-devel
31 BuildRequires: libtiff-devel
32 BuildRequires: libxslt-progs >= 1.1.17
33 BuildRequires: pkgconfig
34 BuildRequires: poppler-glib-devel >= 0.5.9
35 BuildRequires: python-libxml2
36 BuildRequires: rpmbuild(macros) >= 1.197
37 BuildRequires: scrollkeeper
38 Requires(post,postun): desktop-file-utils
39 Requires(post,postun): gtk+2 >= 2:2.10.6
40 Requires(post,postun): scrollkeeper
41 Requires: cairo >= 1.2.4
42 Requires: djvulibre >= 3.5.17
43 Requires: gtk+2 >= 2:2.10.6
44 Requires: poppler-glib >= 0.5.9
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Evince is a document viewer for multiple document formats like pdf,
50 postscript, and many others. The goal of evince is to replace the
51 multiple document viewers that exist on the GNOME Desktop, like ggv,
52 gpdf, and xpdf with a single simple application.
54 This version doesn't use GNOME libraries, but only GTK+.
56 %description -l pl.UTF-8
57 Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf,
58 postscript i wielu innych. W zamierzeniach program ma zastąpić
59 przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i
60 xpdf jedną prostą aplikacją.
62 Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
65 Summary: Evince API documentation
66 Summary(pl.UTF-8): Dokumentacja API aplikacji Evince
68 Requires: gtk-doc-common
71 Evince API documentation.
73 This version doesn't use GNOME libraries, but only GTK+.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API aplikacji Evince.
78 Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+.
81 %setup -q -n %{_realname}-%{version}
92 %{!?with_apidocs:--disable-gtk-doc} \
93 %{!?with_apidocs:--disable-scrollkeeper} \
96 --disable-schemas-install \
98 %{!?with_dbus:--disable-dbus} \
106 --enable-thumbnailer \
109 --with-html-dir=%{_gtkdocdir} \
115 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT \
119 HTML_DIR=%{_gtkdocdir}
121 %find_lang %{_realname}
124 rm -rf $RPM_BUILD_ROOT
127 %update_desktop_database_post
128 %scrollkeeper_update_post
129 %update_icon_cache hicolor
134 %update_desktop_database_postun
135 %scrollkeeper_update_postun
136 %update_icon_cache hicolor
138 %files -f %{_realname}.lang
139 %defattr(644,root,root,755)
140 %doc AUTHORS ChangeLog NEWS README TODO
141 %attr(755,root,root) %{_bindir}/*
143 %{_datadir}/%{_realname}
144 %{_desktopdir}/*.desktop
146 %{_omf_dest_dir}/evince
150 %defattr(644,root,root,755)