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