]>
Commit | Line | Data |
---|---|---|
c257d14f | 1 | # |
f70c2e57 | 2 | # - are schemas (thus GConf) needed? |
3 | # | |
c257d14f | 4 | # Conditional build: |
19208715 | 5 | %bcond_without dbus # disable DBUS support |
c257d14f | 6 | %bcond_without apidocs # disable gtk-doc |
7b3a1913 ER |
7 | |
8 | %define realname evince | |
c257d14f | 9 | Summary: Document viewer for multiple document formats -- the no libgnome version |
10 | Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach -- wersja nie wykorzystująca libgnome | |
c257d14f | 11 | Name: evince-gtk |
7eef4fda | 12 | Version: 2.32.0 |
c7f93c0b | 13 | Release: 4 |
e4e5eb0d | 14 | License: GPL v2+ |
c257d14f | 15 | Group: X11/Applications/Graphics |
7b3a1913 | 16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/%{realname}-%{version}.tar.bz2 |
7eef4fda | 17 | # Source0-md5: ebc3ce6df8dcbf29cb9492f8dd031319 |
c257d14f | 18 | URL: http://www.gnome.org/projects/evince/ |
c62f899d | 19 | BuildRequires: GConf2-devel |
c257d14f | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
7eef4fda | 22 | BuildRequires: cairo-devel >= 1.10.0 |
c257d14f | 23 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71} |
24 | BuildRequires: djvulibre-devel >= 3.5.17 | |
c62f899d | 25 | BuildRequires: docbook-dtd412-xml |
26 | BuildRequires: gettext-devel | |
c257d14f | 27 | BuildRequires: ghostscript |
c62f899d | 28 | BuildRequires: gnome-common |
e8d563e8 | 29 | %{?with_apidocs:BuildRequires: gnome-doc-utils >= 0.3.2} |
c62f899d | 30 | BuildRequires: gnome-icon-theme |
7eef4fda | 31 | BuildRequires: gtk+2-devel >= 2:2.22.0 |
c62f899d | 32 | BuildRequires: gtk-doc-automake |
c257d14f | 33 | BuildRequires: intltool >= 0.35.0 |
34 | BuildRequires: kpathsea-devel | |
e4e5eb0d | 35 | BuildRequires: lcms-devel |
c257d14f | 36 | BuildRequires: libglade2-devel >= 1:2.6.0 |
e4e5eb0d | 37 | BuildRequires: libgnome-keyring-devel |
c62f899d | 38 | BuildRequires: libspectre-devel >= 0.2.0 |
c257d14f | 39 | BuildRequires: libstdc++-devel |
40 | BuildRequires: libtiff-devel | |
c62f899d | 41 | BuildRequires: libtool |
42 | BuildRequires: libxml2-progs | |
c257d14f | 43 | BuildRequires: libxslt-progs >= 1.1.17 |
44 | BuildRequires: pkgconfig | |
7eef4fda | 45 | BuildRequires: poppler-glib-devel >= 0.14.0 |
c257d14f | 46 | BuildRequires: python-libxml2 |
47 | BuildRequires: rpmbuild(macros) >= 1.197 | |
48 | BuildRequires: scrollkeeper | |
c62f899d | 49 | BuildRequires: xorg-lib-libSM-devel |
c7f93c0b | 50 | Requires(post,postun): /sbin/ldconfig |
c257d14f | 51 | Requires(post,postun): desktop-file-utils |
c7f93c0b AF |
52 | Requires(post,postun): gtk-update-icon-cache |
53 | Requires(post,postun): hicolor-icon-theme | |
c257d14f | 54 | Requires(post,postun): scrollkeeper |
55 | Requires: cairo >= 1.2.4 | |
56 | Requires: djvulibre >= 3.5.17 | |
7eef4fda | 57 | Requires: gtk+2 >= 2:2.22.0 |
5aca2354 | 58 | Requires: poppler-glib >= 0.6 |
c257d14f | 59 | Conflicts: evince |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
7eef4fda | 62 | %define backendsdir %{_libdir}/evince/3/backends |
4cfdd350 | 63 | |
c257d14f | 64 | %description |
65 | Evince is a document viewer for multiple document formats like pdf, | |
66 | postscript, and many others. The goal of evince is to replace the | |
67 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
68 | gpdf, and xpdf with a single simple application. | |
69 | ||
70 | This version doesn't use GNOME libraries, but only GTK+. | |
71 | ||
72 | %description -l pl.UTF-8 | |
73 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
74 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
75 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
76 | xpdf jedną prostą aplikacją. | |
77 | ||
78 | Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+. | |
79 | ||
eb0cdbfd | 80 | %package devel |
81 | Summary: Header files for Evince GTK+ | |
82 | Summary(pl.UTF-8): Pliki nagłówkowe Evince GTK+ | |
83 | Group: X11/Development/Libraries | |
84 | Requires: %{name} = %{version}-%{release} | |
7eef4fda | 85 | Requires: gtk+2-devel >= 2:2.22.0 |
eb0cdbfd | 86 | |
87 | %description devel | |
88 | Header files for Evince GTK+. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Pliki nagłówkowe Evince GTK+. | |
92 | ||
c257d14f | 93 | %package apidocs |
94 | Summary: Evince API documentation | |
95 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
96 | Group: Documentation | |
97 | Requires: gtk-doc-common | |
98 | ||
99 | %description apidocs | |
100 | Evince API documentation. | |
101 | ||
102 | This version doesn't use GNOME libraries, but only GTK+. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API aplikacji Evince. | |
106 | ||
107 | Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+. | |
108 | ||
109 | %prep | |
7b3a1913 | 110 | %setup -q -n %{realname}-%{version} |
c257d14f | 111 | |
112 | %build | |
4cfdd350 | 113 | %{__intltoolize} |
37fe52f9 | 114 | %{__libtoolize} |
e4e5eb0d | 115 | %{__aclocal} -I m4 |
4cfdd350 | 116 | %{__autoconf} |
117 | %{__autoheader} | |
118 | %{__automake} | |
c257d14f | 119 | %configure \ |
f70c2e57 | 120 | %{!?with_apidocs:--disable-gtk-doc} \ |
121 | %{!?with_apidocs:--disable-scrollkeeper} \ | |
c257d14f | 122 | --disable-nautilus \ |
123 | --disable-static \ | |
124 | --disable-schemas-install \ | |
125 | --enable-comics \ | |
f70c2e57 | 126 | %{!?with_dbus:--disable-dbus} \ |
c257d14f | 127 | --enable-djvu \ |
128 | --enable-dvi \ | |
129 | --enable-impress \ | |
f70c2e57 | 130 | --enable-pdf \ |
c257d14f | 131 | --enable-pixbuf \ |
f70c2e57 | 132 | --enable-ps \ |
133 | --enable-t1lib \ | |
134 | --enable-thumbnailer \ | |
c257d14f | 135 | --enable-tiff \ |
c62f899d | 136 | --with-html-dir=%{_gtkdocdir} |
c257d14f | 137 | |
138 | %{__make} | |
139 | ||
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %{__make} install \ | |
144 | DESTDIR=$RPM_BUILD_ROOT \ | |
145 | HTML_DIR=%{_gtkdocdir} | |
146 | ||
4cfdd350 | 147 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la |
148 | ||
586c66a2 | 149 | # unsupported |
150 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en@shaw | |
151 | ||
7b3a1913 | 152 | %find_lang %{realname} |
c257d14f | 153 | |
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %post | |
4cfdd350 | 158 | /sbin/ldconfig |
c257d14f | 159 | %update_desktop_database_post |
160 | %scrollkeeper_update_post | |
161 | %update_icon_cache hicolor | |
162 | ||
c257d14f | 163 | %postun |
4cfdd350 | 164 | /sbin/ldconfig |
c257d14f | 165 | %update_desktop_database_postun |
166 | %scrollkeeper_update_postun | |
167 | %update_icon_cache hicolor | |
168 | ||
7b3a1913 | 169 | %files -f %{realname}.lang |
c257d14f | 170 | %defattr(644,root,root,755) |
171 | %doc AUTHORS ChangeLog NEWS README TODO | |
4cfdd350 | 172 | %attr(755,root,root) %{_bindir}/evince |
173 | %attr(755,root,root) %{_bindir}/evince-previewer | |
174 | %attr(755,root,root) %{_bindir}/evince-thumbnailer | |
175 | %attr(755,root,root) %{_libdir}/libevdocument.so.*.*.* | |
7eef4fda | 176 | %attr(755,root,root) %ghost %{_libdir}/libevdocument.so.3 |
4cfdd350 | 177 | %attr(755,root,root) %{_libdir}/libevview.so.*.*.* |
7eef4fda | 178 | %attr(755,root,root) %ghost %{_libdir}/libevview.so.3 |
eb0cdbfd | 179 | %dir %{_libdir}/evince |
7eef4fda | 180 | %dir %{_libdir}/evince/3 |
4cfdd350 | 181 | %dir %{backendsdir} |
eb0cdbfd | 182 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so |
4cfdd350 | 183 | %{backendsdir}/comicsdocument.evince-backend |
eb0cdbfd | 184 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
4cfdd350 | 185 | %{backendsdir}/djvudocument.evince-backend |
eb0cdbfd | 186 | %attr(755,root,root) %{backendsdir}/libdvidocument.so* |
4cfdd350 | 187 | %{backendsdir}/dvidocument.evince-backend |
4cfdd350 | 188 | %attr(755,root,root) %{backendsdir}/libimpressdocument.so |
eb0cdbfd | 189 | %{backendsdir}/impressdocument.evince-backend |
4cfdd350 | 190 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
eb0cdbfd | 191 | %{backendsdir}/pdfdocument.evince-backend |
4cfdd350 | 192 | %attr(755,root,root) %{backendsdir}/libpixbufdocument.so |
eb0cdbfd | 193 | %{backendsdir}/pixbufdocument.evince-backend |
4cfdd350 | 194 | %attr(755,root,root) %{backendsdir}/libpsdocument.so |
eb0cdbfd | 195 | %{backendsdir}/psdocument.evince-backend |
4cfdd350 | 196 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
eb0cdbfd | 197 | %{backendsdir}/tiffdocument.evince-backend |
c257d14f | 198 | %{_mandir}/man1/* |
7b3a1913 | 199 | %{_datadir}/%{realname} |
c257d14f | 200 | %{_desktopdir}/*.desktop |
201 | %{_iconsdir}/*/*/*/* | |
202 | %{_omf_dest_dir}/evince | |
203 | ||
4cfdd350 | 204 | %files devel |
205 | %defattr(644,root,root,755) | |
206 | %attr(755,root,root) %{_libdir}/libevdocument.so | |
207 | %attr(755,root,root) %{_libdir}/libevview.so | |
208 | %{_libdir}/libevdocument.la | |
209 | %{_libdir}/libevview.la | |
eb0cdbfd | 210 | %{_includedir}/evince |
4cfdd350 | 211 | %{_pkgconfigdir}/evince-document-*.pc |
212 | %{_pkgconfigdir}/evince-view-*.pc | |
eb0cdbfd | 213 | |
214 | %if %{with apidocs} | |
215 | %files apidocs | |
216 | %defattr(644,root,root,755) | |
217 | %{_gtkdocdir}/* | |
218 | %endif |