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