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