]>
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: |
26832c98 | 7 | %bcond_without dbus # disable DBUS support |
23544f41 | 8 | %bcond_without apidocs # disable gtk-doc |
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 |
31d78cfa | 13 | Version: 2.32.0 |
aae86a44 | 14 | Release: 4 |
59aa6ffb | 15 | License: GPL v2 |
87553ab6 | 16 | Group: X11/Applications/Graphics |
31d78cfa MB |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/%{name}-%{version}.tar.bz2 |
18 | # Source0-md5: ebc3ce6df8dcbf29cb9492f8dd031319 | |
aae86a44 | 19 | Patch0: %{name}-poppler.patch |
87553ab6 | 20 | URL: http://www.gnome.org/projects/evince/ |
4d1cdbff | 21 | BuildRequires: GConf2-devel >= 2.24.0 |
a96547b6 | 22 | BuildRequires: autoconf >= 2.57 |
dcaa156e | 23 | BuildRequires: automake >= 1:1.10 |
31d78cfa | 24 | BuildRequires: cairo-devel >= 1.10.0 |
a96547b6 | 25 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.74} |
98a7da35 | 26 | BuildRequires: djvulibre-devel >= 3.5.17 |
2b3bf0b6 | 27 | BuildRequires: docbook-dtd412-xml |
a96547b6 | 28 | BuildRequires: gettext-devel |
31d78cfa | 29 | BuildRequires: glib2-devel >= 1:2.26.0 |
4d1cdbff MB |
30 | BuildRequires: gnome-common >= 2.24.0 |
31 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
ef82865f | 32 | BuildRequires: gnome-icon-theme >= 2.26.0 |
31d78cfa | 33 | BuildRequires: gtk+2-devel >= 2:2.22.0 |
dcaa156e | 34 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 35 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 36 | BuildRequires: kpathsea-devel |
c4d5ca9c | 37 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
a96547b6 | 38 | BuildRequires: libspectre-devel >= 0.2.0 |
52101646 | 39 | BuildRequires: libtiff-devel |
a96547b6 PZ |
40 | BuildRequires: libtool |
41 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
ef82865f | 42 | BuildRequires: nautilus-devel >= 2.26.0 |
184cd39f | 43 | BuildRequires: pkgconfig |
31d78cfa | 44 | BuildRequires: poppler-glib-devel >= 0.14.0 |
16b45cd3 | 45 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 46 | BuildRequires: rpmbuild(macros) >= 1.592 |
52101646 | 47 | BuildRequires: scrollkeeper |
a96547b6 | 48 | BuildRequires: t1lib-devel |
ef82865f | 49 | BuildRequires: xorg-lib-libSM-devel |
9b07dbc7 | 50 | BuildRequires: zlib-devel |
12600ecc | 51 | Requires(post,postun): desktop-file-utils |
31d78cfa | 52 | Requires(post,postun): glib2 >= 1:2.26.0 |
a96547b6 | 53 | Requires(post,postun): gtk+2 |
e1a2fb6e | 54 | Requires(post,postun): scrollkeeper |
a96547b6 | 55 | Requires(post,preun): GConf2 |
31d78cfa MB |
56 | Requires: dconf |
57 | Requires: gtk+2 >= 2:2.22.0 | |
9b4f4918 MB |
58 | Suggests: evince-backend-djvu |
59 | Suggests: evince-backend-dvi | |
60 | Suggests: evince-backend-pdf | |
61 | Suggests: evince-backend-ps | |
515ff560 | 62 | Suggests: gtk+2-cups |
e9f7e8ef | 63 | Conflicts: evince-gtk |
3e7213f4 | 64 | # sr@Latn vs. sr@latin |
65 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
67 | ||
31d78cfa | 68 | %define backendsdir %{_libdir}/evince/3/backends |
a96547b6 | 69 | |
87553ab6 | 70 | %description |
71 | Evince is a document viewer for multiple document formats like pdf, | |
72 | postscript, and many others. The goal of evince is to replace the | |
73 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
74 | gpdf, and xpdf with a single simple application. | |
75 | ||
2a3b3b99 JR |
76 | %description -l pl.UTF-8 |
77 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
78 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
79 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
80 | xpdf jedną prostą aplikacją. | |
87553ab6 | 81 | |
a96547b6 PZ |
82 | %package devel |
83 | Summary: Header files for Evince | |
84 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
85 | Group: X11/Development/Libraries | |
b42cac85 | 86 | Requires: %{name} = %{version}-%{release} |
31d78cfa | 87 | Requires: gtk+2-devel >= 2:2.22.0 |
dfd5b6aa | 88 | |
a96547b6 PZ |
89 | %description devel |
90 | Header files for Evince. | |
dfd5b6aa | 91 | |
a96547b6 PZ |
92 | %description devel -l pl.UTF-8 |
93 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 94 | |
23544f41 | 95 | %package apidocs |
96 | Summary: Evince API documentation | |
97 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
98 | Group: Documentation | |
99 | Requires: gtk-doc-common | |
100 | ||
101 | %description apidocs | |
102 | Evince API documentation. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API aplikacji Evince. | |
106 | ||
a96547b6 PZ |
107 | %package -n nautilus-extension-evince |
108 | Summary: Evince extension for Nautilus | |
109 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
110 | Group: X11/Applications | |
111 | Requires: %{name} = %{version}-%{release} | |
ef82865f | 112 | Requires: nautilus >= 2.26.0 |
a96547b6 PZ |
113 | |
114 | %description -n nautilus-extension-evince | |
115 | Shows Evince document properties in Nautilus. | |
116 | ||
117 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
118 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
119 | ||
ab458ef2 | 120 | %package backend-djvu |
9b4f4918 | 121 | Summary: View DJVu documents with Evince |
ab458ef2 | 122 | Group: X11/Applications |
9b4f4918 MB |
123 | Requires(post,preun): GConf2 |
124 | Requires: %{name} = %{version}-%{release} | |
125 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
126 | |
127 | %description backend-djvu | |
9b4f4918 | 128 | View DJVu documents with Evince. |
ab458ef2 | 129 | |
c4d5ca9c | 130 | %package backend-dvi |
9b4f4918 | 131 | Summary: View DVI documents with Evince |
c4d5ca9c | 132 | Group: X11/Applications |
9b4f4918 MB |
133 | Requires(post,preun): GConf2 |
134 | Requires: %{name} = %{version}-%{release} | |
c4d5ca9c ZU |
135 | |
136 | %description backend-dvi | |
9b4f4918 | 137 | View DVI documents with Evince. |
c4d5ca9c | 138 | |
ab458ef2 | 139 | %package backend-pdf |
9b4f4918 | 140 | Summary: View PDF documents with Evince |
ab458ef2 | 141 | Group: X11/Applications |
9b4f4918 MB |
142 | Requires(post,preun): GConf2 |
143 | Requires: %{name} = %{version}-%{release} | |
31d78cfa | 144 | Requires: poppler-glib >= 0.14.0 |
ab458ef2 ZU |
145 | |
146 | %description backend-pdf | |
9b4f4918 | 147 | View PDF documents with Evince. |
ab458ef2 | 148 | |
c4d5ca9c | 149 | %package backend-ps |
9b4f4918 | 150 | Summary: View Postscript documents with Evince |
c4d5ca9c | 151 | Group: X11/Applications |
9b4f4918 MB |
152 | Requires(post,preun): GConf2 |
153 | Requires: %{name} = %{version}-%{release} | |
c4d5ca9c ZU |
154 | |
155 | %description backend-ps | |
9b4f4918 | 156 | View Postscript documents with Evince. |
c4d5ca9c | 157 | |
87553ab6 | 158 | %prep |
159 | %setup -q | |
aae86a44 | 160 | %patch0 -p1 |
58684a44 | 161 | |
87553ab6 | 162 | %build |
08c6a467 | 163 | %{__gtkdocize} |
a0ff1688 | 164 | %{__intltoolize} |
a96547b6 | 165 | %{__libtoolize} |
08c6a467 | 166 | %{__aclocal} -I m4 |
f8be43cb AF |
167 | %{__autoconf} |
168 | %{__autoheader} | |
169 | %{__automake} | |
87553ab6 | 170 | %configure \ |
23544f41 | 171 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 172 | --disable-static \ |
87553ab6 | 173 | --disable-schemas-install \ |
dcaa156e | 174 | --disable-silent-rules \ |
a0ff1688 | 175 | --enable-comics \ |
72e9e2b8 | 176 | --enable-djvu \ |
a5a87d5b | 177 | --enable-dvi \ |
a0ff1688 | 178 | --enable-impress \ |
a96547b6 | 179 | --enable-t1lib \ |
a5a87d5b | 180 | --enable-nautilus \ |
a96547b6 | 181 | --enable-pdf \ |
a5a87d5b | 182 | --enable-pixbuf \ |
a0ff1688 | 183 | --enable-tiff \ |
23544f41 | 184 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 185 | %{__make} |
186 | ||
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %{__make} install \ | |
a96547b6 | 191 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 192 | |
a96547b6 PZ |
193 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la |
194 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
87553ab6 | 195 | |
58684a44 | 196 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 197 | |
198 | %clean | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
201 | %post | |
a96547b6 | 202 | /sbin/ldconfig |
a0ff1688 | 203 | %gconf_schema_install evince-thumbnailer-comics.schemas |
4685de83 | 204 | %gconf_schema_install evince-thumbnailer.schemas |
4685de83 | 205 | %update_desktop_database_post |
e1a2fb6e | 206 | %scrollkeeper_update_post |
a0ff1688 | 207 | %update_icon_cache hicolor |
d46abe04 | 208 | %glib_compile_schemas |
12600ecc | 209 | |
210 | %preun | |
a0ff1688 | 211 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas |
4685de83 | 212 | %gconf_schema_uninstall evince-thumbnailer.schemas |
87553ab6 | 213 | |
214 | %postun | |
a96547b6 | 215 | /sbin/ldconfig |
4685de83 | 216 | %update_desktop_database_postun |
e1a2fb6e | 217 | %scrollkeeper_update_postun |
a0ff1688 | 218 | %update_icon_cache hicolor |
d46abe04 | 219 | %glib_compile_schemas |
87553ab6 | 220 | |
c4d5ca9c ZU |
221 | %post backend-djvu |
222 | %gconf_schema_install evince-thumbnailer-djvu.schemas | |
223 | ||
224 | %preun backend-djvu | |
225 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas | |
226 | ||
ab458ef2 ZU |
227 | %post backend-dvi |
228 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
229 | ||
230 | %preun backend-dvi | |
231 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
232 | ||
c4d5ca9c | 233 | %post backend-ps |
c4d5ca9c ZU |
234 | %gconf_schema_install evince-thumbnailer-ps.schemas |
235 | ||
236 | %preun backend-ps | |
237 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas | |
238 | ||
87553ab6 | 239 | %files -f %{name}.lang |
240 | %defattr(644,root,root,755) | |
241 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 242 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 243 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 244 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
dcaa156e MB |
245 | %attr(755,root,root) %{_libdir}/evince-convert-metadata |
246 | %attr(755,root,root) %{_libdir}/evinced | |
ef82865f | 247 | %attr(755,root,root) %{_libdir}/libevdocument.so.*.*.* |
31d78cfa | 248 | %attr(755,root,root) %ghost %{_libdir}/libevdocument.so.3 |
ef82865f | 249 | %attr(755,root,root) %{_libdir}/libevview.so.*.*.* |
31d78cfa | 250 | %attr(755,root,root) %ghost %{_libdir}/libevview.so.3 |
a96547b6 | 251 | %dir %{_libdir}/evince |
31d78cfa | 252 | %dir %{_libdir}/evince/3 |
a96547b6 PZ |
253 | %dir %{backendsdir} |
254 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
255 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
256 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so |
257 | %{backendsdir}/impressdocument.evince-backend | |
a96547b6 PZ |
258 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so |
259 | %{backendsdir}/pixbufdocument.evince-backend | |
a96547b6 PZ |
260 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
261 | %{backendsdir}/tiffdocument.evince-backend | |
a0ff1688 | 262 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas |
dfd5b6aa | 263 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas |
31d78cfa | 264 | %{_datadir}/GConf/gsettings/evince.convert |
dcaa156e | 265 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 266 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 267 | %{_datadir}/%{name} |
a96547b6 PZ |
268 | %{_mandir}/man1/evince.1* |
269 | %{_desktopdir}/evince.desktop | |
270 | %{_iconsdir}/hicolor/*/*/*.png | |
271 | %{_iconsdir}/hicolor/*/*/*.svg | |
dfd5b6aa | 272 | |
c4d5ca9c ZU |
273 | %files backend-djvu |
274 | %defattr(644,root,root,755) | |
9b4f4918 | 275 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c ZU |
276 | %{backendsdir}/djvudocument.evince-backend |
277 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas | |
278 | ||
ab458ef2 | 279 | %files backend-dvi |
c4d5ca9c | 280 | %defattr(644,root,root,755) |
9b4f4918 | 281 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 ZU |
282 | %{backendsdir}/dvidocument.evince-backend |
283 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
284 | ||
c4d5ca9c ZU |
285 | %files backend-ps |
286 | %defattr(644,root,root,755) | |
287 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
288 | %{backendsdir}/psdocument.evince-backend | |
9b4f4918 | 289 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas |
ab458ef2 ZU |
290 | |
291 | %files backend-pdf | |
c4d5ca9c | 292 | %defattr(644,root,root,755) |
9b4f4918 | 293 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 ZU |
294 | %{backendsdir}/pdfdocument.evince-backend |
295 | ||
a96547b6 | 296 | %files devel |
dfd5b6aa | 297 | %defattr(644,root,root,755) |
ef82865f MB |
298 | %attr(755,root,root) %{_libdir}/libevdocument.so |
299 | %attr(755,root,root) %{_libdir}/libevview.so | |
300 | %{_libdir}/libevdocument.la | |
301 | %{_libdir}/libevview.la | |
302 | %{_includedir}/evince | |
303 | %{_pkgconfigdir}/evince-document-*.pc | |
304 | %{_pkgconfigdir}/evince-view-*.pc | |
23544f41 | 305 | |
306 | %if %{with apidocs} | |
307 | %files apidocs | |
308 | %defattr(644,root,root,755) | |
a96547b6 | 309 | %{_gtkdocdir}/evince |
dcaa156e MB |
310 | %{_gtkdocdir}/libevdocument-* |
311 | %{_gtkdocdir}/libevview-* | |
23544f41 | 312 | %endif |
a96547b6 PZ |
313 | |
314 | %files -n nautilus-extension-evince | |
315 | %defattr(644,root,root,755) | |
316 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |