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