]>
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: |
978362a4 | 7 | %bcond_without apidocs # gtk-doc based API documentation |
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 |
978362a4 | 13 | Version: 40.1 |
98116ded | 14 | Release: 1 |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
978362a4 JB |
17 | Source0: https://download.gnome.org/sources/evince/40/%{name}-%{version}.tar.xz |
18 | # Source0-md5: 89b9c52d6fd03ffb244abc12a989d1ec | |
c3402a6f | 19 | Patch0: icon-theme.patch |
eac08ea3 | 20 | URL: https://wiki.gnome.org/Apps/Evince |
31d78cfa | 21 | BuildRequires: cairo-devel >= 1.10.0 |
978362a4 | 22 | BuildRequires: dbus-devel |
184284bc | 23 | BuildRequires: djvulibre-devel >= 3.5.22 |
2b3bf0b6 | 24 | BuildRequires: docbook-dtd412-xml |
c3402a6f | 25 | BuildRequires: gdk-pixbuf2-devel >= 2.40.0 |
eac08ea3 | 26 | BuildRequires: gettext-tools >= 0.19.8 |
c3402a6f | 27 | BuildRequires: glib2-devel >= 1:2.44.0 |
fe5e577f | 28 | BuildRequires: gnome-desktop-devel >= 3.0 |
2f4ccc22 | 29 | BuildRequires: gobject-introspection-devel >= 1.0 |
cea79620 | 30 | BuildRequires: gsettings-desktop-schemas-devel |
e2784afd | 31 | BuildRequires: gspell-devel >= 1.6.0 |
15fde245 ŁK |
32 | BuildRequires: gstreamer-devel >= 1.0 |
33 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
eac08ea3 | 34 | BuildRequires: gtk+3-devel >= 3.22.0 |
dcaa156e | 35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
72e9e2b8 | 36 | BuildRequires: kpathsea-devel |
eac08ea3 | 37 | BuildRequires: libarchive-devel >= 3.2.0 |
c252a4a2 | 38 | BuildRequires: libgxps-devel >= 0.2.1 |
978362a4 | 39 | BuildRequires: libhandy1-devel >= 1.0.0 |
15fe3a37 | 40 | BuildRequires: libsecret-devel >= 0.5 |
a96547b6 | 41 | BuildRequires: libspectre-devel >= 0.2.0 |
0385f1ef | 42 | BuildRequires: libstdc++-devel |
c3402a6f | 43 | BuildRequires: libtiff-devel >= 4 |
a96547b6 | 44 | BuildRequires: libxml2-devel >= 1:2.6.31 |
2f4ccc22 | 45 | BuildRequires: libxml2-progs >= 1:2.6.31 |
c3402a6f JB |
46 | BuildRequires: meson >= 0.50.0 |
47 | BuildRequires: ninja >= 1.5 | |
978362a4 | 48 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.28.0} |
184cd39f | 49 | BuildRequires: pkgconfig |
67ce3ec6 | 50 | BuildRequires: poppler-glib-devel >= 0.33.0 |
978362a4 | 51 | BuildRequires: rpm-build >= 4.6 |
16b45cd3 | 52 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
a0a7b23d | 53 | BuildRequires: rpmbuild(macros) >= 1.752 |
eac08ea3 | 54 | BuildRequires: synctex-devel >= 1.19 |
a96547b6 | 55 | BuildRequires: t1lib-devel |
a9811523 | 56 | BuildRequires: tar >= 1:1.22 |
cea79620 | 57 | BuildRequires: xorg-lib-libICE-devel |
2f4ccc22 JB |
58 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 |
59 | BuildRequires: xorg-lib-libX11-devel | |
a9811523 | 60 | BuildRequires: xz |
1380699d | 61 | BuildRequires: yelp-tools |
9b07dbc7 | 62 | BuildRequires: zlib-devel |
12600ecc | 63 | Requires(post,postun): desktop-file-utils |
c3402a6f | 64 | Requires(post,postun): glib2 >= 1:2.44.0 |
5a12fc5e | 65 | Requires: %{name}-libs = %{version}-%{release} |
2f4ccc22 | 66 | Requires: cairo >= 1.10.0 |
31d78cfa | 67 | Requires: dconf |
c3402a6f | 68 | Requires: gdk-pixbuf2 >= 2.40.0 |
cea79620 | 69 | Requires: gsettings-desktop-schemas |
eac08ea3 | 70 | Requires: gspell >= 1.6.0 |
cea79620 MB |
71 | Requires: gtk-update-icon-cache |
72 | Requires: hicolor-icon-theme | |
eac08ea3 | 73 | Requires: libarchive >= 3.2.0 |
978362a4 | 74 | Requires: libhandy1 >= 1.0.0 |
2f4ccc22 JB |
75 | Requires: libsecret >= 0.5 |
76 | Requires: xorg-lib-libSM >= 1.0.0 | |
9b4f4918 MB |
77 | Suggests: evince-backend-djvu |
78 | Suggests: evince-backend-dvi | |
79 | Suggests: evince-backend-pdf | |
80 | Suggests: evince-backend-ps | |
eac08ea3 | 81 | Suggests: gtk+3-cups >= 3.22.0 |
978362a4 | 82 | Obsoletes: evince-gtk < 3.1 |
87553ab6 | 83 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
84 | ||
c252a4a2 | 85 | %define backendsdir %{_libdir}/evince/4/backends |
a96547b6 | 86 | |
87553ab6 | 87 | %description |
88 | Evince is a document viewer for multiple document formats like pdf, | |
89 | postscript, and many others. The goal of evince is to replace the | |
90 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
91 | gpdf, and xpdf with a single simple application. | |
92 | ||
2a3b3b99 JR |
93 | %description -l pl.UTF-8 |
94 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
95 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
96 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
97 | xpdf jedną prostą aplikacją. | |
87553ab6 | 98 | |
5a12fc5e JB |
99 | %package libs |
100 | Summary: Evince shared libraries | |
101 | Summary(pl.UTF-8): Biblioteki współdzielone Evince | |
102 | Group: X11/Libraries | |
c3402a6f | 103 | Requires: glib2 >= 1:2.44.0 |
eac08ea3 | 104 | Requires: gtk+3 >= 3.22.0 |
5a12fc5e JB |
105 | Conflicts: evince < 3.10.3-2 |
106 | ||
107 | %description libs | |
108 | Evince shared libraries. | |
109 | ||
110 | %description libs -l pl.UTF-8 | |
111 | Biblioteki współdzielone Evince. | |
112 | ||
a96547b6 PZ |
113 | %package devel |
114 | Summary: Header files for Evince | |
115 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
116 | Group: X11/Development/Libraries | |
5a12fc5e | 117 | Requires: %{name}-libs = %{version}-%{release} |
c3402a6f | 118 | Requires: glib2-devel >= 1:2.44.0 |
eac08ea3 | 119 | Requires: gtk+3-devel >= 3.22.0 |
dfd5b6aa | 120 | |
a96547b6 PZ |
121 | %description devel |
122 | Header files for Evince. | |
dfd5b6aa | 123 | |
a96547b6 PZ |
124 | %description devel -l pl.UTF-8 |
125 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 126 | |
23544f41 | 127 | %package apidocs |
128 | Summary: Evince API documentation | |
129 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
130 | Group: Documentation | |
131 | Requires: gtk-doc-common | |
3f0643a1 | 132 | BuildArch: noarch |
23544f41 | 133 | |
134 | %description apidocs | |
135 | Evince API documentation. | |
136 | ||
137 | %description apidocs -l pl.UTF-8 | |
138 | Dokumentacja API aplikacji Evince. | |
139 | ||
a96547b6 PZ |
140 | %package -n nautilus-extension-evince |
141 | Summary: Evince extension for Nautilus | |
142 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
143 | Group: X11/Applications | |
144 | Requires: %{name} = %{version}-%{release} | |
978362a4 | 145 | Requires: nautilus >= 3.28.0 |
a96547b6 PZ |
146 | |
147 | %description -n nautilus-extension-evince | |
2f4ccc22 | 148 | This extension shows Evince document properties in Nautilus. |
a96547b6 PZ |
149 | |
150 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
2f4ccc22 | 151 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie. |
a96547b6 | 152 | |
ab458ef2 | 153 | %package backend-djvu |
2f4ccc22 JB |
154 | Summary: View DjVu documents with Evince |
155 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince | |
ab458ef2 | 156 | Group: X11/Applications |
9b4f4918 | 157 | Requires: %{name} = %{version}-%{release} |
184284bc | 158 | Requires: djvulibre >= 3.5.22 |
ab458ef2 ZU |
159 | |
160 | %description backend-djvu | |
2f4ccc22 JB |
161 | View DjVu documents with Evince. |
162 | ||
163 | %description backend-djvu -l pl.UTF-8 | |
164 | Przeglądanie dokumentów DjVu przy użyciu Evince. | |
ab458ef2 | 165 | |
c4d5ca9c | 166 | %package backend-dvi |
9b4f4918 | 167 | Summary: View DVI documents with Evince |
2f4ccc22 | 168 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince |
c4d5ca9c | 169 | Group: X11/Applications |
9b4f4918 | 170 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 171 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
172 | |
173 | %description backend-dvi | |
9b4f4918 | 174 | View DVI documents with Evince. |
c4d5ca9c | 175 | |
2f4ccc22 JB |
176 | %description backend-dvi -l pl.UTF-8 |
177 | Przeglądanie dokumentów DVI przy użyciu Evince. | |
178 | ||
ab458ef2 | 179 | %package backend-pdf |
9b4f4918 | 180 | Summary: View PDF documents with Evince |
2f4ccc22 | 181 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince |
ab458ef2 | 182 | Group: X11/Applications |
9b4f4918 | 183 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 JB |
184 | Requires: libxml2 >= 1:2.6.31 |
185 | Requires: poppler-glib >= 0.24.0 | |
ab458ef2 ZU |
186 | |
187 | %description backend-pdf | |
9b4f4918 | 188 | View PDF documents with Evince. |
ab458ef2 | 189 | |
2f4ccc22 JB |
190 | %description backend-pdf -l pl.UTF-8 |
191 | Przeglądanie dokumentów PDF przy użyciu Evince. | |
192 | ||
c4d5ca9c | 193 | %package backend-ps |
2f4ccc22 JB |
194 | Summary: View PostScript documents with Evince |
195 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince | |
c4d5ca9c | 196 | Group: X11/Applications |
9b4f4918 | 197 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 198 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
199 | |
200 | %description backend-ps | |
2f4ccc22 JB |
201 | View PostScript documents with Evince. |
202 | ||
203 | %description backend-ps -l pl.UTF-8 | |
204 | Przeglądanie dokumentów PostScript przy użyciu Evince. | |
205 | ||
206 | %package backend-xps | |
207 | Summary: View XPS documents with Evince | |
208 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince | |
209 | Group: X11/Applications | |
210 | Requires: %{name} = %{version}-%{release} | |
211 | Requires: libgxps >= 0.2.1 | |
212 | ||
213 | %description backend-xps | |
214 | View XPS documents with Evince. | |
215 | ||
216 | %description backend-xps -l pl.UTF-8 | |
217 | Przeglądanie dokumentów XPS przy użyciu Evince. | |
c4d5ca9c | 218 | |
fe5e577f JB |
219 | %package -n browser-plugin-evince |
220 | Summary: Evince browser plugin | |
221 | Summary(pl.UTF-8): Wtyczka Evince dla przegądarek WWW | |
222 | Group: X11/Applications/Graphics | |
223 | Requires: %{name} = %{version}-%{release} | |
224 | Requires: browser-plugins >= 2.0 | |
225 | ||
226 | %description -n browser-plugin-evince | |
227 | Evince plugin for Mozilla-compatible web browsers. | |
228 | ||
229 | %description -n browser-plugin-evince -l pl.UTF-8 | |
230 | Wtyczka Evince dla przegądarek WWW zgodnych z Mozillą. | |
231 | ||
87553ab6 | 232 | %prep |
233 | %setup -q | |
2c320383 | 234 | %patch0 -p1 |
7435caae | 235 | |
87553ab6 | 236 | %build |
c3402a6f JB |
237 | %meson build \ |
238 | -Dbrowser_plugin=true \ | |
239 | -Dbrowser_plugin_dir=%{_browserpluginsdir} \ | |
240 | %{!?with_apidocs:-Dgtk_doc=false} \ | |
241 | %{!?with_nautilus:-Dnautilus=false} \ | |
242 | -Dps=enabled | |
243 | ||
244 | %ninja_build -C build | |
87553ab6 | 245 | |
246 | %install | |
247 | rm -rf $RPM_BUILD_ROOT | |
248 | ||
c3402a6f | 249 | %ninja_install -C build |
87553ab6 | 250 | |
15fe3a37 | 251 | %find_lang %{name} --with-gnome |
87553ab6 | 252 | |
253 | %clean | |
254 | rm -rf $RPM_BUILD_ROOT | |
255 | ||
256 | %post | |
4685de83 | 257 | %update_desktop_database_post |
a0ff1688 | 258 | %update_icon_cache hicolor |
d46abe04 | 259 | %glib_compile_schemas |
12600ecc | 260 | |
87553ab6 | 261 | %postun |
4685de83 | 262 | %update_desktop_database_postun |
a0ff1688 | 263 | %update_icon_cache hicolor |
d46abe04 | 264 | %glib_compile_schemas |
87553ab6 | 265 | |
5a12fc5e JB |
266 | %post libs -p /sbin/ldconfig |
267 | %postun libs -p /sbin/ldconfig | |
268 | ||
033d6466 | 269 | %post -n browser-plugin-evince |
fe5e577f JB |
270 | %update_browser_plugins |
271 | ||
033d6466 | 272 | %postun -n browser-plugin-evince |
fe5e577f JB |
273 | if [ "$1" = 0 ]; then |
274 | %update_browser_plugins | |
275 | fi | |
276 | ||
87553ab6 | 277 | %files -f %{name}.lang |
278 | %defattr(644,root,root,755) | |
c3402a6f | 279 | %doc AUTHORS MAINTAINERS NEWS NEWS-security.md NOTES README.md TODO |
a96547b6 | 280 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 281 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 282 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 283 | %attr(755,root,root) %{_libexecdir}/evinced |
a96547b6 | 284 | %dir %{_libdir}/evince |
c252a4a2 | 285 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
286 | %dir %{backendsdir} |
287 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
288 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
289 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
290 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 291 | %{_datadir}/GConf/gsettings/evince.convert |
e2784afd | 292 | %{_datadir}/metainfo/org.gnome.Evince.appdata.xml |
df890f54 MB |
293 | %{_datadir}/metainfo/evince-comicsdocument.metainfo.xml |
294 | %{_datadir}/metainfo/evince-tiffdocument.metainfo.xml | |
dcaa156e | 295 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 296 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 297 | %{_datadir}/%{name} |
cea79620 | 298 | %{_datadir}/thumbnailers/evince.thumbnailer |
e2784afd | 299 | %{systemduserunitdir}/org.gnome.Evince.service |
a96547b6 | 300 | %{_mandir}/man1/evince.1* |
c3402a6f JB |
301 | %{_mandir}/man1/evince-previewer.1* |
302 | %{_mandir}/man1/evince-thumbnailer.1* | |
e2784afd JK |
303 | %{_desktopdir}/org.gnome.Evince.desktop |
304 | %{_desktopdir}/org.gnome.Evince-previewer.desktop | |
eac08ea3 | 305 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Evince.svg |
e2784afd | 306 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Evince-symbolic.svg |
dfd5b6aa | 307 | |
5a12fc5e JB |
308 | %files libs |
309 | %defattr(644,root,root,755) | |
310 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* | |
311 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4 | |
312 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
313 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
314 | %{_libdir}/girepository-1.0/EvinceDocument-3.0.typelib | |
315 | %{_libdir}/girepository-1.0/EvinceView-3.0.typelib | |
316 | ||
317 | %files devel | |
318 | %defattr(644,root,root,755) | |
319 | %attr(755,root,root) %{_libdir}/libevdocument3.so | |
320 | %attr(755,root,root) %{_libdir}/libevview3.so | |
321 | %{_datadir}/gir-1.0/EvinceDocument-3.0.gir | |
322 | %{_datadir}/gir-1.0/EvinceView-3.0.gir | |
323 | %{_includedir}/evince | |
324 | %{_pkgconfigdir}/evince-document-3.0.pc | |
325 | %{_pkgconfigdir}/evince-view-3.0.pc | |
326 | ||
327 | %if %{with apidocs} | |
328 | %files apidocs | |
329 | %defattr(644,root,root,755) | |
330 | %{_gtkdocdir}/evince | |
331 | %{_gtkdocdir}/libevdocument-3.0 | |
332 | %{_gtkdocdir}/libevview-3.0 | |
333 | %endif | |
334 | ||
c4d5ca9c ZU |
335 | %files backend-djvu |
336 | %defattr(644,root,root,755) | |
9b4f4918 | 337 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 338 | %{backendsdir}/djvudocument.evince-backend |
df890f54 | 339 | %{_datadir}/metainfo/evince-djvudocument.metainfo.xml |
c4d5ca9c | 340 | |
ab458ef2 | 341 | %files backend-dvi |
c4d5ca9c | 342 | %defattr(644,root,root,755) |
9b4f4918 | 343 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 344 | %{backendsdir}/dvidocument.evince-backend |
df890f54 | 345 | %{_datadir}/metainfo/evince-dvidocument.metainfo.xml |
ab458ef2 ZU |
346 | |
347 | %files backend-pdf | |
c4d5ca9c | 348 | %defattr(644,root,root,755) |
9b4f4918 | 349 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 | 350 | %{backendsdir}/pdfdocument.evince-backend |
df890f54 | 351 | %{_datadir}/metainfo/evince-pdfdocument.metainfo.xml |
fe5e577f JB |
352 | |
353 | %files backend-ps | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
356 | %{backendsdir}/psdocument.evince-backend | |
df890f54 | 357 | %{_datadir}/metainfo/evince-psdocument.metainfo.xml |
ab458ef2 | 358 | |
2f4ccc22 JB |
359 | %files backend-xps |
360 | %defattr(644,root,root,755) | |
361 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so | |
362 | %{backendsdir}/xpsdocument.evince-backend | |
df890f54 | 363 | %{_datadir}/metainfo/evince-xpsdocument.metainfo.xml |
2f4ccc22 | 364 | |
2f4ccc22 | 365 | %if %{with nautilus} |
a96547b6 PZ |
366 | %files -n nautilus-extension-evince |
367 | %defattr(644,root,root,755) | |
cea79620 | 368 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |
2f4ccc22 | 369 | %endif |
fe5e577f JB |
370 | |
371 | %files -n browser-plugin-evince | |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{_browserpluginsdir}/libevbrowserplugin.so |