]>
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 |
1536090e | 10 | Release: 2 |
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 | |
b42cac85 | 74 | Requires: %{name} = %{version}-%{release} |
ef82865f | 75 | Requires: gtk+2-devel >= 2:2.16.0 |
dfd5b6aa | 76 | |
a96547b6 PZ |
77 | %description devel |
78 | Header files for Evince. | |
dfd5b6aa | 79 | |
a96547b6 PZ |
80 | %description devel -l pl.UTF-8 |
81 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 82 | |
23544f41 | 83 | %package apidocs |
84 | Summary: Evince API documentation | |
85 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
86 | Group: Documentation | |
87 | Requires: gtk-doc-common | |
88 | ||
89 | %description apidocs | |
90 | Evince API documentation. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
93 | Dokumentacja API aplikacji Evince. | |
94 | ||
a96547b6 PZ |
95 | %package -n nautilus-extension-evince |
96 | Summary: Evince extension for Nautilus | |
97 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
98 | Group: X11/Applications | |
99 | Requires: %{name} = %{version}-%{release} | |
ef82865f | 100 | Requires: nautilus >= 2.26.0 |
a96547b6 PZ |
101 | |
102 | %description -n nautilus-extension-evince | |
103 | Shows Evince document properties in Nautilus. | |
104 | ||
105 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
106 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
107 | ||
87553ab6 | 108 | %prep |
109 | %setup -q | |
08c6a467 PZ |
110 | rm po/ca@valencia.po |
111 | sed -i s#^ca@valencia## po/LINGUAS | |
58684a44 | 112 | |
87553ab6 | 113 | %build |
08c6a467 | 114 | %{__gtkdocize} |
a0ff1688 | 115 | %{__intltoolize} |
a96547b6 | 116 | %{__libtoolize} |
08c6a467 | 117 | %{__aclocal} -I m4 |
f8be43cb AF |
118 | %{__autoconf} |
119 | %{__autoheader} | |
120 | %{__automake} | |
87553ab6 | 121 | %configure \ |
23544f41 | 122 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 123 | --disable-static \ |
87553ab6 | 124 | --disable-schemas-install \ |
a0ff1688 | 125 | --enable-comics \ |
72e9e2b8 | 126 | --enable-djvu \ |
a5a87d5b | 127 | --enable-dvi \ |
a0ff1688 | 128 | --enable-impress \ |
a96547b6 | 129 | --enable-t1lib \ |
a5a87d5b | 130 | --enable-nautilus \ |
a96547b6 | 131 | --enable-pdf \ |
a5a87d5b | 132 | --enable-pixbuf \ |
a0ff1688 | 133 | --enable-tiff \ |
23544f41 | 134 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 135 | %{__make} |
136 | ||
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %{__make} install \ | |
a96547b6 | 141 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 142 | |
a96547b6 PZ |
143 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la |
144 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
87553ab6 | 145 | |
58684a44 | 146 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 147 | |
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %post | |
a96547b6 | 152 | /sbin/ldconfig |
a0ff1688 | 153 | %gconf_schema_install evince.schemas |
154 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 155 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
156 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 157 | %gconf_schema_install evince-thumbnailer.schemas |
2329350c | 158 | %gconf_schema_install evince-thumbnailer-ps.schemas |
4685de83 | 159 | %update_desktop_database_post |
e1a2fb6e | 160 | %scrollkeeper_update_post |
a0ff1688 | 161 | %update_icon_cache hicolor |
12600ecc | 162 | |
163 | %preun | |
a0ff1688 | 164 | %gconf_schema_uninstall evince.schemas |
165 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 166 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
167 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 168 | %gconf_schema_uninstall evince-thumbnailer.schemas |
8043f1c3 | 169 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas |
87553ab6 | 170 | |
171 | %postun | |
a96547b6 | 172 | /sbin/ldconfig |
4685de83 | 173 | %update_desktop_database_postun |
e1a2fb6e | 174 | %scrollkeeper_update_postun |
a0ff1688 | 175 | %update_icon_cache hicolor |
87553ab6 | 176 | |
177 | %files -f %{name}.lang | |
178 | %defattr(644,root,root,755) | |
179 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 180 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 181 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 182 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
ef82865f MB |
183 | %attr(755,root,root) %{_libdir}/libevdocument.so.*.*.* |
184 | %attr(755,root,root) %ghost %{_libdir}/libevdocument.so.1 | |
185 | %attr(755,root,root) %{_libdir}/libevview.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libevview.so.1 | |
a96547b6 | 187 | %dir %{_libdir}/evince |
ef82865f | 188 | %dir %{_libdir}/evince/1 |
a96547b6 PZ |
189 | %dir %{backendsdir} |
190 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
191 | %{backendsdir}/comicsdocument.evince-backend | |
192 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so | |
193 | %{backendsdir}/djvudocument.evince-backend | |
194 | %attr(755,root,root) %{backendsdir}/libdvidocument.so* | |
195 | %{backendsdir}/dvidocument.evince-backend | |
196 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so | |
197 | %{backendsdir}/impressdocument.evince-backend | |
198 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so | |
199 | %{backendsdir}/pdfdocument.evince-backend | |
200 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so | |
201 | %{backendsdir}/pixbufdocument.evince-backend | |
202 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
203 | %{backendsdir}/psdocument.evince-backend | |
204 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so | |
205 | %{backendsdir}/tiffdocument.evince-backend | |
a0ff1688 | 206 | %{_sysconfdir}/gconf/schemas/evince.schemas |
207 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
dfd5b6aa | 208 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas |
209 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
2329350c | 210 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas |
dfd5b6aa | 211 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas |
87553ab6 | 212 | %{_datadir}/%{name} |
a96547b6 PZ |
213 | %{_mandir}/man1/evince.1* |
214 | %{_desktopdir}/evince.desktop | |
215 | %{_iconsdir}/hicolor/*/*/*.png | |
216 | %{_iconsdir}/hicolor/*/*/*.svg | |
dfd5b6aa | 217 | |
a96547b6 | 218 | %files devel |
dfd5b6aa | 219 | %defattr(644,root,root,755) |
ef82865f MB |
220 | %attr(755,root,root) %{_libdir}/libevdocument.so |
221 | %attr(755,root,root) %{_libdir}/libevview.so | |
222 | %{_libdir}/libevdocument.la | |
223 | %{_libdir}/libevview.la | |
224 | %{_includedir}/evince | |
225 | %{_pkgconfigdir}/evince-document-*.pc | |
226 | %{_pkgconfigdir}/evince-view-*.pc | |
23544f41 | 227 | |
228 | %if %{with apidocs} | |
229 | %files apidocs | |
230 | %defattr(644,root,root,755) | |
a96547b6 | 231 | %{_gtkdocdir}/evince |
ef82865f MB |
232 | %{_gtkdocdir}/libevdocument |
233 | %{_gtkdocdir}/libevview | |
23544f41 | 234 | %endif |
a96547b6 PZ |
235 | |
236 | %files -n nautilus-extension-evince | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |