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