]>
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: |
23544f41 | 7 | %bcond_without apidocs # disable gtk-doc |
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 |
36828f27 | 13 | Version: 3.36.1 |
98116ded | 14 | Release: 1 |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
98116ded | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.36/%{name}-%{version}.tar.xz |
36828f27 | 18 | # Source0-md5: 0acb95730933fb4b591c73c3fc7fc688 |
15fe3a37 | 19 | Patch0: %{name}-linking.patch |
cdc470ee | 20 | Patch1: icon-theme.patch |
eac08ea3 | 21 | URL: https://wiki.gnome.org/Apps/Evince |
a96547b6 | 22 | BuildRequires: autoconf >= 2.57 |
dcaa156e | 23 | BuildRequires: automake >= 1:1.10 |
31d78cfa | 24 | BuildRequires: cairo-devel >= 1.10.0 |
184284bc | 25 | BuildRequires: djvulibre-devel >= 3.5.22 |
2b3bf0b6 | 26 | BuildRequires: docbook-dtd412-xml |
df890f54 | 27 | BuildRequires: gdk-pixbuf2-devel >= 2.36.5 |
eac08ea3 | 28 | BuildRequires: gettext-tools >= 0.19.8 |
9b7cc1e5 | 29 | BuildRequires: glib2-devel >= 1:2.38.0 |
4d1cdbff | 30 | BuildRequires: gnome-common >= 2.24.0 |
fe5e577f | 31 | BuildRequires: gnome-desktop-devel >= 3.0 |
2f4ccc22 | 32 | BuildRequires: gobject-introspection-devel >= 1.0 |
cea79620 | 33 | BuildRequires: gsettings-desktop-schemas-devel |
e2784afd | 34 | BuildRequires: gspell-devel >= 1.6.0 |
15fde245 ŁK |
35 | BuildRequires: gstreamer-devel >= 1.0 |
36 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
eac08ea3 | 37 | BuildRequires: gtk+3-devel >= 3.22.0 |
dcaa156e | 38 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
72e9e2b8 | 39 | BuildRequires: kpathsea-devel |
eac08ea3 | 40 | BuildRequires: libarchive-devel >= 3.2.0 |
c252a4a2 | 41 | BuildRequires: libgxps-devel >= 0.2.1 |
15fe3a37 | 42 | BuildRequires: libsecret-devel >= 0.5 |
a96547b6 | 43 | BuildRequires: libspectre-devel >= 0.2.0 |
0385f1ef | 44 | BuildRequires: libstdc++-devel |
84d46d76 | 45 | BuildRequires: libtiff-devel >= 3.6 |
2f4ccc22 | 46 | BuildRequires: libtool >= 2:2.2 |
a96547b6 | 47 | BuildRequires: libxml2-devel >= 1:2.6.31 |
2f4ccc22 JB |
48 | BuildRequires: libxml2-progs >= 1:2.6.31 |
49 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0} | |
184cd39f | 50 | BuildRequires: pkgconfig |
67ce3ec6 | 51 | BuildRequires: poppler-glib-devel >= 0.33.0 |
16b45cd3 | 52 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 53 | BuildRequires: rpmbuild(macros) >= 1.592 |
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 |
9b7cc1e5 | 64 | Requires(post,postun): glib2 >= 1:2.38.0 |
5a12fc5e | 65 | Requires: %{name}-libs = %{version}-%{release} |
2f4ccc22 | 66 | Requires: cairo >= 1.10.0 |
31d78cfa | 67 | Requires: dconf |
df890f54 | 68 | Requires: gdk-pixbuf2 >= 2.36.5 |
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 |
2f4ccc22 JB |
74 | Requires: libsecret >= 0.5 |
75 | Requires: xorg-lib-libSM >= 1.0.0 | |
9b4f4918 MB |
76 | Suggests: evince-backend-djvu |
77 | Suggests: evince-backend-dvi | |
78 | Suggests: evince-backend-pdf | |
79 | Suggests: evince-backend-ps | |
eac08ea3 | 80 | Suggests: gtk+3-cups >= 3.22.0 |
795a6311 | 81 | Obsoletes: evince-gtk |
87553ab6 | 82 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
83 | ||
c252a4a2 | 84 | %define backendsdir %{_libdir}/evince/4/backends |
a96547b6 | 85 | |
87553ab6 | 86 | %description |
87 | Evince is a document viewer for multiple document formats like pdf, | |
88 | postscript, and many others. The goal of evince is to replace the | |
89 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
90 | gpdf, and xpdf with a single simple application. | |
91 | ||
2a3b3b99 JR |
92 | %description -l pl.UTF-8 |
93 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
94 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
95 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
96 | xpdf jedną prostą aplikacją. | |
87553ab6 | 97 | |
5a12fc5e JB |
98 | %package libs |
99 | Summary: Evince shared libraries | |
100 | Summary(pl.UTF-8): Biblioteki współdzielone Evince | |
101 | Group: X11/Libraries | |
9b7cc1e5 | 102 | Requires: glib2 >= 1:2.38.0 |
eac08ea3 | 103 | Requires: gtk+3 >= 3.22.0 |
5a12fc5e JB |
104 | Conflicts: evince < 3.10.3-2 |
105 | ||
106 | %description libs | |
107 | Evince shared libraries. | |
108 | ||
109 | %description libs -l pl.UTF-8 | |
110 | Biblioteki współdzielone Evince. | |
111 | ||
a96547b6 PZ |
112 | %package devel |
113 | Summary: Header files for Evince | |
114 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
115 | Group: X11/Development/Libraries | |
5a12fc5e | 116 | Requires: %{name}-libs = %{version}-%{release} |
9b7cc1e5 | 117 | Requires: glib2-devel >= 1:2.38.0 |
eac08ea3 | 118 | Requires: gtk+3-devel >= 3.22.0 |
dfd5b6aa | 119 | |
a96547b6 PZ |
120 | %description devel |
121 | Header files for Evince. | |
dfd5b6aa | 122 | |
a96547b6 PZ |
123 | %description devel -l pl.UTF-8 |
124 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 125 | |
23544f41 | 126 | %package apidocs |
127 | Summary: Evince API documentation | |
128 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
129 | Group: Documentation | |
130 | Requires: gtk-doc-common | |
7de664da ER |
131 | %if "%{_rpmversion}" >= "5" |
132 | BuildArch: noarch | |
133 | %endif | |
23544f41 | 134 | |
135 | %description apidocs | |
136 | Evince API documentation. | |
137 | ||
138 | %description apidocs -l pl.UTF-8 | |
139 | Dokumentacja API aplikacji Evince. | |
140 | ||
a96547b6 PZ |
141 | %package -n nautilus-extension-evince |
142 | Summary: Evince extension for Nautilus | |
143 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
144 | Group: X11/Applications | |
145 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 146 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
147 | |
148 | %description -n nautilus-extension-evince | |
2f4ccc22 | 149 | This extension shows Evince document properties in Nautilus. |
a96547b6 PZ |
150 | |
151 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
2f4ccc22 | 152 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie. |
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 JB |
185 | Requires: libxml2 >= 1:2.6.31 |
186 | Requires: poppler-glib >= 0.24.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 | |
fe5e577f JB |
220 | %package -n browser-plugin-evince |
221 | Summary: Evince browser plugin | |
222 | Summary(pl.UTF-8): Wtyczka Evince dla przegądarek WWW | |
223 | Group: X11/Applications/Graphics | |
224 | Requires: %{name} = %{version}-%{release} | |
225 | Requires: browser-plugins >= 2.0 | |
226 | ||
227 | %description -n browser-plugin-evince | |
228 | Evince plugin for Mozilla-compatible web browsers. | |
229 | ||
230 | %description -n browser-plugin-evince -l pl.UTF-8 | |
231 | Wtyczka Evince dla przegądarek WWW zgodnych z Mozillą. | |
232 | ||
87553ab6 | 233 | %prep |
234 | %setup -q | |
2c320383 | 235 | %patch0 -p1 |
cdc470ee | 236 | %patch1 -p1 |
58684a44 | 237 | |
87553ab6 | 238 | %build |
08c6a467 | 239 | %{__gtkdocize} |
a96547b6 | 240 | %{__libtoolize} |
08c6a467 | 241 | %{__aclocal} -I m4 |
f8be43cb AF |
242 | %{__autoconf} |
243 | %{__autoheader} | |
244 | %{__automake} | |
87553ab6 | 245 | %configure \ |
fe5e577f | 246 | BROWSER_PLUGIN_DIR=%{_browserpluginsdir} \ |
e2784afd | 247 | --enable-browser-plugin \ |
a0ff1688 | 248 | --enable-comics \ |
72e9e2b8 | 249 | --enable-djvu \ |
a5a87d5b | 250 | --enable-dvi \ |
2f4ccc22 | 251 | %{?with_apidocs:--enable-gtk-doc} \ |
97f25a2f | 252 | --enable-introspection \ |
2f4ccc22 | 253 | --enable-nautilus%{!?with_nautilus:=no} \ |
a96547b6 | 254 | --enable-pdf \ |
e2784afd | 255 | --enable-ps \ |
2f4ccc22 JB |
256 | --disable-silent-rules \ |
257 | --disable-static \ | |
258 | --enable-t1lib \ | |
a0ff1688 | 259 | --enable-tiff \ |
7efc2c80 | 260 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 261 | %{__make} |
262 | ||
263 | %install | |
264 | rm -rf $RPM_BUILD_ROOT | |
265 | ||
266 | %{__make} install \ | |
a96547b6 | 267 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 268 | |
cea79620 | 269 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
fe5e577f | 270 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la |
cea79620 | 271 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la |
2f4ccc22 | 272 | %if %{with nautilus} |
cea79620 | 273 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la |
2f4ccc22 | 274 | %endif |
87553ab6 | 275 | |
15fe3a37 | 276 | %find_lang %{name} --with-gnome |
87553ab6 | 277 | |
278 | %clean | |
279 | rm -rf $RPM_BUILD_ROOT | |
280 | ||
281 | %post | |
4685de83 | 282 | %update_desktop_database_post |
a0ff1688 | 283 | %update_icon_cache hicolor |
d46abe04 | 284 | %glib_compile_schemas |
12600ecc | 285 | |
87553ab6 | 286 | %postun |
4685de83 | 287 | %update_desktop_database_postun |
a0ff1688 | 288 | %update_icon_cache hicolor |
d46abe04 | 289 | %glib_compile_schemas |
87553ab6 | 290 | |
5a12fc5e JB |
291 | %post libs -p /sbin/ldconfig |
292 | %postun libs -p /sbin/ldconfig | |
293 | ||
033d6466 | 294 | %post -n browser-plugin-evince |
fe5e577f JB |
295 | %update_browser_plugins |
296 | ||
033d6466 | 297 | %postun -n browser-plugin-evince |
fe5e577f JB |
298 | if [ "$1" = 0 ]; then |
299 | %update_browser_plugins | |
300 | fi | |
301 | ||
87553ab6 | 302 | %files -f %{name}.lang |
303 | %defattr(644,root,root,755) | |
e2784afd | 304 | %doc AUTHORS ChangeLog NEWS TODO |
a96547b6 | 305 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 306 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 307 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 308 | %attr(755,root,root) %{_libexecdir}/evinced |
a96547b6 | 309 | %dir %{_libdir}/evince |
c252a4a2 | 310 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
311 | %dir %{backendsdir} |
312 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
313 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
314 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
315 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 316 | %{_datadir}/GConf/gsettings/evince.convert |
e2784afd | 317 | %{_datadir}/metainfo/org.gnome.Evince.appdata.xml |
df890f54 MB |
318 | %{_datadir}/metainfo/evince-comicsdocument.metainfo.xml |
319 | %{_datadir}/metainfo/evince-tiffdocument.metainfo.xml | |
dcaa156e | 320 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 321 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 322 | %{_datadir}/%{name} |
cea79620 | 323 | %{_datadir}/thumbnailers/evince.thumbnailer |
e2784afd | 324 | %{systemduserunitdir}/org.gnome.Evince.service |
a96547b6 | 325 | %{_mandir}/man1/evince.1* |
e2784afd JK |
326 | %{_desktopdir}/org.gnome.Evince.desktop |
327 | %{_desktopdir}/org.gnome.Evince-previewer.desktop | |
eac08ea3 | 328 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Evince.svg |
e2784afd | 329 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Evince-symbolic.svg |
dfd5b6aa | 330 | |
5a12fc5e JB |
331 | %files libs |
332 | %defattr(644,root,root,755) | |
333 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* | |
334 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4 | |
335 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
336 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
337 | %{_libdir}/girepository-1.0/EvinceDocument-3.0.typelib | |
338 | %{_libdir}/girepository-1.0/EvinceView-3.0.typelib | |
339 | ||
340 | %files devel | |
341 | %defattr(644,root,root,755) | |
342 | %attr(755,root,root) %{_libdir}/libevdocument3.so | |
343 | %attr(755,root,root) %{_libdir}/libevview3.so | |
344 | %{_datadir}/gir-1.0/EvinceDocument-3.0.gir | |
345 | %{_datadir}/gir-1.0/EvinceView-3.0.gir | |
346 | %{_includedir}/evince | |
347 | %{_pkgconfigdir}/evince-document-3.0.pc | |
348 | %{_pkgconfigdir}/evince-view-3.0.pc | |
349 | ||
350 | %if %{with apidocs} | |
351 | %files apidocs | |
352 | %defattr(644,root,root,755) | |
353 | %{_gtkdocdir}/evince | |
354 | %{_gtkdocdir}/libevdocument-3.0 | |
355 | %{_gtkdocdir}/libevview-3.0 | |
356 | %endif | |
357 | ||
c4d5ca9c ZU |
358 | %files backend-djvu |
359 | %defattr(644,root,root,755) | |
9b4f4918 | 360 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 361 | %{backendsdir}/djvudocument.evince-backend |
df890f54 | 362 | %{_datadir}/metainfo/evince-djvudocument.metainfo.xml |
c4d5ca9c | 363 | |
ab458ef2 | 364 | %files backend-dvi |
c4d5ca9c | 365 | %defattr(644,root,root,755) |
9b4f4918 | 366 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 367 | %{backendsdir}/dvidocument.evince-backend |
df890f54 | 368 | %{_datadir}/metainfo/evince-dvidocument.metainfo.xml |
ab458ef2 ZU |
369 | |
370 | %files backend-pdf | |
c4d5ca9c | 371 | %defattr(644,root,root,755) |
9b4f4918 | 372 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 | 373 | %{backendsdir}/pdfdocument.evince-backend |
df890f54 | 374 | %{_datadir}/metainfo/evince-pdfdocument.metainfo.xml |
fe5e577f JB |
375 | |
376 | %files backend-ps | |
377 | %defattr(644,root,root,755) | |
378 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
379 | %{backendsdir}/psdocument.evince-backend | |
df890f54 | 380 | %{_datadir}/metainfo/evince-psdocument.metainfo.xml |
ab458ef2 | 381 | |
2f4ccc22 JB |
382 | %files backend-xps |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so | |
385 | %{backendsdir}/xpsdocument.evince-backend | |
df890f54 | 386 | %{_datadir}/metainfo/evince-xpsdocument.metainfo.xml |
2f4ccc22 | 387 | |
2f4ccc22 | 388 | %if %{with nautilus} |
a96547b6 PZ |
389 | %files -n nautilus-extension-evince |
390 | %defattr(644,root,root,755) | |
cea79620 | 391 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |
2f4ccc22 | 392 | %endif |
fe5e577f JB |
393 | |
394 | %files -n browser-plugin-evince | |
395 | %defattr(644,root,root,755) | |
396 | %attr(755,root,root) %{_browserpluginsdir}/libevbrowserplugin.so |