]>
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 |
a96547b6 | 9 | Version: 2.22.0 |
85c8b471 | 10 | Release: 2 |
59aa6ffb | 11 | License: GPL v2 |
87553ab6 | 12 | Group: X11/Applications/Graphics |
a96547b6 PZ |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.22/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 9fc7eb5757549626b7515b853a5f6b97 | |
59aa6ffb | 15 | Patch0: %{name}-desktop.patch |
85c8b471 | 16 | Patch1: %{name}-poppler080.patch |
87553ab6 | 17 | URL: http://www.gnome.org/projects/evince/ |
a96547b6 PZ |
18 | BuildRequires: GConf2-devel >= 2.22.0 |
19 | BuildRequires: autoconf >= 2.57 | |
20 | BuildRequires: automake >= 1:1.9 | |
21 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.74} | |
98a7da35 | 22 | BuildRequires: djvulibre-devel >= 3.5.17 |
a96547b6 PZ |
23 | BuildRequires: gettext-devel |
24 | BuildRequires: glib2-devel >= 1:2.15.4 | |
25 | BuildRequires: gnome-common >= 2.20.0 | |
26 | BuildRequires: gnome-doc-utils >= 0.12.0 | |
b535b352 | 27 | BuildRequires: gnome-icon-theme >= 2.20.0 |
a96547b6 PZ |
28 | BuildRequires: gtk+2-devel >= 2:2.12.5 |
29 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
30 | BuildRequires: intltool >= 0.37.0 | |
72e9e2b8 | 31 | BuildRequires: kpathsea-devel |
a96547b6 PZ |
32 | BuildRequires: libglade2-devel >= 1:2.6.2 |
33 | BuildRequires: libgnomeui-devel >= 2.22.0 | |
34 | BuildRequires: libspectre-devel >= 0.2.0 | |
52101646 | 35 | BuildRequires: libtiff-devel |
a96547b6 PZ |
36 | BuildRequires: libtool |
37 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
38 | BuildRequires: nautilus-devel >= 2.22.0 | |
184cd39f | 39 | BuildRequires: pkgconfig |
5ab6b529 | 40 | BuildRequires: poppler-glib-devel >= 0.6 |
16b45cd3 | 41 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
4685de83 | 42 | BuildRequires: rpmbuild(macros) >= 1.197 |
52101646 | 43 | BuildRequires: scrollkeeper |
16b45cd3 | 44 | BuildRequires: sed >= 4.0 |
a96547b6 | 45 | BuildRequires: t1lib-devel |
12600ecc | 46 | Requires(post,postun): desktop-file-utils |
a96547b6 | 47 | Requires(post,postun): gtk+2 |
e1a2fb6e | 48 | Requires(post,postun): scrollkeeper |
a96547b6 | 49 | Requires(post,preun): GConf2 |
3b1787a0 | 50 | Requires: cairo >= 1.2.4 |
98a7da35 | 51 | Requires: djvulibre >= 3.5.17 |
a96547b6 PZ |
52 | Requires: gtk+2 >= 2:2.12.5 |
53 | Requires: libgnomeui >= 2.22.0 | |
5ab6b529 | 54 | Requires: poppler-glib >= 0.6 |
e9f7e8ef | 55 | Conflicts: evince-gtk |
3e7213f4 | 56 | # sr@Latn vs. sr@latin |
57 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
59 | ||
a96547b6 PZ |
60 | %define backendsdir %{_libdir}/evince/backends |
61 | ||
87553ab6 | 62 | %description |
63 | Evince is a document viewer for multiple document formats like pdf, | |
64 | postscript, and many others. The goal of evince is to replace the | |
65 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
66 | gpdf, and xpdf with a single simple application. | |
67 | ||
2a3b3b99 JR |
68 | %description -l pl.UTF-8 |
69 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
70 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
71 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
72 | xpdf jedną prostą aplikacją. | |
87553ab6 | 73 | |
a96547b6 PZ |
74 | %package devel |
75 | Summary: Header files for Evince | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
77 | Group: X11/Development/Libraries | |
78 | Requires: glib2-devel >= 1:2.15.4 | |
79 | Requires: gtk+2-devel >= 2:2.12.5 | |
dfd5b6aa | 80 | |
a96547b6 PZ |
81 | %description devel |
82 | Header files for Evince. | |
dfd5b6aa | 83 | |
a96547b6 PZ |
84 | %description devel -l pl.UTF-8 |
85 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 86 | |
23544f41 | 87 | %package apidocs |
88 | Summary: Evince API documentation | |
89 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
90 | Group: Documentation | |
91 | Requires: gtk-doc-common | |
92 | ||
93 | %description apidocs | |
94 | Evince API documentation. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API aplikacji Evince. | |
98 | ||
a96547b6 PZ |
99 | %package -n nautilus-extension-evince |
100 | Summary: Evince extension for Nautilus | |
101 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
102 | Group: X11/Applications | |
103 | Requires: %{name} = %{version}-%{release} | |
104 | Requires: nautilus >= 2.22.0 | |
105 | ||
106 | %description -n nautilus-extension-evince | |
107 | Shows Evince document properties in Nautilus. | |
108 | ||
109 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
110 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
111 | ||
87553ab6 | 112 | %prep |
113 | %setup -q | |
59aa6ffb | 114 | %patch0 -p1 |
85c8b471 | 115 | %patch1 -p1 |
87553ab6 | 116 | |
a96547b6 PZ |
117 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
118 | mv po/sr@{Latn,latin}.po | |
58684a44 | 119 | |
87553ab6 | 120 | %build |
a0ff1688 | 121 | %{__gnome_doc_prepare} |
122 | %{__intltoolize} | |
a96547b6 | 123 | %{__libtoolize} |
f8be43cb AF |
124 | %{__aclocal} |
125 | %{__autoconf} | |
126 | %{__autoheader} | |
127 | %{__automake} | |
87553ab6 | 128 | %configure \ |
23544f41 | 129 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 130 | --disable-static \ |
87553ab6 | 131 | --disable-schemas-install \ |
a0ff1688 | 132 | --enable-comics \ |
72e9e2b8 | 133 | --enable-djvu \ |
a5a87d5b | 134 | --enable-dvi \ |
a0ff1688 | 135 | --enable-impress \ |
a96547b6 | 136 | --enable-t1lib \ |
a5a87d5b | 137 | --enable-nautilus \ |
a96547b6 | 138 | --enable-pdf \ |
a5a87d5b | 139 | --enable-pixbuf \ |
a0ff1688 | 140 | --enable-tiff \ |
23544f41 | 141 | --with-print=gtk \ |
142 | --with-html-dir=%{_gtkdocdir} | |
87553ab6 | 143 | %{__make} |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
a96547b6 | 149 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 150 | |
a96547b6 PZ |
151 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la |
152 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
87553ab6 | 153 | |
58684a44 | 154 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 155 | |
156 | %clean | |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
159 | %post | |
a96547b6 | 160 | /sbin/ldconfig |
a0ff1688 | 161 | %gconf_schema_install evince.schemas |
162 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 163 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
164 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 165 | %gconf_schema_install evince-thumbnailer.schemas |
2329350c | 166 | %gconf_schema_install evince-thumbnailer-ps.schemas |
4685de83 | 167 | %update_desktop_database_post |
e1a2fb6e | 168 | %scrollkeeper_update_post |
a0ff1688 | 169 | %update_icon_cache hicolor |
12600ecc | 170 | |
171 | %preun | |
a0ff1688 | 172 | %gconf_schema_uninstall evince.schemas |
173 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 174 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
175 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 176 | %gconf_schema_uninstall evince-thumbnailer.schemas |
8043f1c3 | 177 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas |
87553ab6 | 178 | |
179 | %postun | |
a96547b6 | 180 | /sbin/ldconfig |
4685de83 | 181 | %update_desktop_database_postun |
e1a2fb6e | 182 | %scrollkeeper_update_postun |
a0ff1688 | 183 | %update_icon_cache hicolor |
87553ab6 | 184 | |
185 | %files -f %{name}.lang | |
186 | %defattr(644,root,root,755) | |
187 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 PZ |
188 | %attr(755,root,root) %{_bindir}/evince |
189 | %attr(755,root,root) %{_bindir}/evince-thumbnailer | |
190 | %attr(755,root,root) %{_libdir}/libevbackend.so.*.*.* | |
191 | %attr(755,root,root) %ghost %{_libdir}/libevbackend.so.0 | |
192 | %dir %{_libdir}/evince | |
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 |
87553ab6 | 216 | %{_datadir}/%{name} |
a96547b6 PZ |
217 | %{_mandir}/man1/evince.1* |
218 | %{_desktopdir}/evince.desktop | |
219 | %{_iconsdir}/hicolor/*/*/*.png | |
220 | %{_iconsdir}/hicolor/*/*/*.svg | |
dfd5b6aa | 221 | |
a96547b6 | 222 | %files devel |
dfd5b6aa | 223 | %defattr(644,root,root,755) |
a96547b6 PZ |
224 | %attr(755,root,root) %{_libdir}/libevbackend.so |
225 | %{_libdir}/libevbackend.la | |
226 | %{_includedir}/evince-2.20 | |
23544f41 | 227 | |
228 | %if %{with apidocs} | |
229 | %files apidocs | |
230 | %defattr(644,root,root,755) | |
a96547b6 | 231 | %{_gtkdocdir}/evince |
23544f41 | 232 | %endif |
a96547b6 PZ |
233 | |
234 | %files -n nautilus-extension-evince | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |