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