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