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