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