]>
Commit | Line | Data |
---|---|---|
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 | 10 | Summary: Document viewer for multiple document formats |
6c08f70f | 11 | Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach |
87553ab6 | 12 | Name: evince |
0f740f84 | 13 | Version: 3.16.1 |
f9c5fbcc | 14 | Release: 1 |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
769e8982 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.16/%{name}-%{version}.tar.xz |
0f740f84 | 18 | # Source0-md5: 6a5e4aa41d7026eb477290416d9f2a5b |
15fe3a37 | 19 | Patch0: %{name}-linking.patch |
cdc470ee | 20 | Patch1: icon-theme.patch |
87553ab6 | 21 | URL: http://www.gnome.org/projects/evince/ |
a96547b6 | 22 | BuildRequires: autoconf >= 2.57 |
dcaa156e | 23 | BuildRequires: automake >= 1:1.10 |
31d78cfa | 24 | BuildRequires: cairo-devel >= 1.10.0 |
98a7da35 | 25 | BuildRequires: djvulibre-devel >= 3.5.17 |
2b3bf0b6 | 26 | BuildRequires: docbook-dtd412-xml |
dd208bb4 | 27 | BuildRequires: gettext-tools |
e51dfc19 | 28 | BuildRequires: glib2-devel >= 1:2.36.0 |
4d1cdbff | 29 | BuildRequires: gnome-common >= 2.24.0 |
fe5e577f | 30 | BuildRequires: gnome-desktop-devel >= 3.0 |
2f4ccc22 | 31 | BuildRequires: gobject-introspection-devel >= 1.0 |
cea79620 | 32 | BuildRequires: gsettings-desktop-schemas-devel |
769e8982 | 33 | BuildRequires: gtk+3-devel >= 3.15.3 |
dcaa156e | 34 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 35 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 36 | BuildRequires: kpathsea-devel |
c252a4a2 | 37 | BuildRequires: libgxps-devel >= 0.2.1 |
15fe3a37 | 38 | BuildRequires: libsecret-devel >= 0.5 |
a96547b6 | 39 | BuildRequires: libspectre-devel >= 0.2.0 |
84d46d76 | 40 | BuildRequires: libtiff-devel >= 3.6 |
2f4ccc22 | 41 | BuildRequires: libtool >= 2:2.2 |
a96547b6 | 42 | BuildRequires: libxml2-devel >= 1:2.6.31 |
2f4ccc22 JB |
43 | BuildRequires: libxml2-progs >= 1:2.6.31 |
44 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0} | |
184cd39f | 45 | BuildRequires: pkgconfig |
e51dfc19 | 46 | BuildRequires: poppler-glib-devel >= 0.24.0 |
16b45cd3 | 47 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 48 | BuildRequires: rpmbuild(macros) >= 1.592 |
a96547b6 | 49 | BuildRequires: t1lib-devel |
a9811523 | 50 | BuildRequires: tar >= 1:1.22 |
cea79620 | 51 | BuildRequires: xorg-lib-libICE-devel |
2f4ccc22 JB |
52 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 |
53 | BuildRequires: xorg-lib-libX11-devel | |
a9811523 | 54 | BuildRequires: xz |
1380699d | 55 | BuildRequires: yelp-tools |
9b07dbc7 | 56 | BuildRequires: zlib-devel |
12600ecc | 57 | Requires(post,postun): desktop-file-utils |
e51dfc19 | 58 | Requires(post,postun): glib2 >= 1:2.36.0 |
5a12fc5e | 59 | Requires: %{name}-libs = %{version}-%{release} |
2f4ccc22 | 60 | Requires: cairo >= 1.10.0 |
31d78cfa | 61 | Requires: dconf |
cea79620 | 62 | Requires: gsettings-desktop-schemas |
cea79620 MB |
63 | Requires: gtk-update-icon-cache |
64 | Requires: hicolor-icon-theme | |
2f4ccc22 JB |
65 | Requires: libsecret >= 0.5 |
66 | Requires: xorg-lib-libSM >= 1.0.0 | |
9b4f4918 MB |
67 | Suggests: evince-backend-djvu |
68 | Suggests: evince-backend-dvi | |
69 | Suggests: evince-backend-pdf | |
70 | Suggests: evince-backend-ps | |
769e8982 | 71 | Suggests: gtk+3-cups >= 3.15.3 |
795a6311 | 72 | Obsoletes: evince-gtk |
3e7213f4 | 73 | # sr@Latn vs. sr@latin |
74 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
76 | ||
c252a4a2 | 77 | %define backendsdir %{_libdir}/evince/4/backends |
a96547b6 | 78 | |
87553ab6 | 79 | %description |
80 | Evince is a document viewer for multiple document formats like pdf, | |
81 | postscript, and many others. The goal of evince is to replace the | |
82 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
83 | gpdf, and xpdf with a single simple application. | |
84 | ||
2a3b3b99 JR |
85 | %description -l pl.UTF-8 |
86 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
87 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
88 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
89 | xpdf jedną prostą aplikacją. | |
87553ab6 | 90 | |
5a12fc5e JB |
91 | %package libs |
92 | Summary: Evince shared libraries | |
93 | Summary(pl.UTF-8): Biblioteki współdzielone Evince | |
94 | Group: X11/Libraries | |
95 | Requires: glib2 >= 1:2.36.0 | |
769e8982 | 96 | Requires: gtk+3 >= 3.15.3 |
5a12fc5e JB |
97 | Conflicts: evince < 3.10.3-2 |
98 | ||
99 | %description libs | |
100 | Evince shared libraries. | |
101 | ||
102 | %description libs -l pl.UTF-8 | |
103 | Biblioteki współdzielone Evince. | |
104 | ||
a96547b6 PZ |
105 | %package devel |
106 | Summary: Header files for Evince | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
108 | Group: X11/Development/Libraries | |
5a12fc5e JB |
109 | Requires: %{name}-libs = %{version}-%{release} |
110 | Requires: glib2-devel >= 1:2.36.0 | |
769e8982 | 111 | Requires: gtk+3-devel >= 3.15.3 |
dfd5b6aa | 112 | |
a96547b6 PZ |
113 | %description devel |
114 | Header files for Evince. | |
dfd5b6aa | 115 | |
a96547b6 PZ |
116 | %description devel -l pl.UTF-8 |
117 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 118 | |
23544f41 | 119 | %package apidocs |
120 | Summary: Evince API documentation | |
121 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
122 | Group: Documentation | |
123 | Requires: gtk-doc-common | |
124 | ||
125 | %description apidocs | |
126 | Evince API documentation. | |
127 | ||
128 | %description apidocs -l pl.UTF-8 | |
129 | Dokumentacja API aplikacji Evince. | |
130 | ||
a96547b6 PZ |
131 | %package -n nautilus-extension-evince |
132 | Summary: Evince extension for Nautilus | |
133 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
134 | Group: X11/Applications | |
135 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 136 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
137 | |
138 | %description -n nautilus-extension-evince | |
2f4ccc22 | 139 | This extension shows Evince document properties in Nautilus. |
a96547b6 PZ |
140 | |
141 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
2f4ccc22 | 142 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie. |
a96547b6 | 143 | |
ab458ef2 | 144 | %package backend-djvu |
2f4ccc22 JB |
145 | Summary: View DjVu documents with Evince |
146 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince | |
ab458ef2 | 147 | Group: X11/Applications |
9b4f4918 MB |
148 | Requires: %{name} = %{version}-%{release} |
149 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
150 | |
151 | %description backend-djvu | |
2f4ccc22 JB |
152 | View DjVu documents with Evince. |
153 | ||
154 | %description backend-djvu -l pl.UTF-8 | |
155 | Przeglądanie dokumentów DjVu przy użyciu Evince. | |
ab458ef2 | 156 | |
c4d5ca9c | 157 | %package backend-dvi |
9b4f4918 | 158 | Summary: View DVI documents with Evince |
2f4ccc22 | 159 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince |
c4d5ca9c | 160 | Group: X11/Applications |
9b4f4918 | 161 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 162 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
163 | |
164 | %description backend-dvi | |
9b4f4918 | 165 | View DVI documents with Evince. |
c4d5ca9c | 166 | |
2f4ccc22 JB |
167 | %description backend-dvi -l pl.UTF-8 |
168 | Przeglądanie dokumentów DVI przy użyciu Evince. | |
169 | ||
ab458ef2 | 170 | %package backend-pdf |
9b4f4918 | 171 | Summary: View PDF documents with Evince |
2f4ccc22 | 172 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince |
ab458ef2 | 173 | Group: X11/Applications |
9b4f4918 | 174 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 JB |
175 | Requires: libxml2 >= 1:2.6.31 |
176 | Requires: poppler-glib >= 0.24.0 | |
ab458ef2 ZU |
177 | |
178 | %description backend-pdf | |
9b4f4918 | 179 | View PDF documents with Evince. |
ab458ef2 | 180 | |
2f4ccc22 JB |
181 | %description backend-pdf -l pl.UTF-8 |
182 | Przeglądanie dokumentów PDF przy użyciu Evince. | |
183 | ||
c4d5ca9c | 184 | %package backend-ps |
2f4ccc22 JB |
185 | Summary: View PostScript documents with Evince |
186 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince | |
c4d5ca9c | 187 | Group: X11/Applications |
9b4f4918 | 188 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 189 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
190 | |
191 | %description backend-ps | |
2f4ccc22 JB |
192 | View PostScript documents with Evince. |
193 | ||
194 | %description backend-ps -l pl.UTF-8 | |
195 | Przeglądanie dokumentów PostScript przy użyciu Evince. | |
196 | ||
197 | %package backend-xps | |
198 | Summary: View XPS documents with Evince | |
199 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince | |
200 | Group: X11/Applications | |
201 | Requires: %{name} = %{version}-%{release} | |
202 | Requires: libgxps >= 0.2.1 | |
203 | ||
204 | %description backend-xps | |
205 | View XPS documents with Evince. | |
206 | ||
207 | %description backend-xps -l pl.UTF-8 | |
208 | Przeglądanie dokumentów XPS przy użyciu Evince. | |
c4d5ca9c | 209 | |
fe5e577f JB |
210 | %package -n browser-plugin-evince |
211 | Summary: Evince browser plugin | |
212 | Summary(pl.UTF-8): Wtyczka Evince dla przegądarek WWW | |
213 | Group: X11/Applications/Graphics | |
214 | Requires: %{name} = %{version}-%{release} | |
215 | Requires: browser-plugins >= 2.0 | |
216 | ||
217 | %description -n browser-plugin-evince | |
218 | Evince plugin for Mozilla-compatible web browsers. | |
219 | ||
220 | %description -n browser-plugin-evince -l pl.UTF-8 | |
221 | Wtyczka 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 | |
253 | rm -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 | |
268 | rm -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 |
287 | if [ "$1" = 0 ]; then |
288 | %update_browser_plugins | |
289 | fi | |
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 |