]>
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 |
e2784afd | 13 | Version: 3.30.2 |
67ce3ec6 | 14 | Release: 1 |
fe5e577f | 15 | License: GPL v2+ |
87553ab6 | 16 | Group: X11/Applications/Graphics |
e2784afd JK |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.30/%{name}-%{version}.tar.xz |
18 | # Source0-md5: 136eed1e980e91b5e1052d9a906bc2ee | |
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 |
df890f54 | 27 | BuildRequires: gdk-pixbuf2-devel >= 2.36.5 |
dd208bb4 | 28 | BuildRequires: gettext-tools |
e51dfc19 | 29 | BuildRequires: glib2-devel >= 1:2.36.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 | |
37 | BuildRequires: gtk+3-devel >= 3.16.0 | |
dcaa156e | 38 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 39 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 40 | BuildRequires: kpathsea-devel |
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 |
a96547b6 | 54 | BuildRequires: t1lib-devel |
a9811523 | 55 | BuildRequires: tar >= 1:1.22 |
cea79620 | 56 | BuildRequires: xorg-lib-libICE-devel |
2f4ccc22 JB |
57 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 |
58 | BuildRequires: xorg-lib-libX11-devel | |
a9811523 | 59 | BuildRequires: xz |
1380699d | 60 | BuildRequires: yelp-tools |
9b07dbc7 | 61 | BuildRequires: zlib-devel |
12600ecc | 62 | Requires(post,postun): desktop-file-utils |
e51dfc19 | 63 | Requires(post,postun): glib2 >= 1:2.36.0 |
5a12fc5e | 64 | Requires: %{name}-libs = %{version}-%{release} |
2f4ccc22 | 65 | Requires: cairo >= 1.10.0 |
31d78cfa | 66 | Requires: dconf |
df890f54 | 67 | Requires: gdk-pixbuf2 >= 2.36.5 |
cea79620 | 68 | Requires: gsettings-desktop-schemas |
cea79620 MB |
69 | Requires: gtk-update-icon-cache |
70 | Requires: hicolor-icon-theme | |
2f4ccc22 JB |
71 | Requires: libsecret >= 0.5 |
72 | Requires: xorg-lib-libSM >= 1.0.0 | |
9b4f4918 MB |
73 | Suggests: evince-backend-djvu |
74 | Suggests: evince-backend-dvi | |
75 | Suggests: evince-backend-pdf | |
76 | Suggests: evince-backend-ps | |
8eb0035b | 77 | Suggests: gtk+3-cups >= 3.16.0 |
795a6311 | 78 | Obsoletes: evince-gtk |
3e7213f4 | 79 | # sr@Latn vs. sr@latin |
80 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 81 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
82 | ||
c252a4a2 | 83 | %define backendsdir %{_libdir}/evince/4/backends |
a96547b6 | 84 | |
87553ab6 | 85 | %description |
86 | Evince is a document viewer for multiple document formats like pdf, | |
87 | postscript, and many others. The goal of evince is to replace the | |
88 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
89 | gpdf, and xpdf with a single simple application. | |
90 | ||
2a3b3b99 JR |
91 | %description -l pl.UTF-8 |
92 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
93 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
94 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
95 | xpdf jedną prostą aplikacją. | |
87553ab6 | 96 | |
5a12fc5e JB |
97 | %package libs |
98 | Summary: Evince shared libraries | |
99 | Summary(pl.UTF-8): Biblioteki współdzielone Evince | |
100 | Group: X11/Libraries | |
101 | Requires: glib2 >= 1:2.36.0 | |
15fde245 | 102 | Requires: gtk+3 >= 3.16.0 |
5a12fc5e JB |
103 | Conflicts: evince < 3.10.3-2 |
104 | ||
105 | %description libs | |
106 | Evince shared libraries. | |
107 | ||
108 | %description libs -l pl.UTF-8 | |
109 | Biblioteki współdzielone Evince. | |
110 | ||
a96547b6 PZ |
111 | %package devel |
112 | Summary: Header files for Evince | |
113 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
114 | Group: X11/Development/Libraries | |
5a12fc5e JB |
115 | Requires: %{name}-libs = %{version}-%{release} |
116 | Requires: glib2-devel >= 1:2.36.0 | |
15fde245 | 117 | Requires: gtk+3-devel >= 3.16.0 |
dfd5b6aa | 118 | |
a96547b6 PZ |
119 | %description devel |
120 | Header files for Evince. | |
dfd5b6aa | 121 | |
a96547b6 PZ |
122 | %description devel -l pl.UTF-8 |
123 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 124 | |
23544f41 | 125 | %package apidocs |
126 | Summary: Evince API documentation | |
127 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
128 | Group: Documentation | |
129 | Requires: gtk-doc-common | |
7de664da ER |
130 | %if "%{_rpmversion}" >= "5" |
131 | BuildArch: noarch | |
132 | %endif | |
23544f41 | 133 | |
134 | %description apidocs | |
135 | Evince API documentation. | |
136 | ||
137 | %description apidocs -l pl.UTF-8 | |
138 | Dokumentacja API aplikacji Evince. | |
139 | ||
a96547b6 PZ |
140 | %package -n nautilus-extension-evince |
141 | Summary: Evince extension for Nautilus | |
142 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
143 | Group: X11/Applications | |
144 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 145 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
146 | |
147 | %description -n nautilus-extension-evince | |
2f4ccc22 | 148 | This extension shows Evince document properties in Nautilus. |
a96547b6 PZ |
149 | |
150 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
2f4ccc22 | 151 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie. |
a96547b6 | 152 | |
ab458ef2 | 153 | %package backend-djvu |
2f4ccc22 JB |
154 | Summary: View DjVu documents with Evince |
155 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince | |
ab458ef2 | 156 | Group: X11/Applications |
9b4f4918 | 157 | Requires: %{name} = %{version}-%{release} |
184284bc | 158 | Requires: djvulibre >= 3.5.22 |
ab458ef2 ZU |
159 | |
160 | %description backend-djvu | |
2f4ccc22 JB |
161 | View DjVu documents with Evince. |
162 | ||
163 | %description backend-djvu -l pl.UTF-8 | |
164 | Przeglądanie dokumentów DjVu przy użyciu Evince. | |
ab458ef2 | 165 | |
c4d5ca9c | 166 | %package backend-dvi |
9b4f4918 | 167 | Summary: View DVI documents with Evince |
2f4ccc22 | 168 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince |
c4d5ca9c | 169 | Group: X11/Applications |
9b4f4918 | 170 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 171 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
172 | |
173 | %description backend-dvi | |
9b4f4918 | 174 | View DVI documents with Evince. |
c4d5ca9c | 175 | |
2f4ccc22 JB |
176 | %description backend-dvi -l pl.UTF-8 |
177 | Przeglądanie dokumentów DVI przy użyciu Evince. | |
178 | ||
ab458ef2 | 179 | %package backend-pdf |
9b4f4918 | 180 | Summary: View PDF documents with Evince |
2f4ccc22 | 181 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince |
ab458ef2 | 182 | Group: X11/Applications |
9b4f4918 | 183 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 JB |
184 | Requires: libxml2 >= 1:2.6.31 |
185 | Requires: poppler-glib >= 0.24.0 | |
ab458ef2 ZU |
186 | |
187 | %description backend-pdf | |
9b4f4918 | 188 | View PDF documents with Evince. |
ab458ef2 | 189 | |
2f4ccc22 JB |
190 | %description backend-pdf -l pl.UTF-8 |
191 | Przeglądanie dokumentów PDF przy użyciu Evince. | |
192 | ||
c4d5ca9c | 193 | %package backend-ps |
2f4ccc22 JB |
194 | Summary: View PostScript documents with Evince |
195 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince | |
c4d5ca9c | 196 | Group: X11/Applications |
9b4f4918 | 197 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 198 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
199 | |
200 | %description backend-ps | |
2f4ccc22 JB |
201 | View PostScript documents with Evince. |
202 | ||
203 | %description backend-ps -l pl.UTF-8 | |
204 | Przeglądanie dokumentów PostScript przy użyciu Evince. | |
205 | ||
206 | %package backend-xps | |
207 | Summary: View XPS documents with Evince | |
208 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince | |
209 | Group: X11/Applications | |
210 | Requires: %{name} = %{version}-%{release} | |
211 | Requires: libgxps >= 0.2.1 | |
212 | ||
213 | %description backend-xps | |
214 | View XPS documents with Evince. | |
215 | ||
216 | %description backend-xps -l pl.UTF-8 | |
217 | Przeglądanie dokumentów XPS przy użyciu Evince. | |
c4d5ca9c | 218 | |
fe5e577f JB |
219 | %package -n browser-plugin-evince |
220 | Summary: Evince browser plugin | |
221 | Summary(pl.UTF-8): Wtyczka Evince dla przegądarek WWW | |
222 | Group: X11/Applications/Graphics | |
223 | Requires: %{name} = %{version}-%{release} | |
224 | Requires: browser-plugins >= 2.0 | |
225 | ||
226 | %description -n browser-plugin-evince | |
227 | Evince plugin for Mozilla-compatible web browsers. | |
228 | ||
229 | %description -n browser-plugin-evince -l pl.UTF-8 | |
230 | Wtyczka Evince dla przegądarek WWW zgodnych z Mozillą. | |
231 | ||
87553ab6 | 232 | %prep |
233 | %setup -q | |
2c320383 | 234 | %patch0 -p1 |
cdc470ee | 235 | %patch1 -p1 |
58684a44 | 236 | |
87553ab6 | 237 | %build |
08c6a467 | 238 | %{__gtkdocize} |
a0ff1688 | 239 | %{__intltoolize} |
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 | |
328 | %{_iconsdir}/hicolor/*x*/apps/org.gnome.Evince.png | |
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 |