]>
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 |
7 | # | |
c62f899d | 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 |
6b0f003e | 13 | Release: 2 |
e4e5eb0d | 14 | License: GPL v2+ |
c257d14f | 15 | Group: X11/Applications/Graphics |
7eef4fda | 16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/%{_realname}-%{version}.tar.bz2 |
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 |
c257d14f | 50 | Requires(post,postun): desktop-file-utils |
51 | Requires(post,postun): gtk+2 >= 2:2.10.6 | |
52 | Requires(post,postun): scrollkeeper | |
53 | Requires: cairo >= 1.2.4 | |
54 | Requires: djvulibre >= 3.5.17 | |
7eef4fda | 55 | Requires: gtk+2 >= 2:2.22.0 |
5aca2354 | 56 | Requires: poppler-glib >= 0.6 |
c257d14f | 57 | Conflicts: evince |
58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
59 | ||
7eef4fda | 60 | %define backendsdir %{_libdir}/evince/3/backends |
4cfdd350 | 61 | |
c257d14f | 62 | %description |
63 | Evince is a document viewer for multiple document formats like pdf, | |
64 | postscript, and many others. The goal of evince is to replace the | |
65 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
66 | gpdf, and xpdf with a single simple application. | |
67 | ||
68 | This version doesn't use GNOME libraries, but only GTK+. | |
69 | ||
70 | %description -l pl.UTF-8 | |
71 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
72 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
73 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
74 | xpdf jedną prostą aplikacją. | |
75 | ||
76 | Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+. | |
77 | ||
eb0cdbfd | 78 | %package devel |
79 | Summary: Header files for Evince GTK+ | |
80 | Summary(pl.UTF-8): Pliki nagłówkowe Evince GTK+ | |
81 | Group: X11/Development/Libraries | |
82 | Requires: %{name} = %{version}-%{release} | |
7eef4fda | 83 | Requires: gtk+2-devel >= 2:2.22.0 |
eb0cdbfd | 84 | |
85 | %description devel | |
86 | Header files for Evince GTK+. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Pliki nagłówkowe Evince GTK+. | |
90 | ||
c257d14f | 91 | %package apidocs |
92 | Summary: Evince API documentation | |
93 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
94 | Group: Documentation | |
95 | Requires: gtk-doc-common | |
96 | ||
97 | %description apidocs | |
98 | Evince API documentation. | |
99 | ||
100 | This version doesn't use GNOME libraries, but only GTK+. | |
101 | ||
102 | %description apidocs -l pl.UTF-8 | |
103 | Dokumentacja API aplikacji Evince. | |
104 | ||
105 | Ta wersja nie korzysta z bibliotek GNOME, a jedynie z GTK+. | |
106 | ||
107 | %prep | |
108 | %setup -q -n %{_realname}-%{version} | |
c257d14f | 109 | |
110 | %build | |
4cfdd350 | 111 | %{__intltoolize} |
37fe52f9 | 112 | %{__libtoolize} |
e4e5eb0d | 113 | %{__aclocal} -I m4 |
4cfdd350 | 114 | %{__autoconf} |
115 | %{__autoheader} | |
116 | %{__automake} | |
c257d14f | 117 | %configure \ |
f70c2e57 | 118 | %{!?with_apidocs:--disable-gtk-doc} \ |
119 | %{!?with_apidocs:--disable-scrollkeeper} \ | |
c257d14f | 120 | --disable-nautilus \ |
121 | --disable-static \ | |
122 | --disable-schemas-install \ | |
123 | --enable-comics \ | |
f70c2e57 | 124 | %{!?with_dbus:--disable-dbus} \ |
c257d14f | 125 | --enable-djvu \ |
126 | --enable-dvi \ | |
127 | --enable-impress \ | |
f70c2e57 | 128 | --enable-pdf \ |
c257d14f | 129 | --enable-pixbuf \ |
f70c2e57 | 130 | --enable-ps \ |
131 | --enable-t1lib \ | |
132 | --enable-thumbnailer \ | |
c257d14f | 133 | --enable-tiff \ |
c62f899d | 134 | --with-html-dir=%{_gtkdocdir} |
c257d14f | 135 | |
136 | %{__make} | |
137 | ||
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %{__make} install \ | |
142 | DESTDIR=$RPM_BUILD_ROOT \ | |
143 | HTML_DIR=%{_gtkdocdir} | |
144 | ||
4cfdd350 | 145 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la |
146 | ||
586c66a2 | 147 | # unsupported |
148 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en@shaw | |
149 | ||
c257d14f | 150 | %find_lang %{_realname} |
151 | ||
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %post | |
4cfdd350 | 156 | /sbin/ldconfig |
c257d14f | 157 | %update_desktop_database_post |
158 | %scrollkeeper_update_post | |
159 | %update_icon_cache hicolor | |
160 | ||
161 | %preun | |
162 | ||
163 | %postun | |
4cfdd350 | 164 | /sbin/ldconfig |
c257d14f | 165 | %update_desktop_database_postun |
166 | %scrollkeeper_update_postun | |
167 | %update_icon_cache hicolor | |
168 | ||
169 | %files -f %{_realname}.lang | |
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/* |
199 | %{_datadir}/%{_realname} | |
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 |