]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - evince.desktop provides mimetypes for all possible choices, yet some of | |
3 | # them are in subpackages (backend-foo). multiple .desktop files is possible | |
4 | # for same application? | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without dbus # disable DBUS support | |
8 | %bcond_without apidocs # disable gtk-doc | |
9 | ||
10 | Summary: Document viewer for multiple document formats | |
11 | Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach | |
12 | Name: evince | |
13 | Version: 2.32.0 | |
14 | Release: 5 | |
15 | License: GPL v2 | |
16 | Group: X11/Applications/Graphics | |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/%{name}-%{version}.tar.bz2 | |
18 | # Source0-md5: ebc3ce6df8dcbf29cb9492f8dd031319 | |
19 | Patch0: %{name}-poppler.patch | |
20 | Patch1: %{name}-secfix.patch | |
21 | URL: http://www.gnome.org/projects/evince/ | |
22 | BuildRequires: GConf2-devel >= 2.24.0 | |
23 | BuildRequires: autoconf >= 2.57 | |
24 | BuildRequires: automake >= 1:1.10 | |
25 | BuildRequires: cairo-devel >= 1.10.0 | |
26 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.74} | |
27 | BuildRequires: djvulibre-devel >= 3.5.17 | |
28 | BuildRequires: docbook-dtd412-xml | |
29 | BuildRequires: gettext-devel | |
30 | BuildRequires: glib2-devel >= 1:2.26.0 | |
31 | BuildRequires: gnome-common >= 2.24.0 | |
32 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
33 | BuildRequires: gnome-icon-theme >= 2.26.0 | |
34 | BuildRequires: gtk+2-devel >= 2:2.22.0 | |
35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} | |
36 | BuildRequires: intltool >= 0.40.0 | |
37 | BuildRequires: kpathsea-devel | |
38 | BuildRequires: libgnome-keyring-devel >= 2.26.0 | |
39 | BuildRequires: libspectre-devel >= 0.2.0 | |
40 | BuildRequires: libtiff-devel | |
41 | BuildRequires: libtool | |
42 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
43 | BuildRequires: nautilus-devel >= 2.26.0 | |
44 | BuildRequires: pkgconfig | |
45 | BuildRequires: poppler-glib-devel >= 0.14.0 | |
46 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
47 | BuildRequires: rpmbuild(macros) >= 1.592 | |
48 | BuildRequires: scrollkeeper | |
49 | BuildRequires: t1lib-devel | |
50 | BuildRequires: xorg-lib-libSM-devel | |
51 | BuildRequires: zlib-devel | |
52 | Requires(post,postun): desktop-file-utils | |
53 | Requires(post,postun): glib2 >= 1:2.26.0 | |
54 | Requires(post,postun): gtk+2 | |
55 | Requires(post,postun): scrollkeeper | |
56 | Requires(post,preun): GConf2 | |
57 | Requires: dconf | |
58 | Requires: gtk+2 >= 2:2.22.0 | |
59 | Suggests: evince-backend-djvu | |
60 | Suggests: evince-backend-dvi | |
61 | Suggests: evince-backend-pdf | |
62 | Suggests: evince-backend-ps | |
63 | Suggests: gtk+2-cups | |
64 | Conflicts: evince-gtk | |
65 | # sr@Latn vs. sr@latin | |
66 | Conflicts: glibc-misc < 6:2.7 | |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
68 | ||
69 | %define backendsdir %{_libdir}/evince/3/backends | |
70 | ||
71 | %description | |
72 | Evince is a document viewer for multiple document formats like pdf, | |
73 | postscript, and many others. The goal of evince is to replace the | |
74 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
75 | gpdf, and xpdf with a single simple application. | |
76 | ||
77 | %description -l pl.UTF-8 | |
78 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
79 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
80 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
81 | xpdf jedną prostą aplikacją. | |
82 | ||
83 | %package devel | |
84 | Summary: Header files for Evince | |
85 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
86 | Group: X11/Development/Libraries | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | Requires: gtk+2-devel >= 2:2.22.0 | |
89 | ||
90 | %description devel | |
91 | Header files for Evince. | |
92 | ||
93 | %description devel -l pl.UTF-8 | |
94 | Pliki nagłówkowe Evince. | |
95 | ||
96 | %package apidocs | |
97 | Summary: Evince API documentation | |
98 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
99 | Group: Documentation | |
100 | Requires: gtk-doc-common | |
101 | ||
102 | %description apidocs | |
103 | Evince API documentation. | |
104 | ||
105 | %description apidocs -l pl.UTF-8 | |
106 | Dokumentacja API aplikacji Evince. | |
107 | ||
108 | %package -n nautilus-extension-evince | |
109 | Summary: Evince extension for Nautilus | |
110 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
111 | Group: X11/Applications | |
112 | Requires: %{name} = %{version}-%{release} | |
113 | Requires: nautilus >= 2.26.0 | |
114 | ||
115 | %description -n nautilus-extension-evince | |
116 | Shows Evince document properties in Nautilus. | |
117 | ||
118 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
119 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
120 | ||
121 | %package backend-djvu | |
122 | Summary: View DJVu documents with Evince | |
123 | Group: X11/Applications | |
124 | Requires(post,preun): GConf2 | |
125 | Requires: %{name} = %{version}-%{release} | |
126 | Requires: djvulibre >= 3.5.17 | |
127 | ||
128 | %description backend-djvu | |
129 | View DJVu documents with Evince. | |
130 | ||
131 | %package backend-dvi | |
132 | Summary: View DVI documents with Evince | |
133 | Group: X11/Applications | |
134 | Requires(post,preun): GConf2 | |
135 | Requires: %{name} = %{version}-%{release} | |
136 | ||
137 | %description backend-dvi | |
138 | View DVI documents with Evince. | |
139 | ||
140 | %package backend-pdf | |
141 | Summary: View PDF documents with Evince | |
142 | Group: X11/Applications | |
143 | Requires(post,preun): GConf2 | |
144 | Requires: %{name} = %{version}-%{release} | |
145 | Requires: poppler-glib >= 0.14.0 | |
146 | ||
147 | %description backend-pdf | |
148 | View PDF documents with Evince. | |
149 | ||
150 | %package backend-ps | |
151 | Summary: View Postscript documents with Evince | |
152 | Group: X11/Applications | |
153 | Requires(post,preun): GConf2 | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | ||
156 | %description backend-ps | |
157 | View Postscript documents with Evince. | |
158 | ||
159 | %prep | |
160 | %setup -q | |
161 | %patch0 -p1 | |
162 | %patch1 -p1 | |
163 | ||
164 | %build | |
165 | %{__gtkdocize} | |
166 | %{__intltoolize} | |
167 | %{__libtoolize} | |
168 | %{__aclocal} -I m4 | |
169 | %{__autoconf} | |
170 | %{__autoheader} | |
171 | %{__automake} | |
172 | %configure \ | |
173 | %{?with_apidocs:--enable-gtk-doc} \ | |
174 | --disable-static \ | |
175 | --disable-schemas-install \ | |
176 | --disable-silent-rules \ | |
177 | --enable-comics \ | |
178 | --enable-djvu \ | |
179 | --enable-dvi \ | |
180 | --enable-impress \ | |
181 | --enable-t1lib \ | |
182 | --enable-nautilus \ | |
183 | --enable-pdf \ | |
184 | --enable-pixbuf \ | |
185 | --enable-tiff \ | |
186 | --with-html-dir=%{_gtkdocdir} | |
187 | %{__make} | |
188 | ||
189 | %install | |
190 | rm -rf $RPM_BUILD_ROOT | |
191 | ||
192 | %{__make} install \ | |
193 | DESTDIR=$RPM_BUILD_ROOT | |
194 | ||
195 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la | |
196 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
197 | ||
198 | %find_lang %{name} --with-gnome --with-omf | |
199 | ||
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
203 | %post | |
204 | /sbin/ldconfig | |
205 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
206 | %gconf_schema_install evince-thumbnailer.schemas | |
207 | %update_desktop_database_post | |
208 | %scrollkeeper_update_post | |
209 | %update_icon_cache hicolor | |
210 | %glib_compile_schemas | |
211 | ||
212 | %preun | |
213 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
214 | %gconf_schema_uninstall evince-thumbnailer.schemas | |
215 | ||
216 | %postun | |
217 | /sbin/ldconfig | |
218 | %update_desktop_database_postun | |
219 | %scrollkeeper_update_postun | |
220 | %update_icon_cache hicolor | |
221 | %glib_compile_schemas | |
222 | ||
223 | %post backend-djvu | |
224 | %gconf_schema_install evince-thumbnailer-djvu.schemas | |
225 | ||
226 | %preun backend-djvu | |
227 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas | |
228 | ||
229 | %post backend-dvi | |
230 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
231 | ||
232 | %preun backend-dvi | |
233 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
234 | ||
235 | %post backend-ps | |
236 | %gconf_schema_install evince-thumbnailer-ps.schemas | |
237 | ||
238 | %preun backend-ps | |
239 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas | |
240 | ||
241 | %files -f %{name}.lang | |
242 | %defattr(644,root,root,755) | |
243 | %doc AUTHORS ChangeLog NEWS README TODO | |
244 | %attr(755,root,root) %{_bindir}/evince | |
245 | %attr(755,root,root) %{_bindir}/evince-previewer | |
246 | %attr(755,root,root) %{_bindir}/evince-thumbnailer | |
247 | %attr(755,root,root) %{_libdir}/evince-convert-metadata | |
248 | %attr(755,root,root) %{_libdir}/evinced | |
249 | %attr(755,root,root) %{_libdir}/libevdocument.so.*.*.* | |
250 | %attr(755,root,root) %ghost %{_libdir}/libevdocument.so.3 | |
251 | %attr(755,root,root) %{_libdir}/libevview.so.*.*.* | |
252 | %attr(755,root,root) %ghost %{_libdir}/libevview.so.3 | |
253 | %dir %{_libdir}/evince | |
254 | %dir %{_libdir}/evince/3 | |
255 | %dir %{backendsdir} | |
256 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
257 | %{backendsdir}/comicsdocument.evince-backend | |
258 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so | |
259 | %{backendsdir}/impressdocument.evince-backend | |
260 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so | |
261 | %{backendsdir}/pixbufdocument.evince-backend | |
262 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so | |
263 | %{backendsdir}/tiffdocument.evince-backend | |
264 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
265 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas | |
266 | %{_datadir}/GConf/gsettings/evince.convert | |
267 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service | |
268 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml | |
269 | %{_datadir}/%{name} | |
270 | %{_mandir}/man1/evince.1* | |
271 | %{_desktopdir}/evince.desktop | |
272 | %{_iconsdir}/hicolor/*/*/*.png | |
273 | %{_iconsdir}/hicolor/*/*/*.svg | |
274 | ||
275 | %files backend-djvu | |
276 | %defattr(644,root,root,755) | |
277 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so | |
278 | %{backendsdir}/djvudocument.evince-backend | |
279 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas | |
280 | ||
281 | %files backend-dvi | |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{backendsdir}/libdvidocument.so | |
284 | %{backendsdir}/dvidocument.evince-backend | |
285 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
286 | ||
287 | %files backend-ps | |
288 | %defattr(644,root,root,755) | |
289 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
290 | %{backendsdir}/psdocument.evince-backend | |
291 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas | |
292 | ||
293 | %files backend-pdf | |
294 | %defattr(644,root,root,755) | |
295 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so | |
296 | %{backendsdir}/pdfdocument.evince-backend | |
297 | ||
298 | %files devel | |
299 | %defattr(644,root,root,755) | |
300 | %attr(755,root,root) %{_libdir}/libevdocument.so | |
301 | %attr(755,root,root) %{_libdir}/libevview.so | |
302 | %{_libdir}/libevdocument.la | |
303 | %{_libdir}/libevview.la | |
304 | %{_includedir}/evince | |
305 | %{_pkgconfigdir}/evince-document-*.pc | |
306 | %{_pkgconfigdir}/evince-view-*.pc | |
307 | ||
308 | %if %{with apidocs} | |
309 | %files apidocs | |
310 | %defattr(644,root,root,755) | |
311 | %{_gtkdocdir}/evince | |
312 | %{_gtkdocdir}/libevdocument-* | |
313 | %{_gtkdocdir}/libevview-* | |
314 | %endif | |
315 | ||
316 | %files -n nautilus-extension-evince | |
317 | %defattr(644,root,root,755) | |
318 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |