]>
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 |
62e890d3 | 13 | Version: 3.18.2 |
f9c5fbcc | 14 | Release: 1 |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
15fde245 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.18/%{name}-%{version}.tar.xz |
62e890d3 | 18 | # Source0-md5: c39af6b8b1c44d4393ef8ac9dab99c0b |
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 |
98a7da35 | 25 | BuildRequires: djvulibre-devel >= 3.5.17 |
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 |
e51dfc19 | 48 | BuildRequires: poppler-glib-devel >= 0.24.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 | |
126 | ||
127 | %description apidocs | |
128 | Evince API documentation. | |
129 | ||
130 | %description apidocs -l pl.UTF-8 | |
131 | Dokumentacja API aplikacji Evince. | |
132 | ||
a96547b6 PZ |
133 | %package -n nautilus-extension-evince |
134 | Summary: Evince extension for Nautilus | |
135 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
136 | Group: X11/Applications | |
137 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 138 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
139 | |
140 | %description -n nautilus-extension-evince | |
2f4ccc22 | 141 | This extension shows Evince document properties in Nautilus. |
a96547b6 PZ |
142 | |
143 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
2f4ccc22 | 144 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie. |
a96547b6 | 145 | |
ab458ef2 | 146 | %package backend-djvu |
2f4ccc22 JB |
147 | Summary: View DjVu documents with Evince |
148 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince | |
ab458ef2 | 149 | Group: X11/Applications |
9b4f4918 MB |
150 | Requires: %{name} = %{version}-%{release} |
151 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
152 | |
153 | %description backend-djvu | |
2f4ccc22 JB |
154 | View DjVu documents with Evince. |
155 | ||
156 | %description backend-djvu -l pl.UTF-8 | |
157 | Przeglądanie dokumentów DjVu przy użyciu Evince. | |
ab458ef2 | 158 | |
c4d5ca9c | 159 | %package backend-dvi |
9b4f4918 | 160 | Summary: View DVI documents with Evince |
2f4ccc22 | 161 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince |
c4d5ca9c | 162 | Group: X11/Applications |
9b4f4918 | 163 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 164 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
165 | |
166 | %description backend-dvi | |
9b4f4918 | 167 | View DVI documents with Evince. |
c4d5ca9c | 168 | |
2f4ccc22 JB |
169 | %description backend-dvi -l pl.UTF-8 |
170 | Przeglądanie dokumentów DVI przy użyciu Evince. | |
171 | ||
ab458ef2 | 172 | %package backend-pdf |
9b4f4918 | 173 | Summary: View PDF documents with Evince |
2f4ccc22 | 174 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince |
ab458ef2 | 175 | Group: X11/Applications |
9b4f4918 | 176 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 JB |
177 | Requires: libxml2 >= 1:2.6.31 |
178 | Requires: poppler-glib >= 0.24.0 | |
ab458ef2 ZU |
179 | |
180 | %description backend-pdf | |
9b4f4918 | 181 | View PDF documents with Evince. |
ab458ef2 | 182 | |
2f4ccc22 JB |
183 | %description backend-pdf -l pl.UTF-8 |
184 | Przeglądanie dokumentów PDF przy użyciu Evince. | |
185 | ||
c4d5ca9c | 186 | %package backend-ps |
2f4ccc22 JB |
187 | Summary: View PostScript documents with Evince |
188 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince | |
c4d5ca9c | 189 | Group: X11/Applications |
9b4f4918 | 190 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 191 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
192 | |
193 | %description backend-ps | |
2f4ccc22 JB |
194 | View PostScript documents with Evince. |
195 | ||
196 | %description backend-ps -l pl.UTF-8 | |
197 | Przeglądanie dokumentów PostScript przy użyciu Evince. | |
198 | ||
199 | %package backend-xps | |
200 | Summary: View XPS documents with Evince | |
201 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince | |
202 | Group: X11/Applications | |
203 | Requires: %{name} = %{version}-%{release} | |
204 | Requires: libgxps >= 0.2.1 | |
205 | ||
206 | %description backend-xps | |
207 | View XPS documents with Evince. | |
208 | ||
209 | %description backend-xps -l pl.UTF-8 | |
210 | Przeglądanie dokumentów XPS przy użyciu Evince. | |
c4d5ca9c | 211 | |
fe5e577f JB |
212 | %package -n browser-plugin-evince |
213 | Summary: Evince browser plugin | |
214 | Summary(pl.UTF-8): Wtyczka Evince dla przegądarek WWW | |
215 | Group: X11/Applications/Graphics | |
216 | Requires: %{name} = %{version}-%{release} | |
217 | Requires: browser-plugins >= 2.0 | |
218 | ||
219 | %description -n browser-plugin-evince | |
220 | Evince plugin for Mozilla-compatible web browsers. | |
221 | ||
222 | %description -n browser-plugin-evince -l pl.UTF-8 | |
223 | Wtyczka Evince dla przegądarek WWW zgodnych z Mozillą. | |
224 | ||
87553ab6 | 225 | %prep |
226 | %setup -q | |
2c320383 | 227 | %patch0 -p1 |
cdc470ee | 228 | %patch1 -p1 |
58684a44 | 229 | |
87553ab6 | 230 | %build |
08c6a467 | 231 | %{__gtkdocize} |
a0ff1688 | 232 | %{__intltoolize} |
a96547b6 | 233 | %{__libtoolize} |
08c6a467 | 234 | %{__aclocal} -I m4 |
f8be43cb AF |
235 | %{__autoconf} |
236 | %{__autoheader} | |
237 | %{__automake} | |
87553ab6 | 238 | %configure \ |
fe5e577f | 239 | BROWSER_PLUGIN_DIR=%{_browserpluginsdir} \ |
a0ff1688 | 240 | --enable-comics \ |
72e9e2b8 | 241 | --enable-djvu \ |
a5a87d5b | 242 | --enable-dvi \ |
2f4ccc22 | 243 | %{?with_apidocs:--enable-gtk-doc} \ |
97f25a2f | 244 | --enable-introspection \ |
2f4ccc22 | 245 | --enable-nautilus%{!?with_nautilus:=no} \ |
a96547b6 | 246 | --enable-pdf \ |
2f4ccc22 JB |
247 | --disable-silent-rules \ |
248 | --disable-static \ | |
249 | --enable-t1lib \ | |
a0ff1688 | 250 | --enable-tiff \ |
7efc2c80 | 251 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 252 | %{__make} |
253 | ||
254 | %install | |
255 | rm -rf $RPM_BUILD_ROOT | |
256 | ||
257 | %{__make} install \ | |
a96547b6 | 258 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 259 | |
cea79620 | 260 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
fe5e577f | 261 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la |
cea79620 | 262 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la |
2f4ccc22 | 263 | %if %{with nautilus} |
cea79620 | 264 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la |
2f4ccc22 | 265 | %endif |
87553ab6 | 266 | |
15fe3a37 | 267 | %find_lang %{name} --with-gnome |
87553ab6 | 268 | |
269 | %clean | |
270 | rm -rf $RPM_BUILD_ROOT | |
271 | ||
272 | %post | |
4685de83 | 273 | %update_desktop_database_post |
a0ff1688 | 274 | %update_icon_cache hicolor |
d46abe04 | 275 | %glib_compile_schemas |
12600ecc | 276 | |
87553ab6 | 277 | %postun |
4685de83 | 278 | %update_desktop_database_postun |
a0ff1688 | 279 | %update_icon_cache hicolor |
d46abe04 | 280 | %glib_compile_schemas |
87553ab6 | 281 | |
5a12fc5e JB |
282 | %post libs -p /sbin/ldconfig |
283 | %postun libs -p /sbin/ldconfig | |
284 | ||
033d6466 | 285 | %post -n browser-plugin-evince |
fe5e577f JB |
286 | %update_browser_plugins |
287 | ||
033d6466 | 288 | %postun -n browser-plugin-evince |
fe5e577f JB |
289 | if [ "$1" = 0 ]; then |
290 | %update_browser_plugins | |
291 | fi | |
292 | ||
87553ab6 | 293 | %files -f %{name}.lang |
294 | %defattr(644,root,root,755) | |
295 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 296 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 297 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 298 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 299 | %attr(755,root,root) %{_libexecdir}/evinced |
a96547b6 | 300 | %dir %{_libdir}/evince |
c252a4a2 | 301 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
302 | %dir %{backendsdir} |
303 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
304 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
305 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
306 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 307 | %{_datadir}/GConf/gsettings/evince.convert |
fe5e577f JB |
308 | %{_datadir}/appdata/evince.appdata.xml |
309 | %{_datadir}/appdata/evince-comicsdocument.metainfo.xml | |
310 | %{_datadir}/appdata/evince-tiffdocument.metainfo.xml | |
dcaa156e | 311 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 312 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 313 | %{_datadir}/%{name} |
cea79620 | 314 | %{_datadir}/thumbnailers/evince.thumbnailer |
a96547b6 PZ |
315 | %{_mandir}/man1/evince.1* |
316 | %{_desktopdir}/evince.desktop | |
15fe3a37 | 317 | %{_desktopdir}/evince-previewer.desktop |
2f4ccc22 | 318 | %{_iconsdir}/hicolor/*x*/apps/evince.png |
dfd5b6aa | 319 | |
5a12fc5e JB |
320 | %files libs |
321 | %defattr(644,root,root,755) | |
322 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* | |
323 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4 | |
324 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
325 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
326 | %{_libdir}/girepository-1.0/EvinceDocument-3.0.typelib | |
327 | %{_libdir}/girepository-1.0/EvinceView-3.0.typelib | |
328 | ||
329 | %files devel | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_libdir}/libevdocument3.so | |
332 | %attr(755,root,root) %{_libdir}/libevview3.so | |
333 | %{_datadir}/gir-1.0/EvinceDocument-3.0.gir | |
334 | %{_datadir}/gir-1.0/EvinceView-3.0.gir | |
335 | %{_includedir}/evince | |
336 | %{_pkgconfigdir}/evince-document-3.0.pc | |
337 | %{_pkgconfigdir}/evince-view-3.0.pc | |
338 | ||
339 | %if %{with apidocs} | |
340 | %files apidocs | |
341 | %defattr(644,root,root,755) | |
342 | %{_gtkdocdir}/evince | |
343 | %{_gtkdocdir}/libevdocument-3.0 | |
344 | %{_gtkdocdir}/libevview-3.0 | |
345 | %endif | |
346 | ||
c4d5ca9c ZU |
347 | %files backend-djvu |
348 | %defattr(644,root,root,755) | |
9b4f4918 | 349 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 350 | %{backendsdir}/djvudocument.evince-backend |
fe5e577f | 351 | %{_datadir}/appdata/evince-djvudocument.metainfo.xml |
c4d5ca9c | 352 | |
ab458ef2 | 353 | %files backend-dvi |
c4d5ca9c | 354 | %defattr(644,root,root,755) |
9b4f4918 | 355 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 356 | %{backendsdir}/dvidocument.evince-backend |
fe5e577f | 357 | %{_datadir}/appdata/evince-dvidocument.metainfo.xml |
ab458ef2 ZU |
358 | |
359 | %files backend-pdf | |
c4d5ca9c | 360 | %defattr(644,root,root,755) |
9b4f4918 | 361 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 | 362 | %{backendsdir}/pdfdocument.evince-backend |
fe5e577f JB |
363 | %{_datadir}/appdata/evince-pdfdocument.metainfo.xml |
364 | ||
365 | %files backend-ps | |
366 | %defattr(644,root,root,755) | |
367 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
368 | %{backendsdir}/psdocument.evince-backend | |
369 | %{_datadir}/appdata/evince-psdocument.metainfo.xml | |
ab458ef2 | 370 | |
2f4ccc22 JB |
371 | %files backend-xps |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so | |
374 | %{backendsdir}/xpsdocument.evince-backend | |
fe5e577f | 375 | %{_datadir}/appdata/evince-xpsdocument.metainfo.xml |
2f4ccc22 | 376 | |
2f4ccc22 | 377 | %if %{with nautilus} |
a96547b6 PZ |
378 | %files -n nautilus-extension-evince |
379 | %defattr(644,root,root,755) | |
cea79620 | 380 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |
2f4ccc22 | 381 | %endif |
fe5e577f JB |
382 | |
383 | %files -n browser-plugin-evince | |
384 | %defattr(644,root,root,755) | |
385 | %attr(755,root,root) %{_browserpluginsdir}/libevbrowserplugin.so |