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