up to 1.20.2
[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
f292cd48 13Version: 1.20.2
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
f292cd48 18# Source0-md5: a86dfcd89ab246a5a5ff315d2136bc90
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}
9e71caa6 265
910de732 266%find_lang atril --with-mate
9e71caa6
JB
267
268%clean
269rm -rf $RPM_BUILD_ROOT
270
271%post
272%update_desktop_database_post
9e71caa6
JB
273%update_icon_cache hicolor
274%glib_compile_schemas
275
276%postun
277%update_desktop_database_postun
9e71caa6
JB
278%update_icon_cache hicolor
279%glib_compile_schemas
280
281%post libs -p /sbin/ldconfig
282%postun libs -p /sbin/ldconfig
283
284%files -f atril.lang
285%defattr(644,root,root,755)
84827586 286%doc AUTHORS ChangeLog NEWS README
9e71caa6
JB
287%attr(755,root,root) %{_bindir}/atril
288%attr(755,root,root) %{_bindir}/atril-previewer
289%attr(755,root,root) %{_bindir}/atril-thumbnailer
9e71caa6
JB
290%attr(755,root,root) %{_libexecdir}/atrild
291%dir %{_libdir}/atril
292%dir %{_libdir}/atril/3
293%dir %{_libdir}/atril/3/backends
294%attr(755,root,root) %{_libdir}/atril/3/backends/libcomicsdocument.so
295%{_libdir}/atril/3/backends/comicsdocument.atril-backend
296%attr(755,root,root) %{_libdir}/atril/3/backends/libpixbufdocument.so
297%{_libdir}/atril/3/backends/pixbufdocument.atril-backend
298%attr(755,root,root) %{_libdir}/atril/3/backends/libtiffdocument.so
299%{_libdir}/atril/3/backends/tiffdocument.atril-backend
f69d401f
JB
300%{_datadir}/atril
301%{_datadir}/appdata/atril.appdata.xml
9e71caa6
JB
302%{_datadir}/dbus-1/services/org.mate.atril.Daemon.service
303%{_datadir}/glib-2.0/schemas/org.mate.Atril.gschema.xml
9e71caa6
JB
304%{_datadir}/thumbnailers/atril.thumbnailer
305%{_mandir}/man1/atril.1*
306%{_mandir}/man1/atril-previewer.1*
307%{_mandir}/man1/atril-thumbnailer.1*
308%{_desktopdir}/atril.desktop
309%{_iconsdir}/hicolor/*x*/apps/atril.png
310%{_iconsdir}/hicolor/scalable/apps/atril.svg
311
312%files libs
313%defattr(644,root,root,755)
314%attr(755,root,root) %{_libdir}/libatrildocument.so.*.*.*
315%attr(755,root,root) %ghost %{_libdir}/libatrildocument.so.3
316%attr(755,root,root) %{_libdir}/libatrilview.so.*.*.*
317%attr(755,root,root) %ghost %{_libdir}/libatrilview.so.3
318%{_libdir}/girepository-1.0/AtrilDocument-1.5.0.typelib
319%{_libdir}/girepository-1.0/AtrilView-1.5.0.typelib
320
321%files devel
322%defattr(644,root,root,755)
323%attr(755,root,root) %{_libdir}/libatrildocument.so
324%attr(755,root,root) %{_libdir}/libatrilview.so
325%{_datadir}/gir-1.0/AtrilDocument-1.5.0.gir
326%{_datadir}/gir-1.0/AtrilView-1.5.0.gir
327%{_includedir}/atril
328%{_pkgconfigdir}/atril-document-1.5.0.pc
329%{_pkgconfigdir}/atril-view-1.5.0.pc
330
331%if %{with apidocs}
332%files apidocs
333%defattr(644,root,root,755)
334%{_gtkdocdir}/atril
335%{_gtkdocdir}/libatrildocument-1.5.0
336%{_gtkdocdir}/libatrilview-1.5.0
337%endif
338
339%files backend-djvu
340%defattr(644,root,root,755)
341%attr(755,root,root) %{_libdir}/atril/3/backends/libdjvudocument.so
342%{_libdir}/atril/3/backends/djvudocument.atril-backend
343
344%files backend-dvi
345%defattr(644,root,root,755)
346%attr(755,root,root) %{_libdir}/atril/3/backends/libdvidocument.so
347%{_libdir}/atril/3/backends/dvidocument.atril-backend
348
f69d401f
JB
349%files backend-epub
350%defattr(644,root,root,755)
351%attr(755,root,root) %{_libdir}/atril/3/backends/libepubdocument.so
352%{_libdir}/atril/3/backends/epubdocument.atril-backend
f69d401f 353
9e71caa6
JB
354%files backend-ps
355%defattr(644,root,root,755)
356%attr(755,root,root) %{_libdir}/atril/3/backends/libpsdocument.so
357%{_libdir}/atril/3/backends/psdocument.atril-backend
358
359%files backend-pdf
360%defattr(644,root,root,755)
361%attr(755,root,root) %{_libdir}/atril/3/backends/libpdfdocument.so
362%{_libdir}/atril/3/backends/pdfdocument.atril-backend
363
364%files backend-xps
365%defattr(644,root,root,755)
366%attr(755,root,root) %{_libdir}/atril/3/backends/libxpsdocument.so
367%{_libdir}/atril/3/backends/xpsdocument.atril-backend
368
369%if %{with caja}
f2e5a072 370%files -n caja-extension-atril
9e71caa6
JB
371%defattr(644,root,root,755)
372%attr(755,root,root) %{_libdir}/caja/extensions-2.0/libatril-properties-page.so
f69d401f 373%{_datadir}/caja/extensions/libatril-properties-page.caja-extension
9e71caa6 374%endif
This page took 0.497097 seconds and 4 git commands to generate.