]>
Commit | Line | Data |
---|---|---|
52101646 | 1 | # |
2 | # TODO: fix t1lib build time misdetection (very low prio) | |
3 | # | |
c3049406 | 4 | # Conditional build: |
5 | %bcond_without dbus # enable DBUS support | |
6 | # | |
87553ab6 | 7 | Summary: Document viewer for multiple document formats |
2a3b3b99 | 8 | Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach |
87553ab6 | 9 | Name: evince |
7142db2d | 10 | Version: 0.7.0 |
0ca2f73e | 11 | Release: 1 |
59aa6ffb | 12 | License: GPL v2 |
87553ab6 | 13 | Group: X11/Applications/Graphics |
7142db2d PZ |
14 | Source0: http://ftp.gnome.org/pub/gnome/sources/evince/0.7/%{name}-%{version}.tar.bz2 |
15 | # Source0-md5: 1288d21b183127af36dd58158caa59b5 | |
59aa6ffb | 16 | Patch0: %{name}-desktop.patch |
f8be43cb | 17 | Patch1: %{name}-gs8.patch |
87553ab6 | 18 | URL: http://www.gnome.org/projects/evince/ |
3b1787a0 | 19 | BuildRequires: GConf2-devel >= 2.16.0 |
5c089e5f | 20 | BuildRequires: autoconf |
b46c00b0 | 21 | BuildRequires: automake |
a0ff1688 | 22 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71} |
98a7da35 | 23 | BuildRequires: djvulibre-devel >= 3.5.17 |
184cd39f | 24 | BuildRequires: ghostscript |
3b1787a0 | 25 | BuildRequires: gnome-doc-utils >= 0.8.0 |
7142db2d | 26 | BuildRequires: gnome-icon-theme >= 2.17.1 |
3b1787a0 | 27 | BuildRequires: gnome-vfs2-devel >= 2.16.1 |
28 | BuildRequires: gtk+2-devel >= 2:2.10.6 | |
83db7729 | 29 | BuildRequires: intltool >= 0.35.0 |
72e9e2b8 | 30 | BuildRequires: kpathsea-devel |
83db7729 | 31 | BuildRequires: libglade2-devel >= 1:2.6.0 |
3b1787a0 | 32 | BuildRequires: libgnomeui-devel >= 2.16.1 |
184cd39f | 33 | BuildRequires: libstdc++-devel |
52101646 | 34 | BuildRequires: libtiff-devel |
83db7729 | 35 | BuildRequires: libxslt-progs >= 1.1.17 |
3b1787a0 | 36 | BuildRequires: nautilus-devel >= 2.16.1 |
184cd39f | 37 | BuildRequires: pkgconfig |
3b1787a0 | 38 | BuildRequires: poppler-glib-devel >= 0.5.4 |
4e586025 | 39 | BuildRequires: python-libxml2 |
4685de83 | 40 | BuildRequires: rpmbuild(macros) >= 1.197 |
52101646 | 41 | BuildRequires: scrollkeeper |
12600ecc | 42 | Requires(post,preun): GConf2 |
43 | Requires(post,postun): desktop-file-utils | |
3b1787a0 | 44 | Requires(post,postun): gtk+2 >= 2:2.10.6 |
e1a2fb6e | 45 | Requires(post,postun): scrollkeeper |
3b1787a0 | 46 | Requires: cairo >= 1.2.4 |
98a7da35 | 47 | Requires: djvulibre >= 3.5.17 |
3b1787a0 | 48 | Requires: gtk+2 >= 2:2.10.6 |
49 | Requires: libgnomeui >= 2.16.1 | |
50 | Requires: poppler-glib >= 0.5.4 | |
87553ab6 | 51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
53 | %description | |
54 | Evince is a document viewer for multiple document formats like pdf, | |
55 | postscript, and many others. The goal of evince is to replace the | |
56 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
57 | gpdf, and xpdf with a single simple application. | |
58 | ||
2a3b3b99 JR |
59 | %description -l pl.UTF-8 |
60 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
61 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
62 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
63 | xpdf jedną prostą aplikacją. | |
87553ab6 | 64 | |
dfd5b6aa | 65 | %package -n nautilus-extension-evince |
66 | Summary: Evince extension for Nautilus | |
2a3b3b99 | 67 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa |
dfd5b6aa | 68 | Group: X11/Applications |
69 | Requires: %{name} = %{version}-%{release} | |
3b1787a0 | 70 | Requires: nautilus >= 2.16.1 |
dfd5b6aa | 71 | |
72 | %description -n nautilus-extension-evince | |
52101646 | 73 | Shows Evince document properties in Nautilus. |
dfd5b6aa | 74 | |
2a3b3b99 JR |
75 | %description -n nautilus-extension-evince -l pl.UTF-8 |
76 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
dfd5b6aa | 77 | |
87553ab6 | 78 | %prep |
79 | %setup -q | |
59aa6ffb | 80 | %patch0 -p1 |
f8be43cb | 81 | %patch1 -p1 |
87553ab6 | 82 | |
83 | %build | |
a0ff1688 | 84 | %{__gnome_doc_prepare} |
85 | %{__intltoolize} | |
f8be43cb AF |
86 | %{__aclocal} |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
87553ab6 | 90 | %configure \ |
dfd5b6aa | 91 | --disable-static \ |
87553ab6 | 92 | --disable-schemas-install \ |
a0ff1688 | 93 | --enable-comics \ |
d4f374ca | 94 | %{?with_dbus:--enable-dbus} \ |
72e9e2b8 | 95 | --enable-djvu \ |
a5a87d5b | 96 | --enable-dvi \ |
a0ff1688 | 97 | --enable-impress \ |
a5a87d5b | 98 | --enable-nautilus \ |
99 | --enable-pixbuf \ | |
a0ff1688 | 100 | --enable-tiff \ |
101 | --with-print=gtk | |
87553ab6 | 102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
dfd5b6aa | 110 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la |
87553ab6 | 111 | |
e1a2fb6e | 112 | %find_lang %{name} --with-gnome |
87553ab6 | 113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post | |
a0ff1688 | 118 | %gconf_schema_install evince.schemas |
119 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 120 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
121 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 122 | %gconf_schema_install evince-thumbnailer.schemas |
4685de83 | 123 | %update_desktop_database_post |
e1a2fb6e | 124 | %scrollkeeper_update_post |
a0ff1688 | 125 | %update_icon_cache hicolor |
12600ecc | 126 | |
127 | %preun | |
a0ff1688 | 128 | %gconf_schema_uninstall evince.schemas |
129 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 130 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
131 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 132 | %gconf_schema_uninstall evince-thumbnailer.schemas |
87553ab6 | 133 | |
134 | %postun | |
4685de83 | 135 | %update_desktop_database_postun |
e1a2fb6e | 136 | %scrollkeeper_update_postun |
a0ff1688 | 137 | %update_icon_cache hicolor |
87553ab6 | 138 | |
139 | %files -f %{name}.lang | |
140 | %defattr(644,root,root,755) | |
141 | %doc AUTHORS ChangeLog NEWS README TODO | |
142 | %attr(755,root,root) %{_bindir}/* | |
a0ff1688 | 143 | %{_sysconfdir}/gconf/schemas/evince.schemas |
144 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
dfd5b6aa | 145 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas |
146 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
147 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas | |
87553ab6 | 148 | %{_datadir}/%{name} |
149 | %{_desktopdir}/*.desktop | |
d12d3919 | 150 | %{_iconsdir}/*/*/*/* |
e1a2fb6e | 151 | %{_omf_dest_dir}/evince |
dfd5b6aa | 152 | |
153 | %files -n nautilus-extension-evince | |
154 | %defattr(644,root,root,755) | |
155 | %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so* |