]>
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 |
9b07dbc7 | 9 | Version: 2.28.1 |
ef82865f | 10 | Release: 1 |
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 |
9b07dbc7 | 14 | # Source0-md5: 3f0bf750825f5455d307ec21a27d1f3e |
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 |
a96547b6 | 21 | BuildRequires: gettext-devel |
ef82865f | 22 | BuildRequires: glib2-devel >= 1:2.20.0 |
4d1cdbff MB |
23 | BuildRequires: gnome-common >= 2.24.0 |
24 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
ef82865f MB |
25 | BuildRequires: gnome-icon-theme >= 2.26.0 |
26 | BuildRequires: gnome-keyring-devel >= 2.26.0 | |
27 | BuildRequires: gtk+2-devel >= 2:2.16.0 | |
a96547b6 | 28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
4d1cdbff | 29 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 30 | BuildRequires: kpathsea-devel |
a96547b6 | 31 | BuildRequires: libspectre-devel >= 0.2.0 |
52101646 | 32 | BuildRequires: libtiff-devel |
a96547b6 PZ |
33 | BuildRequires: libtool |
34 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
ef82865f | 35 | BuildRequires: nautilus-devel >= 2.26.0 |
184cd39f | 36 | BuildRequires: pkgconfig |
08c6a467 | 37 | BuildRequires: poppler-glib-devel >= 0.11.0 |
16b45cd3 | 38 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
4685de83 | 39 | BuildRequires: rpmbuild(macros) >= 1.197 |
52101646 | 40 | BuildRequires: scrollkeeper |
a96547b6 | 41 | BuildRequires: t1lib-devel |
ef82865f | 42 | BuildRequires: xorg-lib-libSM-devel |
9b07dbc7 | 43 | BuildRequires: zlib-devel |
12600ecc | 44 | Requires(post,postun): desktop-file-utils |
a96547b6 | 45 | Requires(post,postun): gtk+2 |
e1a2fb6e | 46 | Requires(post,postun): scrollkeeper |
a96547b6 | 47 | Requires(post,preun): GConf2 |
98a7da35 | 48 | Requires: djvulibre >= 3.5.17 |
ef82865f | 49 | Requires: gtk+2 >= 2:2.16.0 |
4d1cdbff | 50 | Requires: poppler-glib >= 0.8.0 |
e9f7e8ef | 51 | Conflicts: evince-gtk |
3e7213f4 | 52 | # sr@Latn vs. sr@latin |
53 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
ef82865f | 56 | %define backendsdir %{_libdir}/evince/1/backends |
a96547b6 | 57 | |
87553ab6 | 58 | %description |
59 | Evince is a document viewer for multiple document formats like pdf, | |
60 | postscript, and many others. The goal of evince is to replace the | |
61 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
62 | gpdf, and xpdf with a single simple application. | |
63 | ||
2a3b3b99 JR |
64 | %description -l pl.UTF-8 |
65 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
66 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
67 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
68 | xpdf jedną prostą aplikacją. | |
87553ab6 | 69 | |
a96547b6 PZ |
70 | %package devel |
71 | Summary: Header files for Evince | |
72 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
73 | Group: X11/Development/Libraries | |
ef82865f | 74 | Requires: gtk+2-devel >= 2:2.16.0 |
dfd5b6aa | 75 | |
a96547b6 PZ |
76 | %description devel |
77 | Header files for Evince. | |
dfd5b6aa | 78 | |
a96547b6 PZ |
79 | %description devel -l pl.UTF-8 |
80 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 81 | |
23544f41 | 82 | %package apidocs |
83 | Summary: Evince API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
85 | Group: Documentation | |
86 | Requires: gtk-doc-common | |
87 | ||
88 | %description apidocs | |
89 | Evince API documentation. | |
90 | ||
91 | %description apidocs -l pl.UTF-8 | |
92 | Dokumentacja API aplikacji Evince. | |
93 | ||
a96547b6 PZ |
94 | %package -n nautilus-extension-evince |
95 | Summary: Evince extension for Nautilus | |
96 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
97 | Group: X11/Applications | |
98 | Requires: %{name} = %{version}-%{release} | |
ef82865f | 99 | Requires: nautilus >= 2.26.0 |
a96547b6 PZ |
100 | |
101 | %description -n nautilus-extension-evince | |
102 | Shows Evince document properties in Nautilus. | |
103 | ||
104 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
105 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
106 | ||
87553ab6 | 107 | %prep |
108 | %setup -q | |
08c6a467 PZ |
109 | rm po/ca@valencia.po |
110 | sed -i s#^ca@valencia## po/LINGUAS | |
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 |