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