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