up to 1.20.3
[packages/atril.git] / atril.spec
CommitLineData
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
10Summary: Atril - MATE Desktop document viewer for multiple document formats
11Summary(pl.UTF-8): Atril - przeglądarka dokumentów w wielu formatach dla środowiska MATE
f2e5a072 12Name: atril
6145c2ab 13Version: 1.20.3
f69d401f 14Release: 1
9e71caa6
JB
15License: GPL v2+
16Group: X11/Applications/Graphics
d7594ec2 17Source0: http://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz
6145c2ab 18# Source0-md5: 407ce013be8523069cb87ed407486946
9e71caa6
JB
19URL: http://mate-desktop.org/
20BuildRequires: autoconf >= 2.57
21BuildRequires: automake >= 1:1.10
22BuildRequires: cairo-devel >= 1.10.0
3cea173b 23%{?with_caja:BuildRequires: caja-devel >= 1.17.1}
9e71caa6
JB
24BuildRequires: djvulibre-devel >= 3.5.17
25BuildRequires: docbook-dtd412-xml
f5635898 26BuildRequires: gettext-tools >= 0.10.40
d7594ec2 27BuildRequires: glib2-devel >= 1:2.50.0
9e71caa6 28BuildRequires: gobject-introspection-devel >= 0.6
d7594ec2 29BuildRequires: gtk+3-devel >= 3.22
9e71caa6 30%{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
3cea173b 31BuildRequires: gtk-webkit4-devel >= 2.4.3
7deba439 32BuildRequires: intltool >= 0.50.1
9e71caa6 33BuildRequires: kpathsea-devel
c7eae4d2 34BuildRequires: libgxps-devel >= 0.2.1
f2e5a072 35BuildRequires: libsecret-devel >= 0.15
9e71caa6 36BuildRequires: libspectre-devel >= 0.2.0
f2e5a072 37BuildRequires: libtiff-devel >= 3.6
9e71caa6
JB
38BuildRequires: libtool >= 1:1.4.3
39BuildRequires: libxml2-devel >= 1:2.5.0
40BuildRequires: mate-common
9e71caa6 41BuildRequires: pkgconfig
c7eae4d2 42BuildRequires: poppler-glib-devel >= 0.22.0
c4f6a93a 43BuildRequires: rpmbuild(find_lang) >= 1.36
9e71caa6 44BuildRequires: rpmbuild(macros) >= 1.592
9e71caa6
JB
45BuildRequires: t1lib-devel
46BuildRequires: tar >= 1:1.22
47BuildRequires: xorg-lib-libSM-devel >= 1.0.0
48BuildRequires: xorg-lib-libX11-devel
49BuildRequires: xz
f2e5a072 50BuildRequires: yelp-tools
9e71caa6
JB
51BuildRequires: zlib-devel
52Requires(post,postun): desktop-file-utils
d7594ec2 53Requires(post,postun): glib2 >= 1:2.50.0
9e71caa6
JB
54Requires(post,postun): gtk-update-icon-cache
55Requires(post,postun): hicolor-icon-theme
9e71caa6 56Requires: %{name}-libs = %{version}-%{release}
d7594ec2 57Requires: gtk+3 >= 3.22
910de732 58Requires: libsecret >= 0.15
8faf1077 59Requires: libtiff >= 3.6
910de732 60Requires: libxml2 >= 1:2.5.0
9e71caa6 61Requires: xorg-lib-libSM >= 1.0.0
f2e5a072
JP
62Suggests: atril-backend-djvu
63Suggests: atril-backend-dvi
64Suggests: atril-backend-pdf
65Suggests: atril-backend-ps
66Suggests: atril-backend-xps
8faf1077 67Suggests: gtk+3-cups >= 3.14
9e71caa6 68# sr@Latn vs. sr@latin
f2e5a072 69Obsoletes: mate-document-viewer
9e71caa6
JB
70Conflicts: glibc-misc < 6:2.7
71BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
72
f2e5a072 73%define backendsdir %{_libdir}/atril/3/backends
9e71caa6
JB
74
75%description
76Atril is a document viewer for multiple document formats like PDF and
77PostScript. Atril is a fork of Evince.
78
79%description -l pl.UTF-8
80Atril jest przeglądarką dokumentów w wielu formatach takich jak PDF
81czy PostScript. Jest to odgałęzienie pakietu Evince.
82
83%package libs
84Summary: Atril shared libraries
85Summary(pl.UTF-8): Biblioteki współdzielone przeglądarki Atril
86Group: X11/Libraries
f69d401f 87Requires: cairo >= 1.10.0
d7594ec2
JP
88Requires: glib2 >= 1:2.50.0
89Requires: gtk+3 >= 3.22
f2e5a072 90Obsoletes: mate-document-viewer-libs
9e71caa6
JB
91
92%description libs
93Atril shared libraries.
94
95%description libs -l pl.UTF-8
96Biblioteki współdzielone przeglądarki Atril.
97
98%package devel
99Summary: Header files for Atril libraries
100Summary(pl.UTF-8): Pliki nagłówkowe bibliotek przeglądarki Atril
101Group: X11/Development/Libraries
102Requires: %{name}-libs = %{version}-%{release}
d7594ec2
JP
103Requires: glib2-devel >= 1:2.50.0
104Requires: gtk+3-devel >= 3.22
f2e5a072 105Obsoletes: mate-document-viewer-devel
9e71caa6
JB
106
107%description devel
108Header files for Atril libraries.
109
110%description devel -l pl.UTF-8
111Pliki nagłówkowe bibliotek przeglądarki Atril.
112
113%package apidocs
114Summary: Atril API documentation
115Summary(pl.UTF-8): Dokumentacja API aplikacji Atril
116Group: Documentation
117Requires: gtk-doc-common
f2e5a072 118Obsoletes: mate-document-viewer-apidocs
76153e0c
ER
119%if "%{_rpmversion}" >= "5"
120BuildArch: noarch
121%endif
9e71caa6
JB
122
123%description apidocs
124Atril API documentation.
125
126%description apidocs -l pl.UTF-8
127Dokumentacja API aplikacji Atril.
128
129%package backend-djvu
130Summary: View DJVu documents with Atril
131Summary(pl.UTF-8): Przeglądanie dokumentów DjVu w przeglądarce Atril
132Group: X11/Applications
133Requires: %{name} = %{version}-%{release}
134Requires: djvulibre >= 3.5.17
f2e5a072 135Obsoletes: mate-document-viewer-backend-djvu
9e71caa6
JB
136
137%description backend-djvu
138View DJVu documents with Atril.
139
140%description backend-djvu -l pl.UTF-8
141Przeglądanie dokumentów DjVu w przeglądarce Atril.
142
143%package backend-dvi
144Summary: View DVI documents with Atril
145Summary(pl.UTF-8): Przeglądanie dokumentów DVI w przeglądarce Atril
146Group: X11/Applications
147Requires: %{name} = %{version}-%{release}
f2e5a072 148Obsoletes: mate-document-viewer-backend-dvi
9e71caa6
JB
149
150%description backend-dvi
151View DVI documents with Atril.
152
153%description backend-dvi -l pl.UTF-8
154Przeglądanie dokumentów DVI w przeglądarce Atril.
155
f69d401f
JB
156%package backend-epub
157Summary: View ePub documents with Atril
158Summary(pl.UTF-8): Przeglądanie dokumentów ePub w przeglądarce Atril
159Group: X11/Applications
160Requires: %{name} = %{version}-%{release}
161Requires: libxml2 >= 1:2.5.0
d34c4e44 162Requires: gtk-webkit4 >= 2.4.3
f69d401f
JB
163
164%description backend-epub
165View ePub documents with Atril.
166
167%description backend-epub -l pl.UTF-8
168Przeglądanie dokumentów ePub w przeglądarce Atril.
169
9e71caa6
JB
170%package backend-pdf
171Summary: View PDF documents with Atril
172Summary(pl.UTF-8): Przeglądanie dokumentów PDF w przeglądarce Atril
173Group: X11/Applications
174Requires: %{name} = %{version}-%{release}
c7eae4d2 175Requires: poppler-glib >= 0.22.0
f2e5a072 176Obsoletes: mate-document-viewer-backend-pdf
9e71caa6
JB
177
178%description backend-pdf
179View PDF documents with Atril.
180
181%description backend-pdf -l pl.UTF-8
182Przeglądanie dokumentów PDF w przeglądarce Atril.
183
184%package backend-ps
185Summary: View PostScript documents with Atril
186Summary(pl.UTF-8): Przeglądanie dokumentów PostScript w przeglądarce Atril
187Group: X11/Applications
188Requires: %{name} = %{version}-%{release}
189Requires: libspectre >= 0.2.0
f2e5a072 190Obsoletes: mate-document-viewer-backend-ps
9e71caa6
JB
191
192%description backend-ps
193View PostScript documents with Atril.
194
195%description backend-ps -l pl.UTF-8
196Przeglądanie dokumentów PostScript w przeglądarce Atril.
197
198%package backend-xps
199Summary: View XPS documents with Atril
200Summary(pl.UTF-8): Przeglądanie dokumentów XPS w przeglądarce Atril
201Group: X11/Applications
202Requires: %{name} = %{version}-%{release}
c7eae4d2 203Requires: libgxps >= 0.2.1
f2e5a072 204Obsoletes: mate-document-viewer-backend-xps
9e71caa6
JB
205
206%description backend-xps
207View XPS documents with Atril.
208
209%description backend-xps -l pl.UTF-8
210Przeglądanie dokumentów XPS w przeglądarce Atril.
211
f2e5a072 212%package -n caja-extension-atril
9e71caa6
JB
213Summary: Atril extension for Caja file manager
214Summary(pl.UTF-8): Rozszerzenie Atril dla zarządcy plików Caja
215Group: X11/Applications
216Requires: %{name} = %{version}-%{release}
3cea173b 217Requires: caja >= 1.17.1
f2e5a072 218Obsoletes: mate-file-manager-extension-atril
9e71caa6 219
f2e5a072 220%description -n caja-extension-atril
9e71caa6
JB
221Shows Atril document properties in Caja file manager.
222
f2e5a072 223%description -n caja-extension-atril -l pl.UTF-8
9e71caa6
JB
224Pokazuje właściwości dokumentu przeglądarki Atril w zarządcy plików
225Caja.
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
256rm -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
f292cd48 264%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ku_IQ,jv,nqo,pms,ur_PK}
6145c2ab 265%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/{es_AR,es_CL,kab,ks,ku_IQ}
9e71caa6 266
910de732 267%find_lang atril --with-mate
9e71caa6
JB
268
269%clean
270rm -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
JB
301%{_datadir}/atril
302%{_datadir}/appdata/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
This page took 0.997012 seconds and 4 git commands to generate.