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