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