]>
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 |
f3056fc0 JB |
13 | Version: 44.3 |
14 | Release: 1 | |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
f3056fc0 JB |
17 | Source0: https://download.gnome.org/sources/evince/44/%{name}-%{version}.tar.xz |
18 | # Source0-md5: a5ea6d19f083f41086ee363caefaa14f | |
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 |
d90f9174 | 35 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
72e9e2b8 | 36 | BuildRequires: kpathsea-devel |
d90f9174 | 37 | BuildRequires: libarchive-devel >= 3.6.0 |
c252a4a2 | 38 | BuildRequires: libgxps-devel >= 0.2.1 |
d90f9174 | 39 | BuildRequires: libhandy1-devel >= 1.5.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 |
f3056fc0 | 46 | BuildRequires: meson >= 0.59.0 |
c3402a6f | 47 | BuildRequires: ninja >= 1.5 |
17e70b62 JB |
48 | %{?with_nautilus:BuildRequires: nautilus3-devel >= 3.28.0} |
49 | %{?with_nautilus:BuildRequires: nautilus3-devel < 42.20} | |
184cd39f | 50 | BuildRequires: pkgconfig |
d90f9174 | 51 | BuildRequires: poppler-glib-devel >= 22.02.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 | |
d90f9174 JB |
74 | Requires: libarchive >= 3.6.0 |
75 | Requires: libhandy1 >= 1.5.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 | ||
17e70b62 JB |
142 | %package -n nautilus3-extension-evince |
143 | Summary: Evince extension for Nautilus 3 | |
144 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa 3 | |
a96547b6 PZ |
145 | Group: X11/Applications |
146 | Requires: %{name} = %{version}-%{release} | |
17e70b62 JB |
147 | Requires: nautilus3 >= 3.28.0 |
148 | Obsoletes: nautilus-extension-evince < 43 | |
a96547b6 | 149 | |
17e70b62 JB |
150 | %description -n nautilus3-extension-evince |
151 | This extension shows Evince document properties in Nautilus 3. | |
a96547b6 | 152 | |
17e70b62 JB |
153 | %description -n nautilus3-extension-evince -l pl.UTF-8 |
154 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie 3. | |
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 |
d90f9174 | 188 | Requires: poppler-glib >= 22.02.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 | 228 | %{!?with_apidocs:-Dgtk_doc=false} \ |
9f1ffa27 | 229 | %{?with_nautilus:-Dnautilus=true} \ |
c3402a6f JB |
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 | |
d90f9174 JB |
239 | %if %{with apidocs} |
240 | # FIXME: where to package gi-docgen generated docs? | |
241 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
242 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/libev* $RPM_BUILD_ROOT%{_gtkdocdir} | |
243 | %endif | |
244 | ||
6e1f61da JB |
245 | # not supported by glibc (as of 2.37) |
246 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
247 | ||
15fe3a37 | 248 | %find_lang %{name} --with-gnome |
87553ab6 | 249 | |
250 | %clean | |
251 | rm -rf $RPM_BUILD_ROOT | |
252 | ||
253 | %post | |
4685de83 | 254 | %update_desktop_database_post |
a0ff1688 | 255 | %update_icon_cache hicolor |
d46abe04 | 256 | %glib_compile_schemas |
12600ecc | 257 | |
87553ab6 | 258 | %postun |
4685de83 | 259 | %update_desktop_database_postun |
a0ff1688 | 260 | %update_icon_cache hicolor |
d46abe04 | 261 | %glib_compile_schemas |
87553ab6 | 262 | |
5a12fc5e JB |
263 | %post libs -p /sbin/ldconfig |
264 | %postun libs -p /sbin/ldconfig | |
265 | ||
87553ab6 | 266 | %files -f %{name}.lang |
267 | %defattr(644,root,root,755) | |
c3402a6f | 268 | %doc AUTHORS MAINTAINERS NEWS NEWS-security.md NOTES README.md TODO |
a96547b6 | 269 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 270 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 271 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 272 | %attr(755,root,root) %{_libexecdir}/evinced |
a96547b6 | 273 | %dir %{_libdir}/evince |
c252a4a2 | 274 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
275 | %dir %{backendsdir} |
276 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
277 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
278 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
279 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 280 | %{_datadir}/GConf/gsettings/evince.convert |
e2784afd | 281 | %{_datadir}/metainfo/org.gnome.Evince.appdata.xml |
df890f54 MB |
282 | %{_datadir}/metainfo/evince-comicsdocument.metainfo.xml |
283 | %{_datadir}/metainfo/evince-tiffdocument.metainfo.xml | |
dcaa156e | 284 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 285 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 286 | %{_datadir}/%{name} |
cea79620 | 287 | %{_datadir}/thumbnailers/evince.thumbnailer |
e2784afd | 288 | %{systemduserunitdir}/org.gnome.Evince.service |
a96547b6 | 289 | %{_mandir}/man1/evince.1* |
c3402a6f JB |
290 | %{_mandir}/man1/evince-previewer.1* |
291 | %{_mandir}/man1/evince-thumbnailer.1* | |
e2784afd JK |
292 | %{_desktopdir}/org.gnome.Evince.desktop |
293 | %{_desktopdir}/org.gnome.Evince-previewer.desktop | |
eac08ea3 | 294 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Evince.svg |
e2784afd | 295 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Evince-symbolic.svg |
dfd5b6aa | 296 | |
5a12fc5e JB |
297 | %files libs |
298 | %defattr(644,root,root,755) | |
299 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* | |
300 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4 | |
301 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
302 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
303 | %{_libdir}/girepository-1.0/EvinceDocument-3.0.typelib | |
304 | %{_libdir}/girepository-1.0/EvinceView-3.0.typelib | |
305 | ||
306 | %files devel | |
307 | %defattr(644,root,root,755) | |
308 | %attr(755,root,root) %{_libdir}/libevdocument3.so | |
309 | %attr(755,root,root) %{_libdir}/libevview3.so | |
310 | %{_datadir}/gir-1.0/EvinceDocument-3.0.gir | |
311 | %{_datadir}/gir-1.0/EvinceView-3.0.gir | |
312 | %{_includedir}/evince | |
313 | %{_pkgconfigdir}/evince-document-3.0.pc | |
314 | %{_pkgconfigdir}/evince-view-3.0.pc | |
315 | ||
316 | %if %{with apidocs} | |
317 | %files apidocs | |
318 | %defattr(644,root,root,755) | |
d90f9174 JB |
319 | %{_gtkdocdir}/libevdocument |
320 | %{_gtkdocdir}/libevview | |
5a12fc5e JB |
321 | %endif |
322 | ||
c4d5ca9c ZU |
323 | %files backend-djvu |
324 | %defattr(644,root,root,755) | |
9b4f4918 | 325 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 326 | %{backendsdir}/djvudocument.evince-backend |
df890f54 | 327 | %{_datadir}/metainfo/evince-djvudocument.metainfo.xml |
c4d5ca9c | 328 | |
ab458ef2 | 329 | %files backend-dvi |
c4d5ca9c | 330 | %defattr(644,root,root,755) |
9b4f4918 | 331 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 332 | %{backendsdir}/dvidocument.evince-backend |
df890f54 | 333 | %{_datadir}/metainfo/evince-dvidocument.metainfo.xml |
ab458ef2 ZU |
334 | |
335 | %files backend-pdf | |
c4d5ca9c | 336 | %defattr(644,root,root,755) |
9b4f4918 | 337 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 | 338 | %{backendsdir}/pdfdocument.evince-backend |
df890f54 | 339 | %{_datadir}/metainfo/evince-pdfdocument.metainfo.xml |
fe5e577f JB |
340 | |
341 | %files backend-ps | |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
344 | %{backendsdir}/psdocument.evince-backend | |
df890f54 | 345 | %{_datadir}/metainfo/evince-psdocument.metainfo.xml |
ab458ef2 | 346 | |
2f4ccc22 JB |
347 | %files backend-xps |
348 | %defattr(644,root,root,755) | |
349 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so | |
350 | %{backendsdir}/xpsdocument.evince-backend | |
df890f54 | 351 | %{_datadir}/metainfo/evince-xpsdocument.metainfo.xml |
2f4ccc22 | 352 | |
2f4ccc22 | 353 | %if %{with nautilus} |
17e70b62 | 354 | %files -n nautilus3-extension-evince |
a96547b6 | 355 | %defattr(644,root,root,755) |
cea79620 | 356 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |
2f4ccc22 | 357 | %endif |