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