]> git.pld-linux.org Git - packages/evince.git/blame - evince.spec
- updated to 3.16.0
[packages/evince.git] / evince.spec
CommitLineData
8fbf564b
ER
1# TODO
2# - evince.desktop provides mimetypes for all possible choices, yet some of
3# them are in subpackages (backend-foo). multiple .desktop files is possible
4# for same application?
52101646 5#
c3049406 6# Conditional build:
23544f41 7%bcond_without apidocs # disable gtk-doc
2f4ccc22 8%bcond_without nautilus # Nautilus extensions
8fbf564b 9
87553ab6 10Summary: Document viewer for multiple document formats
6c08f70f 11Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach
87553ab6 12Name: evince
769e8982 13Version: 3.16.0
f9c5fbcc 14Release: 1
fe5e577f 15License: GPL v2+
87553ab6 16Group: X11/Applications/Graphics
769e8982
ŁK
17Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.16/%{name}-%{version}.tar.xz
18# Source0-md5: e2312a257df709e84bc2be17db45a7f1
15fe3a37 19Patch0: %{name}-linking.patch
cdc470ee 20Patch1: icon-theme.patch
87553ab6 21URL: http://www.gnome.org/projects/evince/
a96547b6 22BuildRequires: autoconf >= 2.57
dcaa156e 23BuildRequires: automake >= 1:1.10
31d78cfa 24BuildRequires: cairo-devel >= 1.10.0
98a7da35 25BuildRequires: djvulibre-devel >= 3.5.17
2b3bf0b6 26BuildRequires: docbook-dtd412-xml
dd208bb4 27BuildRequires: gettext-tools
e51dfc19 28BuildRequires: glib2-devel >= 1:2.36.0
4d1cdbff 29BuildRequires: gnome-common >= 2.24.0
fe5e577f 30BuildRequires: gnome-desktop-devel >= 3.0
2f4ccc22 31BuildRequires: gobject-introspection-devel >= 1.0
cea79620 32BuildRequires: gsettings-desktop-schemas-devel
769e8982 33BuildRequires: gtk+3-devel >= 3.15.3
dcaa156e 34%{?with_apidocs:BuildRequires: gtk-doc >= 1.13}
4d1cdbff 35BuildRequires: intltool >= 0.40.0
72e9e2b8 36BuildRequires: kpathsea-devel
c252a4a2 37BuildRequires: libgxps-devel >= 0.2.1
15fe3a37 38BuildRequires: libsecret-devel >= 0.5
a96547b6 39BuildRequires: libspectre-devel >= 0.2.0
84d46d76 40BuildRequires: libtiff-devel >= 3.6
2f4ccc22 41BuildRequires: libtool >= 2:2.2
a96547b6 42BuildRequires: libxml2-devel >= 1:2.6.31
2f4ccc22
JB
43BuildRequires: libxml2-progs >= 1:2.6.31
44%{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0}
184cd39f 45BuildRequires: pkgconfig
e51dfc19 46BuildRequires: poppler-glib-devel >= 0.24.0
16b45cd3 47BuildRequires: rpmbuild(find_lang) >= 1.23
d46abe04 48BuildRequires: rpmbuild(macros) >= 1.592
a96547b6 49BuildRequires: t1lib-devel
a9811523 50BuildRequires: tar >= 1:1.22
cea79620 51BuildRequires: xorg-lib-libICE-devel
2f4ccc22
JB
52BuildRequires: xorg-lib-libSM-devel >= 1.0.0
53BuildRequires: xorg-lib-libX11-devel
a9811523 54BuildRequires: xz
1380699d 55BuildRequires: yelp-tools
9b07dbc7 56BuildRequires: zlib-devel
12600ecc 57Requires(post,postun): desktop-file-utils
e51dfc19 58Requires(post,postun): glib2 >= 1:2.36.0
5a12fc5e 59Requires: %{name}-libs = %{version}-%{release}
2f4ccc22 60Requires: cairo >= 1.10.0
31d78cfa 61Requires: dconf
cea79620 62Requires: gsettings-desktop-schemas
cea79620
MB
63Requires: gtk-update-icon-cache
64Requires: hicolor-icon-theme
2f4ccc22
JB
65Requires: libsecret >= 0.5
66Requires: xorg-lib-libSM >= 1.0.0
9b4f4918
MB
67Suggests: evince-backend-djvu
68Suggests: evince-backend-dvi
69Suggests: evince-backend-pdf
70Suggests: evince-backend-ps
769e8982 71Suggests: gtk+3-cups >= 3.15.3
795a6311 72Obsoletes: evince-gtk
3e7213f4 73# sr@Latn vs. sr@latin
74Conflicts: glibc-misc < 6:2.7
87553ab6 75BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
c252a4a2 77%define backendsdir %{_libdir}/evince/4/backends
a96547b6 78
87553ab6 79%description
80Evince is a document viewer for multiple document formats like pdf,
81postscript, and many others. The goal of evince is to replace the
82multiple document viewers that exist on the GNOME Desktop, like ggv,
83gpdf, and xpdf with a single simple application.
84
2a3b3b99
JR
85%description -l pl.UTF-8
86Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf,
87postscript i wielu innych. W zamierzeniach program ma zastąpić
88przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i
89xpdf jedną prostą aplikacją.
87553ab6 90
5a12fc5e
JB
91%package libs
92Summary: Evince shared libraries
93Summary(pl.UTF-8): Biblioteki współdzielone Evince
94Group: X11/Libraries
95Requires: glib2 >= 1:2.36.0
769e8982 96Requires: gtk+3 >= 3.15.3
5a12fc5e
JB
97Conflicts: evince < 3.10.3-2
98
99%description libs
100Evince shared libraries.
101
102%description libs -l pl.UTF-8
103Biblioteki współdzielone Evince.
104
a96547b6
PZ
105%package devel
106Summary: Header files for Evince
107Summary(pl.UTF-8): Pliki nagłówkowe Evince
108Group: X11/Development/Libraries
5a12fc5e
JB
109Requires: %{name}-libs = %{version}-%{release}
110Requires: glib2-devel >= 1:2.36.0
769e8982 111Requires: gtk+3-devel >= 3.15.3
dfd5b6aa 112
a96547b6
PZ
113%description devel
114Header files for Evince.
dfd5b6aa 115
a96547b6
PZ
116%description devel -l pl.UTF-8
117Pliki nagłówkowe Evince.
dfd5b6aa 118
23544f41 119%package apidocs
120Summary: Evince API documentation
121Summary(pl.UTF-8): Dokumentacja API aplikacji Evince
122Group: Documentation
123Requires: gtk-doc-common
124
125%description apidocs
126Evince API documentation.
127
128%description apidocs -l pl.UTF-8
129Dokumentacja API aplikacji Evince.
130
a96547b6
PZ
131%package -n nautilus-extension-evince
132Summary: Evince extension for Nautilus
133Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa
134Group: X11/Applications
135Requires: %{name} = %{version}-%{release}
cea79620 136Requires: nautilus >= 3.0.0
a96547b6
PZ
137
138%description -n nautilus-extension-evince
2f4ccc22 139This extension shows Evince document properties in Nautilus.
a96547b6
PZ
140
141%description -n nautilus-extension-evince -l pl.UTF-8
2f4ccc22 142To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie.
a96547b6 143
ab458ef2 144%package backend-djvu
2f4ccc22
JB
145Summary: View DjVu documents with Evince
146Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince
ab458ef2 147Group: X11/Applications
9b4f4918
MB
148Requires: %{name} = %{version}-%{release}
149Requires: djvulibre >= 3.5.17
ab458ef2
ZU
150
151%description backend-djvu
2f4ccc22
JB
152View DjVu documents with Evince.
153
154%description backend-djvu -l pl.UTF-8
155Przeglądanie dokumentów DjVu przy użyciu Evince.
ab458ef2 156
c4d5ca9c 157%package backend-dvi
9b4f4918 158Summary: View DVI documents with Evince
2f4ccc22 159Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince
c4d5ca9c 160Group: X11/Applications
9b4f4918 161Requires: %{name} = %{version}-%{release}
2f4ccc22 162Requires: libspectre >= 0.2.0
c4d5ca9c
ZU
163
164%description backend-dvi
9b4f4918 165View DVI documents with Evince.
c4d5ca9c 166
2f4ccc22
JB
167%description backend-dvi -l pl.UTF-8
168Przeglądanie dokumentów DVI przy użyciu Evince.
169
ab458ef2 170%package backend-pdf
9b4f4918 171Summary: View PDF documents with Evince
2f4ccc22 172Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince
ab458ef2 173Group: X11/Applications
9b4f4918 174Requires: %{name} = %{version}-%{release}
2f4ccc22
JB
175Requires: libxml2 >= 1:2.6.31
176Requires: poppler-glib >= 0.24.0
ab458ef2
ZU
177
178%description backend-pdf
9b4f4918 179View PDF documents with Evince.
ab458ef2 180
2f4ccc22
JB
181%description backend-pdf -l pl.UTF-8
182Przeglądanie dokumentów PDF przy użyciu Evince.
183
c4d5ca9c 184%package backend-ps
2f4ccc22
JB
185Summary: View PostScript documents with Evince
186Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince
c4d5ca9c 187Group: X11/Applications
9b4f4918 188Requires: %{name} = %{version}-%{release}
2f4ccc22 189Requires: libspectre >= 0.2.0
c4d5ca9c
ZU
190
191%description backend-ps
2f4ccc22
JB
192View PostScript documents with Evince.
193
194%description backend-ps -l pl.UTF-8
195Przeglądanie dokumentów PostScript przy użyciu Evince.
196
197%package backend-xps
198Summary: View XPS documents with Evince
199Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince
200Group: X11/Applications
201Requires: %{name} = %{version}-%{release}
202Requires: libgxps >= 0.2.1
203
204%description backend-xps
205View XPS documents with Evince.
206
207%description backend-xps -l pl.UTF-8
208Przeglądanie dokumentów XPS przy użyciu Evince.
c4d5ca9c 209
fe5e577f
JB
210%package -n browser-plugin-evince
211Summary: Evince browser plugin
212Summary(pl.UTF-8): Wtyczka Evince dla przegądarek WWW
213Group: X11/Applications/Graphics
214Requires: %{name} = %{version}-%{release}
215Requires: browser-plugins >= 2.0
216
217%description -n browser-plugin-evince
218Evince plugin for Mozilla-compatible web browsers.
219
220%description -n browser-plugin-evince -l pl.UTF-8
221Wtyczka Evince dla przegądarek WWW zgodnych z Mozillą.
222
87553ab6 223%prep
224%setup -q
2c320383 225%patch0 -p1
cdc470ee 226%patch1 -p1
58684a44 227
87553ab6 228%build
08c6a467 229%{__gtkdocize}
a0ff1688 230%{__intltoolize}
a96547b6 231%{__libtoolize}
08c6a467 232%{__aclocal} -I m4
f8be43cb
AF
233%{__autoconf}
234%{__autoheader}
235%{__automake}
87553ab6 236%configure \
fe5e577f 237 BROWSER_PLUGIN_DIR=%{_browserpluginsdir} \
a0ff1688 238 --enable-comics \
72e9e2b8 239 --enable-djvu \
a5a87d5b 240 --enable-dvi \
2f4ccc22 241 %{?with_apidocs:--enable-gtk-doc} \
97f25a2f 242 --enable-introspection \
2f4ccc22 243 --enable-nautilus%{!?with_nautilus:=no} \
a96547b6 244 --enable-pdf \
2f4ccc22
JB
245 --disable-silent-rules \
246 --disable-static \
247 --enable-t1lib \
a0ff1688 248 --enable-tiff \
7efc2c80 249 --with-html-dir=%{_gtkdocdir}
87553ab6 250%{__make}
251
252%install
253rm -rf $RPM_BUILD_ROOT
254
255%{__make} install \
a96547b6 256 DESTDIR=$RPM_BUILD_ROOT
87553ab6 257
cea79620 258%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
fe5e577f 259%{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la
cea79620 260%{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la
2f4ccc22 261%if %{with nautilus}
cea79620 262%{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la
2f4ccc22 263%endif
87553ab6 264
15fe3a37 265%find_lang %{name} --with-gnome
87553ab6 266
267%clean
268rm -rf $RPM_BUILD_ROOT
269
270%post
4685de83 271%update_desktop_database_post
a0ff1688 272%update_icon_cache hicolor
d46abe04 273%glib_compile_schemas
12600ecc 274
87553ab6 275%postun
4685de83 276%update_desktop_database_postun
a0ff1688 277%update_icon_cache hicolor
d46abe04 278%glib_compile_schemas
87553ab6 279
5a12fc5e
JB
280%post libs -p /sbin/ldconfig
281%postun libs -p /sbin/ldconfig
282
033d6466 283%post -n browser-plugin-evince
fe5e577f
JB
284%update_browser_plugins
285
033d6466 286%postun -n browser-plugin-evince
fe5e577f
JB
287if [ "$1" = 0 ]; then
288 %update_browser_plugins
289fi
290
87553ab6 291%files -f %{name}.lang
292%defattr(644,root,root,755)
293%doc AUTHORS ChangeLog NEWS README TODO
a96547b6 294%attr(755,root,root) %{_bindir}/evince
08c6a467 295%attr(755,root,root) %{_bindir}/evince-previewer
a96547b6 296%attr(755,root,root) %{_bindir}/evince-thumbnailer
97f25a2f 297%attr(755,root,root) %{_libexecdir}/evinced
a96547b6 298%dir %{_libdir}/evince
c252a4a2 299%dir %{_libdir}/evince/4
a96547b6
PZ
300%dir %{backendsdir}
301%attr(755,root,root) %{backendsdir}/libcomicsdocument.so
302%{backendsdir}/comicsdocument.evince-backend
a96547b6
PZ
303%attr(755,root,root) %{backendsdir}/libtiffdocument.so
304%{backendsdir}/tiffdocument.evince-backend
31d78cfa 305%{_datadir}/GConf/gsettings/evince.convert
fe5e577f
JB
306%{_datadir}/appdata/evince.appdata.xml
307%{_datadir}/appdata/evince-comicsdocument.metainfo.xml
308%{_datadir}/appdata/evince-tiffdocument.metainfo.xml
dcaa156e 309%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service
31d78cfa 310%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml
87553ab6 311%{_datadir}/%{name}
cea79620 312%{_datadir}/thumbnailers/evince.thumbnailer
a96547b6
PZ
313%{_mandir}/man1/evince.1*
314%{_desktopdir}/evince.desktop
15fe3a37 315%{_desktopdir}/evince-previewer.desktop
2f4ccc22 316%{_iconsdir}/hicolor/*x*/apps/evince.png
dfd5b6aa 317
5a12fc5e
JB
318%files libs
319%defattr(644,root,root,755)
320%attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.*
321%attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4
322%attr(755,root,root) %{_libdir}/libevview3.so.*.*.*
323%attr(755,root,root) %ghost %{_libdir}/libevview3.so.3
324%{_libdir}/girepository-1.0/EvinceDocument-3.0.typelib
325%{_libdir}/girepository-1.0/EvinceView-3.0.typelib
326
327%files devel
328%defattr(644,root,root,755)
329%attr(755,root,root) %{_libdir}/libevdocument3.so
330%attr(755,root,root) %{_libdir}/libevview3.so
331%{_datadir}/gir-1.0/EvinceDocument-3.0.gir
332%{_datadir}/gir-1.0/EvinceView-3.0.gir
333%{_includedir}/evince
334%{_pkgconfigdir}/evince-document-3.0.pc
335%{_pkgconfigdir}/evince-view-3.0.pc
336
337%if %{with apidocs}
338%files apidocs
339%defattr(644,root,root,755)
340%{_gtkdocdir}/evince
341%{_gtkdocdir}/libevdocument-3.0
342%{_gtkdocdir}/libevview-3.0
343%endif
344
c4d5ca9c
ZU
345%files backend-djvu
346%defattr(644,root,root,755)
9b4f4918 347%attr(755,root,root) %{backendsdir}/libdjvudocument.so
c4d5ca9c 348%{backendsdir}/djvudocument.evince-backend
fe5e577f 349%{_datadir}/appdata/evince-djvudocument.metainfo.xml
c4d5ca9c 350
ab458ef2 351%files backend-dvi
c4d5ca9c 352%defattr(644,root,root,755)
9b4f4918 353%attr(755,root,root) %{backendsdir}/libdvidocument.so
ab458ef2 354%{backendsdir}/dvidocument.evince-backend
fe5e577f 355%{_datadir}/appdata/evince-dvidocument.metainfo.xml
ab458ef2
ZU
356
357%files backend-pdf
c4d5ca9c 358%defattr(644,root,root,755)
9b4f4918 359%attr(755,root,root) %{backendsdir}/libpdfdocument.so
ab458ef2 360%{backendsdir}/pdfdocument.evince-backend
fe5e577f
JB
361%{_datadir}/appdata/evince-pdfdocument.metainfo.xml
362
363%files backend-ps
364%defattr(644,root,root,755)
365%attr(755,root,root) %{backendsdir}/libpsdocument.so
366%{backendsdir}/psdocument.evince-backend
367%{_datadir}/appdata/evince-psdocument.metainfo.xml
ab458ef2 368
2f4ccc22
JB
369%files backend-xps
370%defattr(644,root,root,755)
371%attr(755,root,root) %{backendsdir}/libxpsdocument.so
372%{backendsdir}/xpsdocument.evince-backend
fe5e577f 373%{_datadir}/appdata/evince-xpsdocument.metainfo.xml
2f4ccc22 374
2f4ccc22 375%if %{with nautilus}
a96547b6
PZ
376%files -n nautilus-extension-evince
377%defattr(644,root,root,755)
cea79620 378%attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so
2f4ccc22 379%endif
fe5e577f
JB
380
381%files -n browser-plugin-evince
382%defattr(644,root,root,755)
383%attr(755,root,root) %{_browserpluginsdir}/libevbrowserplugin.so
This page took 0.121447 seconds and 4 git commands to generate.