]>
Commit | Line | Data |
---|---|---|
9e71caa6 JB |
1 | # TODO |
2 | # - atril.desktop provides mimetypes for all possible choices, yet some of | |
3 | # them are in subpackages (backend-foo). Are multiple .desktop files possible | |
4 | # for the same application? | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without apidocs # gtk-doc documentation | |
f2e5a072 | 8 | %bcond_without caja # Caja plugin |
af689908 JP |
9 | %bcond_without djvu # DJVU support |
10 | %bcond_without dvi # DVI support | |
11 | %bcond_without epub # ePub support | |
12 | %bcond_without ps # PostScript support | |
13 | %bcond_without xps # XPS support | |
9e71caa6 JB |
14 | |
15 | Summary: Atril - MATE Desktop document viewer for multiple document formats | |
16 | Summary(pl.UTF-8): Atril - przeglądarka dokumentów w wielu formatach dla środowiska MATE | |
f2e5a072 | 17 | Name: atril |
1a12885e | 18 | Version: 1.24.0 |
f69d401f | 19 | Release: 1 |
9e71caa6 JB |
20 | License: GPL v2+ |
21 | Group: X11/Applications/Graphics | |
1a12885e JP |
22 | Source0: http://pub.mate-desktop.org/releases/1.24/%{name}-%{version}.tar.xz |
23 | # Source0-md5: 83a1ca50dee0ac8bcd8aa9f75dc304f8 | |
9e71caa6 JB |
24 | URL: http://mate-desktop.org/ |
25 | BuildRequires: autoconf >= 2.57 | |
26 | BuildRequires: automake >= 1:1.10 | |
1a12885e | 27 | BuildRequires: cairo-devel >= 1.14.0 |
3cea173b | 28 | %{?with_caja:BuildRequires: caja-devel >= 1.17.1} |
af689908 | 29 | %{?with_djvu:BuildRequires: djvulibre-devel >= 3.5.17} |
9e71caa6 | 30 | BuildRequires: docbook-dtd412-xml |
1a12885e JP |
31 | BuildRequires: gettext-tools >= 0.19.8 |
32 | BuildRequires: glib2-devel >= 1:2.62.0 | |
9e71caa6 | 33 | BuildRequires: gobject-introspection-devel >= 0.6 |
d7594ec2 | 34 | BuildRequires: gtk+3-devel >= 3.22 |
9e71caa6 | 35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
af689908 JP |
36 | %{?with_epub:BuildRequires: gtk-webkit4-devel >= 2.6.0} |
37 | %{?with_dvi:BuildRequires: kpathsea-devel} | |
38 | %{?with_xps:BuildRequires: libgxps-devel >= 0.2.1} | |
f2e5a072 | 39 | BuildRequires: libsecret-devel >= 0.15 |
af689908 | 40 | %if %{with dvi} || %{with ps} |
9e71caa6 | 41 | BuildRequires: libspectre-devel >= 0.2.0 |
af689908 | 42 | %endif |
f2e5a072 | 43 | BuildRequires: libtiff-devel >= 3.6 |
9e71caa6 JB |
44 | BuildRequires: libtool >= 1:1.4.3 |
45 | BuildRequires: libxml2-devel >= 1:2.5.0 | |
46 | BuildRequires: mate-common | |
9e71caa6 | 47 | BuildRequires: pkgconfig |
c7eae4d2 | 48 | BuildRequires: poppler-glib-devel >= 0.22.0 |
c4f6a93a | 49 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
9e71caa6 | 50 | BuildRequires: rpmbuild(macros) >= 1.592 |
1a12885e | 51 | BuildRequires: synctex-devel >= 1.21 |
9e71caa6 JB |
52 | BuildRequires: t1lib-devel |
53 | BuildRequires: tar >= 1:1.22 | |
54 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 | |
55 | BuildRequires: xorg-lib-libX11-devel | |
56 | BuildRequires: xz | |
f2e5a072 | 57 | BuildRequires: yelp-tools |
9e71caa6 JB |
58 | BuildRequires: zlib-devel |
59 | Requires(post,postun): desktop-file-utils | |
1a12885e | 60 | Requires(post,postun): glib2 >= 1:2.62.0 |
9e71caa6 JB |
61 | Requires(post,postun): gtk-update-icon-cache |
62 | Requires(post,postun): hicolor-icon-theme | |
9e71caa6 | 63 | Requires: %{name}-libs = %{version}-%{release} |
d7594ec2 | 64 | Requires: gtk+3 >= 3.22 |
910de732 | 65 | Requires: libsecret >= 0.15 |
8faf1077 | 66 | Requires: libtiff >= 3.6 |
910de732 | 67 | Requires: libxml2 >= 1:2.5.0 |
9e71caa6 | 68 | Requires: xorg-lib-libSM >= 1.0.0 |
f2e5a072 JP |
69 | Suggests: atril-backend-djvu |
70 | Suggests: atril-backend-dvi | |
71 | Suggests: atril-backend-pdf | |
72 | Suggests: atril-backend-ps | |
73 | Suggests: atril-backend-xps | |
163c7242 | 74 | Suggests: gtk+3-cups >= 3.22 |
9e71caa6 | 75 | # sr@Latn vs. sr@latin |
f2e5a072 | 76 | Obsoletes: mate-document-viewer |
9e71caa6 JB |
77 | Conflicts: glibc-misc < 6:2.7 |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
79 | ||
f2e5a072 | 80 | %define backendsdir %{_libdir}/atril/3/backends |
9e71caa6 JB |
81 | |
82 | %description | |
83 | Atril is a document viewer for multiple document formats like PDF and | |
84 | PostScript. Atril is a fork of Evince. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Atril jest przeglądarką dokumentów w wielu formatach takich jak PDF | |
88 | czy PostScript. Jest to odgałęzienie pakietu Evince. | |
89 | ||
90 | %package libs | |
91 | Summary: Atril shared libraries | |
92 | Summary(pl.UTF-8): Biblioteki współdzielone przeglądarki Atril | |
93 | Group: X11/Libraries | |
1a12885e JP |
94 | Requires: cairo >= 1.14.0 |
95 | Requires: glib2 >= 1:2.62.0 | |
d7594ec2 | 96 | Requires: gtk+3 >= 3.22 |
1a12885e | 97 | Requires: synctex-libs >= 1.21 |
f2e5a072 | 98 | Obsoletes: mate-document-viewer-libs |
9e71caa6 JB |
99 | |
100 | %description libs | |
101 | Atril shared libraries. | |
102 | ||
103 | %description libs -l pl.UTF-8 | |
104 | Biblioteki współdzielone przeglądarki Atril. | |
105 | ||
106 | %package devel | |
107 | Summary: Header files for Atril libraries | |
108 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek przeglądarki Atril | |
109 | Group: X11/Development/Libraries | |
110 | Requires: %{name}-libs = %{version}-%{release} | |
1a12885e | 111 | Requires: glib2-devel >= 1:2.62.0 |
d7594ec2 | 112 | Requires: gtk+3-devel >= 3.22 |
f2e5a072 | 113 | Obsoletes: mate-document-viewer-devel |
9e71caa6 JB |
114 | |
115 | %description devel | |
116 | Header files for Atril libraries. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | Pliki nagłówkowe bibliotek przeglądarki Atril. | |
120 | ||
121 | %package apidocs | |
122 | Summary: Atril API documentation | |
123 | Summary(pl.UTF-8): Dokumentacja API aplikacji Atril | |
124 | Group: Documentation | |
125 | Requires: gtk-doc-common | |
f2e5a072 | 126 | Obsoletes: mate-document-viewer-apidocs |
76153e0c | 127 | BuildArch: noarch |
9e71caa6 JB |
128 | |
129 | %description apidocs | |
130 | Atril API documentation. | |
131 | ||
132 | %description apidocs -l pl.UTF-8 | |
133 | Dokumentacja API aplikacji Atril. | |
134 | ||
135 | %package backend-djvu | |
136 | Summary: View DJVu documents with Atril | |
137 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu w przeglądarce Atril | |
138 | Group: X11/Applications | |
139 | Requires: %{name} = %{version}-%{release} | |
140 | Requires: djvulibre >= 3.5.17 | |
f2e5a072 | 141 | Obsoletes: mate-document-viewer-backend-djvu |
9e71caa6 JB |
142 | |
143 | %description backend-djvu | |
144 | View DJVu documents with Atril. | |
145 | ||
146 | %description backend-djvu -l pl.UTF-8 | |
147 | Przeglądanie dokumentów DjVu w przeglądarce Atril. | |
148 | ||
149 | %package backend-dvi | |
150 | Summary: View DVI documents with Atril | |
151 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI w przeglądarce Atril | |
152 | Group: X11/Applications | |
153 | Requires: %{name} = %{version}-%{release} | |
f2e5a072 | 154 | Obsoletes: mate-document-viewer-backend-dvi |
9e71caa6 JB |
155 | |
156 | %description backend-dvi | |
157 | View DVI documents with Atril. | |
158 | ||
159 | %description backend-dvi -l pl.UTF-8 | |
160 | Przeglądanie dokumentów DVI w przeglądarce Atril. | |
161 | ||
f69d401f JB |
162 | %package backend-epub |
163 | Summary: View ePub documents with Atril | |
164 | Summary(pl.UTF-8): Przeglądanie dokumentów ePub w przeglądarce Atril | |
165 | Group: X11/Applications | |
166 | Requires: %{name} = %{version}-%{release} | |
167 | Requires: libxml2 >= 1:2.5.0 | |
1a12885e | 168 | Requires: gtk-webkit4 >= 2.6.0 |
f69d401f JB |
169 | |
170 | %description backend-epub | |
171 | View ePub documents with Atril. | |
172 | ||
173 | %description backend-epub -l pl.UTF-8 | |
174 | Przeglądanie dokumentów ePub w przeglądarce Atril. | |
175 | ||
9e71caa6 JB |
176 | %package backend-pdf |
177 | Summary: View PDF documents with Atril | |
178 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF w przeglądarce Atril | |
179 | Group: X11/Applications | |
180 | Requires: %{name} = %{version}-%{release} | |
c7eae4d2 | 181 | Requires: poppler-glib >= 0.22.0 |
f2e5a072 | 182 | Obsoletes: mate-document-viewer-backend-pdf |
9e71caa6 JB |
183 | |
184 | %description backend-pdf | |
185 | View PDF documents with Atril. | |
186 | ||
187 | %description backend-pdf -l pl.UTF-8 | |
188 | Przeglądanie dokumentów PDF w przeglądarce Atril. | |
189 | ||
190 | %package backend-ps | |
191 | Summary: View PostScript documents with Atril | |
192 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript w przeglądarce Atril | |
193 | Group: X11/Applications | |
194 | Requires: %{name} = %{version}-%{release} | |
195 | Requires: libspectre >= 0.2.0 | |
f2e5a072 | 196 | Obsoletes: mate-document-viewer-backend-ps |
9e71caa6 JB |
197 | |
198 | %description backend-ps | |
199 | View PostScript documents with Atril. | |
200 | ||
201 | %description backend-ps -l pl.UTF-8 | |
202 | Przeglądanie dokumentów PostScript w przeglądarce Atril. | |
203 | ||
204 | %package backend-xps | |
205 | Summary: View XPS documents with Atril | |
206 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS w przeglądarce Atril | |
207 | Group: X11/Applications | |
208 | Requires: %{name} = %{version}-%{release} | |
c7eae4d2 | 209 | Requires: libgxps >= 0.2.1 |
f2e5a072 | 210 | Obsoletes: mate-document-viewer-backend-xps |
9e71caa6 JB |
211 | |
212 | %description backend-xps | |
213 | View XPS documents with Atril. | |
214 | ||
215 | %description backend-xps -l pl.UTF-8 | |
216 | Przeglądanie dokumentów XPS w przeglądarce Atril. | |
217 | ||
f2e5a072 | 218 | %package -n caja-extension-atril |
9e71caa6 JB |
219 | Summary: Atril extension for Caja file manager |
220 | Summary(pl.UTF-8): Rozszerzenie Atril dla zarządcy plików Caja | |
221 | Group: X11/Applications | |
222 | Requires: %{name} = %{version}-%{release} | |
3cea173b | 223 | Requires: caja >= 1.17.1 |
f2e5a072 | 224 | Obsoletes: mate-file-manager-extension-atril |
9e71caa6 | 225 | |
f2e5a072 | 226 | %description -n caja-extension-atril |
9e71caa6 JB |
227 | Shows Atril document properties in Caja file manager. |
228 | ||
f2e5a072 | 229 | %description -n caja-extension-atril -l pl.UTF-8 |
9e71caa6 JB |
230 | Pokazuje właściwości dokumentu przeglądarki Atril w zarządcy plików |
231 | Caja. | |
232 | ||
233 | %prep | |
234 | %setup -q | |
235 | ||
236 | %build | |
237 | %{__gtkdocize} | |
9e71caa6 JB |
238 | %{__libtoolize} |
239 | %{__aclocal} -I m4 | |
240 | %{__autoconf} | |
241 | %{__autoheader} | |
242 | %{__automake} | |
243 | %configure \ | |
244 | %{!?with_caja:--disable-caja} \ | |
245 | --enable-comics \ | |
af689908 JP |
246 | %{__enable_disable djvu} \ |
247 | %{__enable_disable dvi} \ | |
248 | %{__enable_disable epub} \ | |
9e71caa6 JB |
249 | %{?with_apidocs:--enable-gtk-doc} \ |
250 | --enable-introspection \ | |
251 | --enable-t1lib \ | |
252 | --enable-pdf \ | |
253 | --enable-pixbuf \ | |
af689908 | 254 | %{__enable_disable ps} \ |
b772e0bf | 255 | --disable-schemas-compile \ |
9e71caa6 JB |
256 | --disable-silent-rules \ |
257 | --disable-static \ | |
258 | --enable-tiff \ | |
af689908 | 259 | %{__enable_disable xps} \ |
9e71caa6 JB |
260 | --with-html-dir=%{_gtkdocdir} |
261 | %{__make} | |
262 | ||
263 | %install | |
264 | rm -rf $RPM_BUILD_ROOT | |
265 | ||
266 | %{__make} install \ | |
267 | DESTDIR=$RPM_BUILD_ROOT | |
268 | ||
269 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libatril*.la | |
270 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/atril/3/backends/*.la | |
271 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la | |
43b87b00 | 272 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,nqo,pms,ur_PK} |
b65a8d15 | 273 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{ie,ku_IQ} |
9e71caa6 | 274 | |
910de732 | 275 | %find_lang atril --with-mate |
9e71caa6 JB |
276 | |
277 | %clean | |
278 | rm -rf $RPM_BUILD_ROOT | |
279 | ||
280 | %post | |
281 | %update_desktop_database_post | |
9e71caa6 JB |
282 | %update_icon_cache hicolor |
283 | %glib_compile_schemas | |
284 | ||
285 | %postun | |
286 | %update_desktop_database_postun | |
9e71caa6 JB |
287 | %update_icon_cache hicolor |
288 | %glib_compile_schemas | |
289 | ||
290 | %post libs -p /sbin/ldconfig | |
291 | %postun libs -p /sbin/ldconfig | |
292 | ||
293 | %files -f atril.lang | |
294 | %defattr(644,root,root,755) | |
84827586 | 295 | %doc AUTHORS ChangeLog NEWS README |
9e71caa6 JB |
296 | %attr(755,root,root) %{_bindir}/atril |
297 | %attr(755,root,root) %{_bindir}/atril-previewer | |
298 | %attr(755,root,root) %{_bindir}/atril-thumbnailer | |
9e71caa6 JB |
299 | %attr(755,root,root) %{_libexecdir}/atrild |
300 | %dir %{_libdir}/atril | |
301 | %dir %{_libdir}/atril/3 | |
302 | %dir %{_libdir}/atril/3/backends | |
303 | %attr(755,root,root) %{_libdir}/atril/3/backends/libcomicsdocument.so | |
304 | %{_libdir}/atril/3/backends/comicsdocument.atril-backend | |
305 | %attr(755,root,root) %{_libdir}/atril/3/backends/libpixbufdocument.so | |
306 | %{_libdir}/atril/3/backends/pixbufdocument.atril-backend | |
307 | %attr(755,root,root) %{_libdir}/atril/3/backends/libtiffdocument.so | |
308 | %{_libdir}/atril/3/backends/tiffdocument.atril-backend | |
f69d401f | 309 | %{_datadir}/atril |
7746f0bd | 310 | %{_datadir}/metainfo/atril.appdata.xml |
9e71caa6 JB |
311 | %{_datadir}/dbus-1/services/org.mate.atril.Daemon.service |
312 | %{_datadir}/glib-2.0/schemas/org.mate.Atril.gschema.xml | |
9e71caa6 JB |
313 | %{_datadir}/thumbnailers/atril.thumbnailer |
314 | %{_mandir}/man1/atril.1* | |
315 | %{_mandir}/man1/atril-previewer.1* | |
316 | %{_mandir}/man1/atril-thumbnailer.1* | |
317 | %{_desktopdir}/atril.desktop | |
318 | %{_iconsdir}/hicolor/*x*/apps/atril.png | |
319 | %{_iconsdir}/hicolor/scalable/apps/atril.svg | |
320 | ||
321 | %files libs | |
322 | %defattr(644,root,root,755) | |
323 | %attr(755,root,root) %{_libdir}/libatrildocument.so.*.*.* | |
324 | %attr(755,root,root) %ghost %{_libdir}/libatrildocument.so.3 | |
325 | %attr(755,root,root) %{_libdir}/libatrilview.so.*.*.* | |
326 | %attr(755,root,root) %ghost %{_libdir}/libatrilview.so.3 | |
327 | %{_libdir}/girepository-1.0/AtrilDocument-1.5.0.typelib | |
328 | %{_libdir}/girepository-1.0/AtrilView-1.5.0.typelib | |
329 | ||
330 | %files devel | |
331 | %defattr(644,root,root,755) | |
332 | %attr(755,root,root) %{_libdir}/libatrildocument.so | |
333 | %attr(755,root,root) %{_libdir}/libatrilview.so | |
334 | %{_datadir}/gir-1.0/AtrilDocument-1.5.0.gir | |
335 | %{_datadir}/gir-1.0/AtrilView-1.5.0.gir | |
336 | %{_includedir}/atril | |
337 | %{_pkgconfigdir}/atril-document-1.5.0.pc | |
338 | %{_pkgconfigdir}/atril-view-1.5.0.pc | |
339 | ||
340 | %if %{with apidocs} | |
341 | %files apidocs | |
342 | %defattr(644,root,root,755) | |
343 | %{_gtkdocdir}/atril | |
344 | %{_gtkdocdir}/libatrildocument-1.5.0 | |
345 | %{_gtkdocdir}/libatrilview-1.5.0 | |
346 | %endif | |
347 | ||
af689908 | 348 | %if %{with djvu} |
9e71caa6 JB |
349 | %files backend-djvu |
350 | %defattr(644,root,root,755) | |
351 | %attr(755,root,root) %{_libdir}/atril/3/backends/libdjvudocument.so | |
352 | %{_libdir}/atril/3/backends/djvudocument.atril-backend | |
af689908 | 353 | %endif |
9e71caa6 | 354 | |
af689908 | 355 | %if %{with dvi} |
9e71caa6 JB |
356 | %files backend-dvi |
357 | %defattr(644,root,root,755) | |
358 | %attr(755,root,root) %{_libdir}/atril/3/backends/libdvidocument.so | |
359 | %{_libdir}/atril/3/backends/dvidocument.atril-backend | |
af689908 | 360 | %endif |
9e71caa6 | 361 | |
af689908 | 362 | %if %{with epub} |
f69d401f JB |
363 | %files backend-epub |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{_libdir}/atril/3/backends/libepubdocument.so | |
366 | %{_libdir}/atril/3/backends/epubdocument.atril-backend | |
af689908 | 367 | %endif |
f69d401f | 368 | |
f5d06452 JB |
369 | %files backend-pdf |
370 | %defattr(644,root,root,755) | |
371 | %attr(755,root,root) %{_libdir}/atril/3/backends/libpdfdocument.so | |
372 | %{_libdir}/atril/3/backends/pdfdocument.atril-backend | |
373 | ||
af689908 | 374 | %if %{with ps} |
9e71caa6 JB |
375 | %files backend-ps |
376 | %defattr(644,root,root,755) | |
377 | %attr(755,root,root) %{_libdir}/atril/3/backends/libpsdocument.so | |
378 | %{_libdir}/atril/3/backends/psdocument.atril-backend | |
af689908 | 379 | %endif |
9e71caa6 | 380 | |
af689908 | 381 | %if %{with xps} |
9e71caa6 JB |
382 | %files backend-xps |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{_libdir}/atril/3/backends/libxpsdocument.so | |
385 | %{_libdir}/atril/3/backends/xpsdocument.atril-backend | |
af689908 | 386 | %endif |
9e71caa6 JB |
387 | |
388 | %if %{with caja} | |
f2e5a072 | 389 | %files -n caja-extension-atril |
9e71caa6 JB |
390 | %defattr(644,root,root,755) |
391 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libatril-properties-page.so | |
f69d401f | 392 | %{_datadir}/caja/extensions/libatril-properties-page.caja-extension |
9e71caa6 | 393 | %endif |