]>
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: |
03396e68 | 7 | %bcond_without apidocs # gi-docgen 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 |
88cfd694 | 13 | Version: 45.0 |
f3056fc0 | 14 | Release: 1 |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
88cfd694 JB |
17 | Source0: https://download.gnome.org/sources/evince/45/%{name}-%{version}.tar.xz |
18 | # Source0-md5: 494cdeef8898a2479aa86f8def7a63bc | |
eac08ea3 | 19 | URL: https://wiki.gnome.org/Apps/Evince |
31d78cfa | 20 | BuildRequires: cairo-devel >= 1.10.0 |
978362a4 | 21 | BuildRequires: dbus-devel |
184284bc | 22 | BuildRequires: djvulibre-devel >= 3.5.22 |
2b3bf0b6 | 23 | BuildRequires: docbook-dtd412-xml |
c3402a6f | 24 | BuildRequires: gdk-pixbuf2-devel >= 2.40.0 |
eac08ea3 | 25 | BuildRequires: gettext-tools >= 0.19.8 |
c3402a6f | 26 | BuildRequires: glib2-devel >= 1:2.44.0 |
fe5e577f | 27 | BuildRequires: gnome-desktop-devel >= 3.0 |
2f4ccc22 | 28 | BuildRequires: gobject-introspection-devel >= 1.0 |
cea79620 | 29 | BuildRequires: gsettings-desktop-schemas-devel |
e2784afd | 30 | BuildRequires: gspell-devel >= 1.6.0 |
15fde245 ŁK |
31 | BuildRequires: gstreamer-devel >= 1.0 |
32 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
eac08ea3 | 33 | BuildRequires: gtk+3-devel >= 3.22.0 |
d90f9174 | 34 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
72e9e2b8 | 35 | BuildRequires: kpathsea-devel |
d90f9174 | 36 | BuildRequires: libarchive-devel >= 3.6.0 |
c252a4a2 | 37 | BuildRequires: libgxps-devel >= 0.2.1 |
d90f9174 | 38 | BuildRequires: libhandy1-devel >= 1.5.0 |
15fe3a37 | 39 | BuildRequires: libsecret-devel >= 0.5 |
a96547b6 | 40 | BuildRequires: libspectre-devel >= 0.2.0 |
0385f1ef | 41 | BuildRequires: libstdc++-devel |
c3402a6f | 42 | BuildRequires: libtiff-devel >= 4 |
a96547b6 | 43 | BuildRequires: libxml2-devel >= 1:2.6.31 |
2f4ccc22 | 44 | BuildRequires: libxml2-progs >= 1:2.6.31 |
f3056fc0 | 45 | BuildRequires: meson >= 0.59.0 |
c3402a6f | 46 | BuildRequires: ninja >= 1.5 |
17e70b62 JB |
47 | %{?with_nautilus:BuildRequires: nautilus3-devel >= 3.28.0} |
48 | %{?with_nautilus:BuildRequires: nautilus3-devel < 42.20} | |
184cd39f | 49 | BuildRequires: pkgconfig |
88cfd694 | 50 | BuildRequires: poppler-glib-devel >= 22.05.0 |
978362a4 | 51 | BuildRequires: rpm-build >= 4.6 |
16b45cd3 | 52 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
459b6913 | 53 | BuildRequires: rpmbuild(macros) >= 2.029 |
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 | |
d90f9174 JB |
73 | Requires: libarchive >= 3.6.0 |
74 | Requires: libhandy1 >= 1.5.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 |
a2ce5001 | 82 | Obsoletes: browser-plugin-evince < 41 |
978362a4 | 83 | Obsoletes: evince-gtk < 3.1 |
87553ab6 | 84 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
85 | ||
c252a4a2 | 86 | %define backendsdir %{_libdir}/evince/4/backends |
a96547b6 | 87 | |
87553ab6 | 88 | %description |
89 | Evince is a document viewer for multiple document formats like pdf, | |
90 | postscript, and many others. The goal of evince is to replace the | |
91 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
92 | gpdf, and xpdf with a single simple application. | |
93 | ||
2a3b3b99 JR |
94 | %description -l pl.UTF-8 |
95 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
96 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
97 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
98 | xpdf jedną prostą aplikacją. | |
87553ab6 | 99 | |
5a12fc5e JB |
100 | %package libs |
101 | Summary: Evince shared libraries | |
102 | Summary(pl.UTF-8): Biblioteki współdzielone Evince | |
103 | Group: X11/Libraries | |
c3402a6f | 104 | Requires: glib2 >= 1:2.44.0 |
eac08ea3 | 105 | Requires: gtk+3 >= 3.22.0 |
5a12fc5e JB |
106 | Conflicts: evince < 3.10.3-2 |
107 | ||
108 | %description libs | |
109 | Evince shared libraries. | |
110 | ||
111 | %description libs -l pl.UTF-8 | |
112 | Biblioteki współdzielone Evince. | |
113 | ||
a96547b6 PZ |
114 | %package devel |
115 | Summary: Header files for Evince | |
116 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
117 | Group: X11/Development/Libraries | |
5a12fc5e | 118 | Requires: %{name}-libs = %{version}-%{release} |
c3402a6f | 119 | Requires: glib2-devel >= 1:2.44.0 |
eac08ea3 | 120 | Requires: gtk+3-devel >= 3.22.0 |
dfd5b6aa | 121 | |
a96547b6 PZ |
122 | %description devel |
123 | Header files for Evince. | |
dfd5b6aa | 124 | |
a96547b6 PZ |
125 | %description devel -l pl.UTF-8 |
126 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 127 | |
23544f41 | 128 | %package apidocs |
129 | Summary: Evince API documentation | |
130 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
131 | Group: Documentation | |
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 | ||
17e70b62 JB |
140 | %package -n nautilus3-extension-evince |
141 | Summary: Evince extension for Nautilus 3 | |
142 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa 3 | |
a96547b6 PZ |
143 | Group: X11/Applications |
144 | Requires: %{name} = %{version}-%{release} | |
17e70b62 JB |
145 | Requires: nautilus3 >= 3.28.0 |
146 | Obsoletes: nautilus-extension-evince < 43 | |
a96547b6 | 147 | |
17e70b62 JB |
148 | %description -n nautilus3-extension-evince |
149 | This extension shows Evince document properties in Nautilus 3. | |
a96547b6 | 150 | |
17e70b62 JB |
151 | %description -n nautilus3-extension-evince -l pl.UTF-8 |
152 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie 3. | |
a96547b6 | 153 | |
ab458ef2 | 154 | %package backend-djvu |
2f4ccc22 JB |
155 | Summary: View DjVu documents with Evince |
156 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince | |
ab458ef2 | 157 | Group: X11/Applications |
9b4f4918 | 158 | Requires: %{name} = %{version}-%{release} |
184284bc | 159 | Requires: djvulibre >= 3.5.22 |
ab458ef2 ZU |
160 | |
161 | %description backend-djvu | |
2f4ccc22 JB |
162 | View DjVu documents with Evince. |
163 | ||
164 | %description backend-djvu -l pl.UTF-8 | |
165 | Przeglądanie dokumentów DjVu przy użyciu Evince. | |
ab458ef2 | 166 | |
c4d5ca9c | 167 | %package backend-dvi |
9b4f4918 | 168 | Summary: View DVI documents with Evince |
2f4ccc22 | 169 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince |
c4d5ca9c | 170 | Group: X11/Applications |
9b4f4918 | 171 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 172 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
173 | |
174 | %description backend-dvi | |
9b4f4918 | 175 | View DVI documents with Evince. |
c4d5ca9c | 176 | |
2f4ccc22 JB |
177 | %description backend-dvi -l pl.UTF-8 |
178 | Przeglądanie dokumentów DVI przy użyciu Evince. | |
179 | ||
ab458ef2 | 180 | %package backend-pdf |
9b4f4918 | 181 | Summary: View PDF documents with Evince |
2f4ccc22 | 182 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince |
ab458ef2 | 183 | Group: X11/Applications |
9b4f4918 | 184 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 185 | Requires: libxml2 >= 1:2.6.31 |
88cfd694 | 186 | Requires: poppler-glib >= 22.05.0 |
ab458ef2 ZU |
187 | |
188 | %description backend-pdf | |
9b4f4918 | 189 | View PDF documents with Evince. |
ab458ef2 | 190 | |
2f4ccc22 JB |
191 | %description backend-pdf -l pl.UTF-8 |
192 | Przeglądanie dokumentów PDF przy użyciu Evince. | |
193 | ||
c4d5ca9c | 194 | %package backend-ps |
2f4ccc22 JB |
195 | Summary: View PostScript documents with Evince |
196 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince | |
c4d5ca9c | 197 | Group: X11/Applications |
9b4f4918 | 198 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 199 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
200 | |
201 | %description backend-ps | |
2f4ccc22 JB |
202 | View PostScript documents with Evince. |
203 | ||
204 | %description backend-ps -l pl.UTF-8 | |
205 | Przeglądanie dokumentów PostScript przy użyciu Evince. | |
206 | ||
207 | %package backend-xps | |
208 | Summary: View XPS documents with Evince | |
209 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince | |
210 | Group: X11/Applications | |
211 | Requires: %{name} = %{version}-%{release} | |
212 | Requires: libgxps >= 0.2.1 | |
213 | ||
214 | %description backend-xps | |
215 | View XPS documents with Evince. | |
216 | ||
217 | %description backend-xps -l pl.UTF-8 | |
218 | Przeglądanie dokumentów XPS przy użyciu Evince. | |
c4d5ca9c | 219 | |
87553ab6 | 220 | %prep |
221 | %setup -q | |
7435caae | 222 | |
87553ab6 | 223 | %build |
c3402a6f | 224 | %meson build \ |
c3402a6f | 225 | %{!?with_apidocs:-Dgtk_doc=false} \ |
9f1ffa27 | 226 | %{?with_nautilus:-Dnautilus=true} \ |
c3402a6f JB |
227 | -Dps=enabled |
228 | ||
229 | %ninja_build -C build | |
87553ab6 | 230 | |
231 | %install | |
232 | rm -rf $RPM_BUILD_ROOT | |
233 | ||
c3402a6f | 234 | %ninja_install -C build |
87553ab6 | 235 | |
d90f9174 | 236 | %if %{with apidocs} |
459b6913 JB |
237 | install -d $RPM_BUILD_ROOT%{_gidocdir} |
238 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/libev* $RPM_BUILD_ROOT%{_gidocdir} | |
d90f9174 JB |
239 | %endif |
240 | ||
6e1f61da JB |
241 | # not supported by glibc (as of 2.37) |
242 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
243 | ||
15fe3a37 | 244 | %find_lang %{name} --with-gnome |
87553ab6 | 245 | |
246 | %clean | |
247 | rm -rf $RPM_BUILD_ROOT | |
248 | ||
249 | %post | |
4685de83 | 250 | %update_desktop_database_post |
a0ff1688 | 251 | %update_icon_cache hicolor |
d46abe04 | 252 | %glib_compile_schemas |
12600ecc | 253 | |
87553ab6 | 254 | %postun |
4685de83 | 255 | %update_desktop_database_postun |
a0ff1688 | 256 | %update_icon_cache hicolor |
d46abe04 | 257 | %glib_compile_schemas |
87553ab6 | 258 | |
5a12fc5e JB |
259 | %post libs -p /sbin/ldconfig |
260 | %postun libs -p /sbin/ldconfig | |
261 | ||
87553ab6 | 262 | %files -f %{name}.lang |
263 | %defattr(644,root,root,755) | |
c3402a6f | 264 | %doc AUTHORS MAINTAINERS NEWS NEWS-security.md NOTES README.md TODO |
a96547b6 | 265 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 266 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 267 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 268 | %attr(755,root,root) %{_libexecdir}/evinced |
a96547b6 | 269 | %dir %{_libdir}/evince |
c252a4a2 | 270 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
271 | %dir %{backendsdir} |
272 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
273 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
274 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
275 | %{backendsdir}/tiffdocument.evince-backend | |
88cfd694 | 276 | %{_datadir}/metainfo/org.gnome.Evince.metainfo.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) | |
459b6913 JB |
314 | %{_gidocdir}/libevdocument |
315 | %{_gidocdir}/libevview | |
5a12fc5e JB |
316 | %endif |
317 | ||
c4d5ca9c ZU |
318 | %files backend-djvu |
319 | %defattr(644,root,root,755) | |
9b4f4918 | 320 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 321 | %{backendsdir}/djvudocument.evince-backend |
df890f54 | 322 | %{_datadir}/metainfo/evince-djvudocument.metainfo.xml |
c4d5ca9c | 323 | |
ab458ef2 | 324 | %files backend-dvi |
c4d5ca9c | 325 | %defattr(644,root,root,755) |
9b4f4918 | 326 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 327 | %{backendsdir}/dvidocument.evince-backend |
df890f54 | 328 | %{_datadir}/metainfo/evince-dvidocument.metainfo.xml |
ab458ef2 ZU |
329 | |
330 | %files backend-pdf | |
c4d5ca9c | 331 | %defattr(644,root,root,755) |
9b4f4918 | 332 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 | 333 | %{backendsdir}/pdfdocument.evince-backend |
df890f54 | 334 | %{_datadir}/metainfo/evince-pdfdocument.metainfo.xml |
fe5e577f JB |
335 | |
336 | %files backend-ps | |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
339 | %{backendsdir}/psdocument.evince-backend | |
df890f54 | 340 | %{_datadir}/metainfo/evince-psdocument.metainfo.xml |
ab458ef2 | 341 | |
2f4ccc22 JB |
342 | %files backend-xps |
343 | %defattr(644,root,root,755) | |
344 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so | |
345 | %{backendsdir}/xpsdocument.evince-backend | |
df890f54 | 346 | %{_datadir}/metainfo/evince-xpsdocument.metainfo.xml |
2f4ccc22 | 347 | |
2f4ccc22 | 348 | %if %{with nautilus} |
17e70b62 | 349 | %files -n nautilus3-extension-evince |
a96547b6 | 350 | %defattr(644,root,root,755) |
cea79620 | 351 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |
2f4ccc22 | 352 | %endif |