]>
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 |
4d1cdbff | 9 | Version: 2.24.0 |
b94cfed1 | 10 | Release: 1 |
59aa6ffb | 11 | License: GPL v2 |
87553ab6 | 12 | Group: X11/Applications/Graphics |
4d1cdbff MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.24/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 7d0f9850b0f33267d3977532f027ac95 | |
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-print=gtk \ |
131 | --with-html-dir=%{_gtkdocdir} | |
87553ab6 | 132 | %{__make} |
133 | ||
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %{__make} install \ | |
a96547b6 | 138 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 139 | |
a96547b6 PZ |
140 | rm -f $RPM_BUILD_ROOT%{backendsdir}/*.la |
141 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la | |
87553ab6 | 142 | |
58684a44 | 143 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 144 | |
145 | %clean | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %post | |
a96547b6 | 149 | /sbin/ldconfig |
a0ff1688 | 150 | %gconf_schema_install evince.schemas |
151 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 152 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
153 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 154 | %gconf_schema_install evince-thumbnailer.schemas |
2329350c | 155 | %gconf_schema_install evince-thumbnailer-ps.schemas |
4685de83 | 156 | %update_desktop_database_post |
e1a2fb6e | 157 | %scrollkeeper_update_post |
a0ff1688 | 158 | %update_icon_cache hicolor |
12600ecc | 159 | |
160 | %preun | |
a0ff1688 | 161 | %gconf_schema_uninstall evince.schemas |
162 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 163 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
164 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 165 | %gconf_schema_uninstall evince-thumbnailer.schemas |
8043f1c3 | 166 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas |
87553ab6 | 167 | |
168 | %postun | |
a96547b6 | 169 | /sbin/ldconfig |
4685de83 | 170 | %update_desktop_database_postun |
e1a2fb6e | 171 | %scrollkeeper_update_postun |
a0ff1688 | 172 | %update_icon_cache hicolor |
87553ab6 | 173 | |
174 | %files -f %{name}.lang | |
175 | %defattr(644,root,root,755) | |
176 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 PZ |
177 | %attr(755,root,root) %{_bindir}/evince |
178 | %attr(755,root,root) %{_bindir}/evince-thumbnailer | |
179 | %attr(755,root,root) %{_libdir}/libevbackend.so.*.*.* | |
180 | %attr(755,root,root) %ghost %{_libdir}/libevbackend.so.0 | |
181 | %dir %{_libdir}/evince | |
182 | %dir %{backendsdir} | |
183 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
184 | %{backendsdir}/comicsdocument.evince-backend | |
185 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so | |
186 | %{backendsdir}/djvudocument.evince-backend | |
187 | %attr(755,root,root) %{backendsdir}/libdvidocument.so* | |
188 | %{backendsdir}/dvidocument.evince-backend | |
189 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so | |
190 | %{backendsdir}/impressdocument.evince-backend | |
191 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so | |
192 | %{backendsdir}/pdfdocument.evince-backend | |
193 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so | |
194 | %{backendsdir}/pixbufdocument.evince-backend | |
195 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
196 | %{backendsdir}/psdocument.evince-backend | |
197 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so | |
198 | %{backendsdir}/tiffdocument.evince-backend | |
a0ff1688 | 199 | %{_sysconfdir}/gconf/schemas/evince.schemas |
200 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
dfd5b6aa | 201 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas |
202 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
2329350c | 203 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas |
dfd5b6aa | 204 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas |
87553ab6 | 205 | %{_datadir}/%{name} |
a96547b6 PZ |
206 | %{_mandir}/man1/evince.1* |
207 | %{_desktopdir}/evince.desktop | |
208 | %{_iconsdir}/hicolor/*/*/*.png | |
209 | %{_iconsdir}/hicolor/*/*/*.svg | |
dfd5b6aa | 210 | |
a96547b6 | 211 | %files devel |
dfd5b6aa | 212 | %defattr(644,root,root,755) |
a96547b6 PZ |
213 | %attr(755,root,root) %{_libdir}/libevbackend.so |
214 | %{_libdir}/libevbackend.la | |
215 | %{_includedir}/evince-2.20 | |
23544f41 | 216 | |
217 | %if %{with apidocs} | |
218 | %files apidocs | |
219 | %defattr(644,root,root,755) | |
a96547b6 | 220 | %{_gtkdocdir}/evince |
23544f41 | 221 | %endif |
a96547b6 PZ |
222 | |
223 | %files -n nautilus-extension-evince | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/libevince-properties-page.so |