]>
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 |
dcaa156e | 10 | Release: 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 |
dcaa156e | 27 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
ef82865f | 28 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
dcaa156e | 29 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 30 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 31 | BuildRequires: kpathsea-devel |
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 | ||
87553ab6 | 109 | %prep |
110 | %setup -q | |
dcaa156e MB |
111 | sed -i s#^en@shaw## po/LINGUAS |
112 | rm po/en@shaw.po | |
58684a44 | 113 | |
87553ab6 | 114 | %build |
08c6a467 | 115 | %{__gtkdocize} |
a0ff1688 | 116 | %{__intltoolize} |
a96547b6 | 117 | %{__libtoolize} |
08c6a467 | 118 | %{__aclocal} -I m4 |
f8be43cb AF |
119 | %{__autoconf} |
120 | %{__autoheader} | |
121 | %{__automake} | |
87553ab6 | 122 | %configure \ |
23544f41 | 123 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 124 | --disable-static \ |
87553ab6 | 125 | --disable-schemas-install \ |
dcaa156e | 126 | --disable-silent-rules \ |
a0ff1688 | 127 | --enable-comics \ |
72e9e2b8 | 128 | --enable-djvu \ |
a5a87d5b | 129 | --enable-dvi \ |
a0ff1688 | 130 | --enable-impress \ |
a96547b6 | 131 | --enable-t1lib \ |
a5a87d5b | 132 | --enable-nautilus \ |
a96547b6 | 133 | --enable-pdf \ |
a5a87d5b | 134 | --enable-pixbuf \ |
a0ff1688 | 135 | --enable-tiff \ |
23544f41 | 136 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 137 | %{__make} |
138 | ||
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %{__make} install \ | |
a96547b6 | 143 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 144 | |
a96547b6 PZ |
145 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la |
146 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
87553ab6 | 147 | |
58684a44 | 148 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 149 | |
150 | %clean | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %post | |
a96547b6 | 154 | /sbin/ldconfig |
a0ff1688 | 155 | %gconf_schema_install evince.schemas |
156 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 157 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
158 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 159 | %gconf_schema_install evince-thumbnailer.schemas |
2329350c | 160 | %gconf_schema_install evince-thumbnailer-ps.schemas |
4685de83 | 161 | %update_desktop_database_post |
e1a2fb6e | 162 | %scrollkeeper_update_post |
a0ff1688 | 163 | %update_icon_cache hicolor |
12600ecc | 164 | |
165 | %preun | |
a0ff1688 | 166 | %gconf_schema_uninstall evince.schemas |
167 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 168 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
169 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 170 | %gconf_schema_uninstall evince-thumbnailer.schemas |
8043f1c3 | 171 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas |
87553ab6 | 172 | |
173 | %postun | |
a96547b6 | 174 | /sbin/ldconfig |
4685de83 | 175 | %update_desktop_database_postun |
e1a2fb6e | 176 | %scrollkeeper_update_postun |
a0ff1688 | 177 | %update_icon_cache hicolor |
87553ab6 | 178 | |
179 | %files -f %{name}.lang | |
180 | %defattr(644,root,root,755) | |
181 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 182 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 183 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 184 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
dcaa156e MB |
185 | %attr(755,root,root) %{_libdir}/evince-convert-metadata |
186 | %attr(755,root,root) %{_libdir}/evinced | |
ef82865f | 187 | %attr(755,root,root) %{_libdir}/libevdocument.so.*.*.* |
dcaa156e | 188 | %attr(755,root,root) %ghost %{_libdir}/libevdocument.so.2 |
ef82865f | 189 | %attr(755,root,root) %{_libdir}/libevview.so.*.*.* |
dcaa156e | 190 | %attr(755,root,root) %ghost %{_libdir}/libevview.so.2 |
a96547b6 | 191 | %dir %{_libdir}/evince |
dcaa156e | 192 | %dir %{_libdir}/evince/2 |
a96547b6 PZ |
193 | %dir %{backendsdir} |
194 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
195 | %{backendsdir}/comicsdocument.evince-backend | |
196 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so | |
197 | %{backendsdir}/djvudocument.evince-backend | |
198 | %attr(755,root,root) %{backendsdir}/libdvidocument.so* | |
199 | %{backendsdir}/dvidocument.evince-backend | |
200 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so | |
201 | %{backendsdir}/impressdocument.evince-backend | |
202 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so | |
203 | %{backendsdir}/pdfdocument.evince-backend | |
204 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so | |
205 | %{backendsdir}/pixbufdocument.evince-backend | |
206 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
207 | %{backendsdir}/psdocument.evince-backend | |
208 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so | |
209 | %{backendsdir}/tiffdocument.evince-backend | |
a0ff1688 | 210 | %{_sysconfdir}/gconf/schemas/evince.schemas |
211 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
dfd5b6aa | 212 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas |
213 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
2329350c | 214 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas |
dfd5b6aa | 215 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas |
dcaa156e | 216 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
87553ab6 | 217 | %{_datadir}/%{name} |
a96547b6 PZ |
218 | %{_mandir}/man1/evince.1* |
219 | %{_desktopdir}/evince.desktop | |
220 | %{_iconsdir}/hicolor/*/*/*.png | |
221 | %{_iconsdir}/hicolor/*/*/*.svg | |
dfd5b6aa | 222 | |
a96547b6 | 223 | %files devel |
dfd5b6aa | 224 | %defattr(644,root,root,755) |
ef82865f MB |
225 | %attr(755,root,root) %{_libdir}/libevdocument.so |
226 | %attr(755,root,root) %{_libdir}/libevview.so | |
227 | %{_libdir}/libevdocument.la | |
228 | %{_libdir}/libevview.la | |
229 | %{_includedir}/evince | |
230 | %{_pkgconfigdir}/evince-document-*.pc | |
231 | %{_pkgconfigdir}/evince-view-*.pc | |
23544f41 | 232 | |
233 | %if %{with apidocs} | |
234 | %files apidocs | |
235 | %defattr(644,root,root,755) | |
a96547b6 | 236 | %{_gtkdocdir}/evince |
dcaa156e MB |
237 | %{_gtkdocdir}/libevdocument-* |
238 | %{_gtkdocdir}/libevview-* | |
23544f41 | 239 | %endif |
a96547b6 PZ |
240 | |
241 | %files -n nautilus-extension-evince | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |