]>
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 |
43b87b00 | 13 | Version: 1.22.2 |
f69d401f | 14 | Release: 1 |
9e71caa6 JB |
15 | License: GPL v2+ |
16 | Group: X11/Applications/Graphics | |
7746f0bd | 17 | Source0: http://pub.mate-desktop.org/releases/1.22/%{name}-%{version}.tar.xz |
43b87b00 | 18 | # Source0-md5: df62f45c4a843f0e575928adb7c4a82d |
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 |
d7594ec2 | 27 | BuildRequires: glib2-devel >= 1:2.50.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} |
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 | |
d7594ec2 | 53 | Requires(post,postun): glib2 >= 1:2.50.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 | |
f69d401f | 87 | Requires: cairo >= 1.10.0 |
d7594ec2 JP |
88 | Requires: glib2 >= 1:2.50.0 |
89 | Requires: gtk+3 >= 3.22 | |
f2e5a072 | 90 | Obsoletes: mate-document-viewer-libs |
9e71caa6 JB |
91 | |
92 | %description libs | |
93 | Atril shared libraries. | |
94 | ||
95 | %description libs -l pl.UTF-8 | |
96 | Biblioteki współdzielone przeglądarki Atril. | |
97 | ||
98 | %package devel | |
99 | Summary: Header files for Atril libraries | |
100 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek przeglądarki Atril | |
101 | Group: X11/Development/Libraries | |
102 | Requires: %{name}-libs = %{version}-%{release} | |
d7594ec2 JP |
103 | Requires: glib2-devel >= 1:2.50.0 |
104 | Requires: gtk+3-devel >= 3.22 | |
f2e5a072 | 105 | Obsoletes: mate-document-viewer-devel |
9e71caa6 JB |
106 | |
107 | %description devel | |
108 | Header files for Atril libraries. | |
109 | ||
110 | %description devel -l pl.UTF-8 | |
111 | Pliki nagłówkowe bibliotek przeglądarki Atril. | |
112 | ||
113 | %package apidocs | |
114 | Summary: Atril API documentation | |
115 | Summary(pl.UTF-8): Dokumentacja API aplikacji Atril | |
116 | Group: Documentation | |
117 | Requires: gtk-doc-common | |
f2e5a072 | 118 | Obsoletes: mate-document-viewer-apidocs |
76153e0c ER |
119 | %if "%{_rpmversion}" >= "5" |
120 | BuildArch: noarch | |
121 | %endif | |
9e71caa6 JB |
122 | |
123 | %description apidocs | |
124 | Atril API documentation. | |
125 | ||
126 | %description apidocs -l pl.UTF-8 | |
127 | Dokumentacja API aplikacji Atril. | |
128 | ||
129 | %package backend-djvu | |
130 | Summary: View DJVu documents with Atril | |
131 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu w przeglądarce Atril | |
132 | Group: X11/Applications | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | Requires: djvulibre >= 3.5.17 | |
f2e5a072 | 135 | Obsoletes: mate-document-viewer-backend-djvu |
9e71caa6 JB |
136 | |
137 | %description backend-djvu | |
138 | View DJVu documents with Atril. | |
139 | ||
140 | %description backend-djvu -l pl.UTF-8 | |
141 | Przeglądanie dokumentów DjVu w przeglądarce Atril. | |
142 | ||
143 | %package backend-dvi | |
144 | Summary: View DVI documents with Atril | |
145 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI w przeglądarce Atril | |
146 | Group: X11/Applications | |
147 | Requires: %{name} = %{version}-%{release} | |
f2e5a072 | 148 | Obsoletes: mate-document-viewer-backend-dvi |
9e71caa6 JB |
149 | |
150 | %description backend-dvi | |
151 | View DVI documents with Atril. | |
152 | ||
153 | %description backend-dvi -l pl.UTF-8 | |
154 | Przeglądanie dokumentów DVI w przeglądarce Atril. | |
155 | ||
f69d401f JB |
156 | %package backend-epub |
157 | Summary: View ePub documents with Atril | |
158 | Summary(pl.UTF-8): Przeglądanie dokumentów ePub w przeglądarce Atril | |
159 | Group: X11/Applications | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | Requires: libxml2 >= 1:2.5.0 | |
d34c4e44 | 162 | Requires: gtk-webkit4 >= 2.4.3 |
f69d401f JB |
163 | |
164 | %description backend-epub | |
165 | View ePub documents with Atril. | |
166 | ||
167 | %description backend-epub -l pl.UTF-8 | |
168 | Przeglądanie dokumentów ePub w przeglądarce Atril. | |
169 | ||
9e71caa6 JB |
170 | %package backend-pdf |
171 | Summary: View PDF documents with Atril | |
172 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF w przeglądarce Atril | |
173 | Group: X11/Applications | |
174 | Requires: %{name} = %{version}-%{release} | |
c7eae4d2 | 175 | Requires: poppler-glib >= 0.22.0 |
f2e5a072 | 176 | Obsoletes: mate-document-viewer-backend-pdf |
9e71caa6 JB |
177 | |
178 | %description backend-pdf | |
179 | View PDF documents with Atril. | |
180 | ||
181 | %description backend-pdf -l pl.UTF-8 | |
182 | Przeglądanie dokumentów PDF w przeglądarce Atril. | |
183 | ||
184 | %package backend-ps | |
185 | Summary: View PostScript documents with Atril | |
186 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript w przeglądarce Atril | |
187 | Group: X11/Applications | |
188 | Requires: %{name} = %{version}-%{release} | |
189 | Requires: libspectre >= 0.2.0 | |
f2e5a072 | 190 | Obsoletes: mate-document-viewer-backend-ps |
9e71caa6 JB |
191 | |
192 | %description backend-ps | |
193 | View PostScript documents with Atril. | |
194 | ||
195 | %description backend-ps -l pl.UTF-8 | |
196 | Przeglądanie dokumentów PostScript w przeglądarce Atril. | |
197 | ||
198 | %package backend-xps | |
199 | Summary: View XPS documents with Atril | |
200 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS w przeglądarce Atril | |
201 | Group: X11/Applications | |
202 | Requires: %{name} = %{version}-%{release} | |
c7eae4d2 | 203 | Requires: libgxps >= 0.2.1 |
f2e5a072 | 204 | Obsoletes: mate-document-viewer-backend-xps |
9e71caa6 JB |
205 | |
206 | %description backend-xps | |
207 | View XPS documents with Atril. | |
208 | ||
209 | %description backend-xps -l pl.UTF-8 | |
210 | Przeglądanie dokumentów XPS w przeglądarce Atril. | |
211 | ||
f2e5a072 | 212 | %package -n caja-extension-atril |
9e71caa6 JB |
213 | Summary: Atril extension for Caja file manager |
214 | Summary(pl.UTF-8): Rozszerzenie Atril dla zarządcy plików Caja | |
215 | Group: X11/Applications | |
216 | Requires: %{name} = %{version}-%{release} | |
3cea173b | 217 | Requires: caja >= 1.17.1 |
f2e5a072 | 218 | Obsoletes: mate-file-manager-extension-atril |
9e71caa6 | 219 | |
f2e5a072 | 220 | %description -n caja-extension-atril |
9e71caa6 JB |
221 | Shows Atril document properties in Caja file manager. |
222 | ||
f2e5a072 | 223 | %description -n caja-extension-atril -l pl.UTF-8 |
9e71caa6 JB |
224 | Pokazuje właściwości dokumentu przeglądarki Atril w zarządcy plików |
225 | Caja. | |
226 | ||
227 | %prep | |
228 | %setup -q | |
229 | ||
230 | %build | |
231 | %{__gtkdocize} | |
232 | %{__intltoolize} | |
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 JP |
264 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,nqo,pms,ur_PK} |
265 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{ie,kab,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 |