]>
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 |
d7040ba8 | 9 | Version: 2.28.2 |
788038e0 | 10 | Release: 3 |
59aa6ffb | 11 | License: GPL v2 |
87553ab6 | 12 | Group: X11/Applications/Graphics |
08c6a467 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.28/%{name}-%{version}.tar.bz2 |
d7040ba8 | 14 | # Source0-md5: f8b9a1ee6fe8cd0a1b7a51ad4db96e59 |
87553ab6 | 15 | URL: http://www.gnome.org/projects/evince/ |
4d1cdbff | 16 | BuildRequires: GConf2-devel >= 2.24.0 |
a96547b6 PZ |
17 | BuildRequires: autoconf >= 2.57 |
18 | BuildRequires: automake >= 1:1.9 | |
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 MB |
26 | BuildRequires: gnome-icon-theme >= 2.26.0 |
27 | BuildRequires: gnome-keyring-devel >= 2.26.0 | |
28 | BuildRequires: gtk+2-devel >= 2:2.16.0 | |
a96547b6 | 29 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
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 |
08c6a467 | 38 | BuildRequires: poppler-glib-devel >= 0.11.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 |
4d1cdbff | 51 | Requires: poppler-glib >= 0.8.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 | ||
ef82865f | 57 | %define backendsdir %{_libdir}/evince/1/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 | |
58684a44 | 111 | |
87553ab6 | 112 | %build |
08c6a467 | 113 | %{__gtkdocize} |
a0ff1688 | 114 | %{__intltoolize} |
a96547b6 | 115 | %{__libtoolize} |
08c6a467 | 116 | %{__aclocal} -I m4 |
f8be43cb AF |
117 | %{__autoconf} |
118 | %{__autoheader} | |
119 | %{__automake} | |
87553ab6 | 120 | %configure \ |
23544f41 | 121 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 122 | --disable-static \ |
87553ab6 | 123 | --disable-schemas-install \ |
a0ff1688 | 124 | --enable-comics \ |
72e9e2b8 | 125 | --enable-djvu \ |
a5a87d5b | 126 | --enable-dvi \ |
a0ff1688 | 127 | --enable-impress \ |
a96547b6 | 128 | --enable-t1lib \ |
a5a87d5b | 129 | --enable-nautilus \ |
a96547b6 | 130 | --enable-pdf \ |
a5a87d5b | 131 | --enable-pixbuf \ |
a0ff1688 | 132 | --enable-tiff \ |
23544f41 | 133 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 134 | %{__make} |
135 | ||
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %{__make} install \ | |
a96547b6 | 140 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 141 | |
a96547b6 PZ |
142 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la |
143 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
87553ab6 | 144 | |
58684a44 | 145 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 146 | |
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %post | |
a96547b6 | 151 | /sbin/ldconfig |
a0ff1688 | 152 | %gconf_schema_install evince.schemas |
153 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 154 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
155 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 156 | %gconf_schema_install evince-thumbnailer.schemas |
2329350c | 157 | %gconf_schema_install evince-thumbnailer-ps.schemas |
4685de83 | 158 | %update_desktop_database_post |
e1a2fb6e | 159 | %scrollkeeper_update_post |
a0ff1688 | 160 | %update_icon_cache hicolor |
12600ecc | 161 | |
162 | %preun | |
a0ff1688 | 163 | %gconf_schema_uninstall evince.schemas |
164 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 165 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
166 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 167 | %gconf_schema_uninstall evince-thumbnailer.schemas |
8043f1c3 | 168 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas |
87553ab6 | 169 | |
170 | %postun | |
a96547b6 | 171 | /sbin/ldconfig |
4685de83 | 172 | %update_desktop_database_postun |
e1a2fb6e | 173 | %scrollkeeper_update_postun |
a0ff1688 | 174 | %update_icon_cache hicolor |
87553ab6 | 175 | |
176 | %files -f %{name}.lang | |
177 | %defattr(644,root,root,755) | |
178 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 179 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 180 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 181 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
ef82865f MB |
182 | %attr(755,root,root) %{_libdir}/libevdocument.so.*.*.* |
183 | %attr(755,root,root) %ghost %{_libdir}/libevdocument.so.1 | |
184 | %attr(755,root,root) %{_libdir}/libevview.so.*.*.* | |
185 | %attr(755,root,root) %ghost %{_libdir}/libevview.so.1 | |
a96547b6 | 186 | %dir %{_libdir}/evince |
ef82865f | 187 | %dir %{_libdir}/evince/1 |
a96547b6 PZ |
188 | %dir %{backendsdir} |
189 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
190 | %{backendsdir}/comicsdocument.evince-backend | |
191 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so | |
192 | %{backendsdir}/djvudocument.evince-backend | |
193 | %attr(755,root,root) %{backendsdir}/libdvidocument.so* | |
194 | %{backendsdir}/dvidocument.evince-backend | |
195 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so | |
196 | %{backendsdir}/impressdocument.evince-backend | |
197 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so | |
198 | %{backendsdir}/pdfdocument.evince-backend | |
199 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so | |
200 | %{backendsdir}/pixbufdocument.evince-backend | |
201 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
202 | %{backendsdir}/psdocument.evince-backend | |
203 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so | |
204 | %{backendsdir}/tiffdocument.evince-backend | |
a0ff1688 | 205 | %{_sysconfdir}/gconf/schemas/evince.schemas |
206 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
dfd5b6aa | 207 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas |
208 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
2329350c | 209 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas |
dfd5b6aa | 210 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas |
87553ab6 | 211 | %{_datadir}/%{name} |
a96547b6 PZ |
212 | %{_mandir}/man1/evince.1* |
213 | %{_desktopdir}/evince.desktop | |
214 | %{_iconsdir}/hicolor/*/*/*.png | |
215 | %{_iconsdir}/hicolor/*/*/*.svg | |
dfd5b6aa | 216 | |
a96547b6 | 217 | %files devel |
dfd5b6aa | 218 | %defattr(644,root,root,755) |
ef82865f MB |
219 | %attr(755,root,root) %{_libdir}/libevdocument.so |
220 | %attr(755,root,root) %{_libdir}/libevview.so | |
221 | %{_libdir}/libevdocument.la | |
222 | %{_libdir}/libevview.la | |
223 | %{_includedir}/evince | |
224 | %{_pkgconfigdir}/evince-document-*.pc | |
225 | %{_pkgconfigdir}/evince-view-*.pc | |
23544f41 | 226 | |
227 | %if %{with apidocs} | |
228 | %files apidocs | |
229 | %defattr(644,root,root,755) | |
a96547b6 | 230 | %{_gtkdocdir}/evince |
ef82865f MB |
231 | %{_gtkdocdir}/libevdocument |
232 | %{_gtkdocdir}/libevview | |
23544f41 | 233 | %endif |
a96547b6 PZ |
234 | |
235 | %files -n nautilus-extension-evince | |
236 | %defattr(644,root,root,755) | |
237 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |