]>
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 |
e97a4763 | 11 | Version: 2.20.1 |
3e7213f4 | 12 | Release: 2 |
59aa6ffb | 13 | License: GPL v2 |
87553ab6 | 14 | Group: X11/Applications/Graphics |
b535b352 | 15 | Source0: http://ftp.gnome.org/pub/gnome/sources/evince/2.20/%{name}-%{version}.tar.bz2 |
e97a4763 | 16 | # Source0-md5: c0f3e4d5279ef3d08cc46b752e230c01 |
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 |
b535b352 | 27 | BuildRequires: gnome-icon-theme >= 2.20.0 |
3b1787a0 | 28 | BuildRequires: gnome-vfs2-devel >= 2.16.1 |
b535b352 | 29 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
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 |
5ab6b529 | 39 | BuildRequires: poppler-glib-devel >= 0.6 |
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 | |
5ab6b529 | 51 | Requires: poppler-glib >= 0.6 |
e9f7e8ef | 52 | Conflicts: evince-gtk |
3e7213f4 | 53 | # sr@Latn vs. sr@latin |
54 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
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 | |
dfd5b6aa | 69 | %package -n nautilus-extension-evince |
70 | Summary: Evince extension for Nautilus | |
6c08f70f | 71 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa |
dfd5b6aa | 72 | Group: X11/Applications |
73 | Requires: %{name} = %{version}-%{release} | |
3b1787a0 | 74 | Requires: nautilus >= 2.16.1 |
dfd5b6aa | 75 | |
76 | %description -n nautilus-extension-evince | |
52101646 | 77 | Shows Evince document properties in Nautilus. |
dfd5b6aa | 78 | |
2a3b3b99 JR |
79 | %description -n nautilus-extension-evince -l pl.UTF-8 |
80 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
dfd5b6aa | 81 | |
23544f41 | 82 | %package apidocs |
83 | Summary: Evince API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
85 | Group: Documentation | |
86 | Requires: gtk-doc-common | |
87 | ||
88 | %description apidocs | |
89 | Evince API documentation. | |
90 | ||
91 | %description apidocs -l pl.UTF-8 | |
92 | Dokumentacja API aplikacji Evince. | |
93 | ||
87553ab6 | 94 | %prep |
95 | %setup -q | |
59aa6ffb | 96 | %patch0 -p1 |
f8be43cb | 97 | %patch1 -p1 |
87553ab6 | 98 | |
99 | %build | |
a0ff1688 | 100 | %{__gnome_doc_prepare} |
101 | %{__intltoolize} | |
f8be43cb AF |
102 | %{__aclocal} |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
87553ab6 | 106 | %configure \ |
23544f41 | 107 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 108 | --disable-static \ |
87553ab6 | 109 | --disable-schemas-install \ |
a0ff1688 | 110 | --enable-comics \ |
d4f374ca | 111 | %{?with_dbus:--enable-dbus} \ |
72e9e2b8 | 112 | --enable-djvu \ |
a5a87d5b | 113 | --enable-dvi \ |
a0ff1688 | 114 | --enable-impress \ |
a5a87d5b | 115 | --enable-nautilus \ |
116 | --enable-pixbuf \ | |
a0ff1688 | 117 | --enable-tiff \ |
23544f41 | 118 | --with-print=gtk \ |
119 | --with-html-dir=%{_gtkdocdir} | |
87553ab6 | 120 | %{__make} |
121 | ||
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %{__make} install \ | |
23544f41 | 126 | DESTDIR=$RPM_BUILD_ROOT \ |
127 | HTML_DIR=%{_gtkdocdir} | |
87553ab6 | 128 | |
dfd5b6aa | 129 | rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la |
87553ab6 | 130 | |
3e7213f4 | 131 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
132 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
e1a2fb6e | 133 | %find_lang %{name} --with-gnome |
87553ab6 | 134 | |
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %post | |
a0ff1688 | 139 | %gconf_schema_install evince.schemas |
140 | %gconf_schema_install evince-thumbnailer-comics.schemas | |
dfd5b6aa | 141 | %gconf_schema_install evince-thumbnailer-djvu.schemas |
142 | %gconf_schema_install evince-thumbnailer-dvi.schemas | |
4685de83 | 143 | %gconf_schema_install evince-thumbnailer.schemas |
2329350c | 144 | %gconf_schema_install evince-thumbnailer-ps.schemas |
4685de83 | 145 | %update_desktop_database_post |
e1a2fb6e | 146 | %scrollkeeper_update_post |
a0ff1688 | 147 | %update_icon_cache hicolor |
12600ecc | 148 | |
149 | %preun | |
a0ff1688 | 150 | %gconf_schema_uninstall evince.schemas |
151 | %gconf_schema_uninstall evince-thumbnailer-comics.schemas | |
dfd5b6aa | 152 | %gconf_schema_uninstall evince-thumbnailer-djvu.schemas |
153 | %gconf_schema_uninstall evince-thumbnailer-dvi.schemas | |
4685de83 | 154 | %gconf_schema_uninstall evince-thumbnailer.schemas |
8043f1c3 | 155 | %gconf_schema_uninstall evince-thumbnailer-ps.schemas |
87553ab6 | 156 | |
157 | %postun | |
4685de83 | 158 | %update_desktop_database_postun |
e1a2fb6e | 159 | %scrollkeeper_update_postun |
a0ff1688 | 160 | %update_icon_cache hicolor |
87553ab6 | 161 | |
162 | %files -f %{name}.lang | |
163 | %defattr(644,root,root,755) | |
164 | %doc AUTHORS ChangeLog NEWS README TODO | |
165 | %attr(755,root,root) %{_bindir}/* | |
23544f41 | 166 | %{_mandir}/man1/* |
a0ff1688 | 167 | %{_sysconfdir}/gconf/schemas/evince.schemas |
168 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas | |
dfd5b6aa | 169 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas |
170 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas | |
2329350c | 171 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas |
dfd5b6aa | 172 | %{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas |
87553ab6 | 173 | %{_datadir}/%{name} |
174 | %{_desktopdir}/*.desktop | |
d12d3919 | 175 | %{_iconsdir}/*/*/*/* |
e1a2fb6e | 176 | %{_omf_dest_dir}/evince |
dfd5b6aa | 177 | |
178 | %files -n nautilus-extension-evince | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so* | |
23544f41 | 181 | |
182 | %if %{with apidocs} | |
183 | %files apidocs | |
184 | %defattr(644,root,root,755) | |
185 | %{_gtkdocdir}/* | |
186 | %endif |