]>
Commit | Line | Data |
---|---|---|
c257d14f | 1 | # |
f70c2e57 | 2 | # - are schemas (thus GConf) needed? |
3 | # | |
c257d14f | 4 | # Conditional build: |
19208715 | 5 | %bcond_without dbus # disable DBUS support |
c257d14f | 6 | %bcond_without apidocs # disable gtk-doc |
7 | # | |
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 | |
11 | Name: evince-gtk | |
5aca2354 | 12 | Version: 2.19.92 |
c257d14f | 13 | Release: 1 |
14 | License: GPL v2 | |
15 | Group: X11/Applications/Graphics | |
afc35885 | 16 | Source0: http://ftp.gnome.org/pub/gnome/sources/evince/2.19/%{_realname}-%{version}.tar.bz2 |
5aca2354 | 17 | # Source0-md5: 274db35fee7c46b7d081e1ae86f495c2 |
c257d14f | 18 | Patch0: %{_realname}-desktop.patch |
19 | Patch1: %{_realname}-gs8.patch | |
c257d14f | 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 | |
5aca2354 | 34 | BuildRequires: poppler-glib-devel >= 0.6 |
c257d14f | 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 | |
5aca2354 | 44 | Requires: poppler-glib >= 0.6 |
c257d14f | 45 | Conflicts: evince |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
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. | |
53 | ||
54 | This version doesn't use GNOME libraries, but only GTK+. | |
55 | ||
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ą. | |
61 | ||
62 | Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+. | |
63 | ||
64 | %package apidocs | |
65 | Summary: Evince API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
67 | Group: Documentation | |
68 | Requires: gtk-doc-common | |
69 | ||
70 | %description apidocs | |
71 | Evince API documentation. | |
72 | ||
73 | This version doesn't use GNOME libraries, but only GTK+. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API aplikacji Evince. | |
77 | ||
78 | Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+. | |
79 | ||
80 | %prep | |
81 | %setup -q -n %{_realname}-%{version} | |
82 | %patch0 -p1 | |
83 | %patch1 -p1 | |
c257d14f | 84 | |
85 | %build | |
f70c2e57 | 86 | #%%{__intltoolize} |
87 | #%%{__aclocal} | |
88 | #%%{__autoconf} | |
89 | #%%{__autoheader} | |
90 | #%%{__automake} | |
c257d14f | 91 | %configure \ |
f70c2e57 | 92 | %{!?with_apidocs:--disable-gtk-doc} \ |
93 | %{!?with_apidocs:--disable-scrollkeeper} \ | |
c257d14f | 94 | --disable-nautilus \ |
95 | --disable-static \ | |
96 | --disable-schemas-install \ | |
97 | --enable-comics \ | |
f70c2e57 | 98 | %{!?with_dbus:--disable-dbus} \ |
c257d14f | 99 | --enable-djvu \ |
100 | --enable-dvi \ | |
101 | --enable-impress \ | |
f70c2e57 | 102 | --enable-pdf \ |
c257d14f | 103 | --enable-pixbuf \ |
f70c2e57 | 104 | --enable-ps \ |
105 | --enable-t1lib \ | |
106 | --enable-thumbnailer \ | |
c257d14f | 107 | --enable-tiff \ |
108 | --with-print=gtk \ | |
109 | --with-html-dir=%{_gtkdocdir} \ | |
110 | --without-libgnome | |
111 | ||
112 | %{__make} | |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT \ | |
119 | HTML_DIR=%{_gtkdocdir} | |
120 | ||
121 | %find_lang %{_realname} | |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %post | |
127 | %update_desktop_database_post | |
128 | %scrollkeeper_update_post | |
129 | %update_icon_cache hicolor | |
130 | ||
131 | %preun | |
132 | ||
133 | %postun | |
134 | %update_desktop_database_postun | |
135 | %scrollkeeper_update_postun | |
136 | %update_icon_cache hicolor | |
137 | ||
138 | %files -f %{_realname}.lang | |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS ChangeLog NEWS README TODO | |
141 | %attr(755,root,root) %{_bindir}/* | |
142 | %{_mandir}/man1/* | |
143 | %{_datadir}/%{_realname} | |
144 | %{_desktopdir}/*.desktop | |
145 | %{_iconsdir}/*/*/*/* | |
146 | %{_omf_dest_dir}/evince | |
147 | ||
148 | %if %{with apidocs} | |
149 | %files apidocs | |
150 | %defattr(644,root,root,755) | |
151 | %{_gtkdocdir}/* | |
152 | %endif |