]>
Commit | Line | Data |
---|---|---|
8fbf564b ER |
1 | # TODO |
2 | # - evince.desktop provides mimetypes for all possible choices, yet some of | |
3 | # them are in subpackages (backend-foo). multiple .desktop files is possible | |
4 | # for same application? | |
52101646 | 5 | # |
c3049406 | 6 | # Conditional build: |
26832c98 | 7 | %bcond_without dbus # disable DBUS support |
23544f41 | 8 | %bcond_without apidocs # disable gtk-doc |
8fbf564b | 9 | |
87553ab6 | 10 | Summary: Document viewer for multiple document formats |
6c08f70f | 11 | Summary(pl.UTF-8): Przeglądarka dokumentów w wielu formatach |
87553ab6 | 12 | Name: evince |
97f25a2f PZ |
13 | Version: 3.1.2 |
14 | Release: 1 | |
59aa6ffb | 15 | License: GPL v2 |
87553ab6 | 16 | Group: X11/Applications/Graphics |
97f25a2f PZ |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.1/%{name}-%{version}.tar.bz2 |
18 | # Source0-md5: 9c06e8a99204aba11da28e03a03b6823 | |
2c320383 | 19 | Patch0: %{name}-desktop.patch |
97f25a2f | 20 | Patch1: %{name}-linking.patch |
87553ab6 | 21 | URL: http://www.gnome.org/projects/evince/ |
a96547b6 | 22 | BuildRequires: autoconf >= 2.57 |
dcaa156e | 23 | BuildRequires: automake >= 1:1.10 |
31d78cfa | 24 | BuildRequires: cairo-devel >= 1.10.0 |
98a7da35 | 25 | BuildRequires: djvulibre-devel >= 3.5.17 |
2b3bf0b6 | 26 | BuildRequires: docbook-dtd412-xml |
a96547b6 | 27 | BuildRequires: gettext-devel |
31d78cfa | 28 | BuildRequires: glib2-devel >= 1:2.26.0 |
4d1cdbff MB |
29 | BuildRequires: gnome-common >= 2.24.0 |
30 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
cea79620 MB |
31 | BuildRequires: gnome-icon-theme >= 3.0.0 |
32 | BuildRequires: gobject-introspection-devel >= 0.6.0 | |
33 | BuildRequires: gsettings-desktop-schemas-devel | |
34 | BuildRequires: gtk+3-devel >= 3.0.0 | |
dcaa156e | 35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 36 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 37 | BuildRequires: kpathsea-devel |
c4d5ca9c | 38 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
cea79620 | 39 | #BuildRequires: libgxps-devel >= 0.0.1 |
a96547b6 | 40 | BuildRequires: libspectre-devel >= 0.2.0 |
52101646 | 41 | BuildRequires: libtiff-devel |
a96547b6 PZ |
42 | BuildRequires: libtool |
43 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
cea79620 | 44 | BuildRequires: nautilus-devel >= 3.0.0 |
184cd39f | 45 | BuildRequires: pkgconfig |
cea79620 | 46 | BuildRequires: poppler-glib-devel >= 0.16.0 |
16b45cd3 | 47 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 48 | BuildRequires: rpmbuild(macros) >= 1.592 |
a96547b6 | 49 | BuildRequires: t1lib-devel |
cea79620 | 50 | BuildRequires: xorg-lib-libICE-devel |
ef82865f | 51 | BuildRequires: xorg-lib-libSM-devel |
9b07dbc7 | 52 | BuildRequires: zlib-devel |
12600ecc | 53 | Requires(post,postun): desktop-file-utils |
31d78cfa | 54 | Requires(post,postun): glib2 >= 1:2.26.0 |
31d78cfa | 55 | Requires: dconf |
cea79620 MB |
56 | Requires: gnome-icon-theme >= 3.0.0 |
57 | Requires: gsettings-desktop-schemas | |
58 | Requires: gtk+3 >= 3.0.0 | |
59 | Requires: gtk-update-icon-cache | |
60 | Requires: hicolor-icon-theme | |
9b4f4918 MB |
61 | Suggests: evince-backend-djvu |
62 | Suggests: evince-backend-dvi | |
63 | Suggests: evince-backend-pdf | |
64 | Suggests: evince-backend-ps | |
cea79620 | 65 | Suggests: gtk+3-cups |
e9f7e8ef | 66 | Conflicts: evince-gtk |
3e7213f4 | 67 | # sr@Latn vs. sr@latin |
68 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
31d78cfa | 71 | %define backendsdir %{_libdir}/evince/3/backends |
a96547b6 | 72 | |
87553ab6 | 73 | %description |
74 | Evince is a document viewer for multiple document formats like pdf, | |
75 | postscript, and many others. The goal of evince is to replace the | |
76 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
77 | gpdf, and xpdf with a single simple application. | |
78 | ||
2a3b3b99 JR |
79 | %description -l pl.UTF-8 |
80 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
81 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
82 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
83 | xpdf jedną prostą aplikacją. | |
87553ab6 | 84 | |
a96547b6 PZ |
85 | %package devel |
86 | Summary: Header files for Evince | |
87 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
88 | Group: X11/Development/Libraries | |
b42cac85 | 89 | Requires: %{name} = %{version}-%{release} |
cea79620 | 90 | Requires: gtk+3-devel >= 3.0.0 |
dfd5b6aa | 91 | |
a96547b6 PZ |
92 | %description devel |
93 | Header files for Evince. | |
dfd5b6aa | 94 | |
a96547b6 PZ |
95 | %description devel -l pl.UTF-8 |
96 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 97 | |
23544f41 | 98 | %package apidocs |
99 | Summary: Evince API documentation | |
100 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
101 | Group: Documentation | |
102 | Requires: gtk-doc-common | |
103 | ||
104 | %description apidocs | |
105 | Evince API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API aplikacji Evince. | |
109 | ||
a96547b6 PZ |
110 | %package -n nautilus-extension-evince |
111 | Summary: Evince extension for Nautilus | |
112 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
113 | Group: X11/Applications | |
114 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 115 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
116 | |
117 | %description -n nautilus-extension-evince | |
118 | Shows Evince document properties in Nautilus. | |
119 | ||
120 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
121 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
122 | ||
ab458ef2 | 123 | %package backend-djvu |
9b4f4918 | 124 | Summary: View DJVu documents with Evince |
ab458ef2 | 125 | Group: X11/Applications |
9b4f4918 MB |
126 | Requires: %{name} = %{version}-%{release} |
127 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
128 | |
129 | %description backend-djvu | |
9b4f4918 | 130 | View DJVu documents with Evince. |
ab458ef2 | 131 | |
c4d5ca9c | 132 | %package backend-dvi |
9b4f4918 | 133 | Summary: View DVI documents with Evince |
c4d5ca9c | 134 | Group: X11/Applications |
9b4f4918 | 135 | Requires: %{name} = %{version}-%{release} |
c4d5ca9c ZU |
136 | |
137 | %description backend-dvi | |
9b4f4918 | 138 | View DVI documents with Evince. |
c4d5ca9c | 139 | |
ab458ef2 | 140 | %package backend-pdf |
9b4f4918 | 141 | Summary: View PDF documents with Evince |
ab458ef2 | 142 | Group: X11/Applications |
9b4f4918 | 143 | Requires: %{name} = %{version}-%{release} |
cea79620 | 144 | Requires: poppler-glib >= 0.16.0 |
ab458ef2 ZU |
145 | |
146 | %description backend-pdf | |
9b4f4918 | 147 | View PDF documents with Evince. |
ab458ef2 | 148 | |
c4d5ca9c | 149 | %package backend-ps |
9b4f4918 | 150 | Summary: View Postscript documents with Evince |
c4d5ca9c | 151 | Group: X11/Applications |
9b4f4918 | 152 | Requires: %{name} = %{version}-%{release} |
c4d5ca9c ZU |
153 | |
154 | %description backend-ps | |
9b4f4918 | 155 | View Postscript documents with Evince. |
c4d5ca9c | 156 | |
87553ab6 | 157 | %prep |
158 | %setup -q | |
2c320383 | 159 | %patch0 -p1 |
97f25a2f | 160 | %patch1 -p1 |
58684a44 | 161 | |
87553ab6 | 162 | %build |
08c6a467 | 163 | %{__gtkdocize} |
a0ff1688 | 164 | %{__intltoolize} |
a96547b6 | 165 | %{__libtoolize} |
08c6a467 | 166 | %{__aclocal} -I m4 |
f8be43cb AF |
167 | %{__autoconf} |
168 | %{__autoheader} | |
169 | %{__automake} | |
87553ab6 | 170 | %configure \ |
23544f41 | 171 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 172 | --disable-static \ |
dcaa156e | 173 | --disable-silent-rules \ |
a0ff1688 | 174 | --enable-comics \ |
72e9e2b8 | 175 | --enable-djvu \ |
a5a87d5b | 176 | --enable-dvi \ |
97f25a2f | 177 | --enable-introspection \ |
a96547b6 | 178 | --enable-t1lib \ |
a5a87d5b | 179 | --enable-nautilus \ |
a96547b6 | 180 | --enable-pdf \ |
a0ff1688 | 181 | --enable-tiff \ |
cea79620 | 182 | --with-smclient=xsmp \ |
23544f41 | 183 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 184 | %{__make} |
185 | ||
186 | %install | |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | ||
189 | %{__make} install \ | |
a96547b6 | 190 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 191 | |
cea79620 MB |
192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
193 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la | |
194 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la | |
87553ab6 | 195 | |
58684a44 | 196 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 197 | |
198 | %clean | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
201 | %post | |
a96547b6 | 202 | /sbin/ldconfig |
4685de83 | 203 | %update_desktop_database_post |
a0ff1688 | 204 | %update_icon_cache hicolor |
d46abe04 | 205 | %glib_compile_schemas |
12600ecc | 206 | |
87553ab6 | 207 | %postun |
a96547b6 | 208 | /sbin/ldconfig |
4685de83 | 209 | %update_desktop_database_postun |
a0ff1688 | 210 | %update_icon_cache hicolor |
d46abe04 | 211 | %glib_compile_schemas |
87553ab6 | 212 | |
213 | %files -f %{name}.lang | |
214 | %defattr(644,root,root,755) | |
215 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 216 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 217 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 218 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 219 | %attr(755,root,root) %{_libexecdir}/evinced |
cea79620 MB |
220 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* |
221 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.3 | |
222 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
223 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
a96547b6 | 224 | %dir %{_libdir}/evince |
31d78cfa | 225 | %dir %{_libdir}/evince/3 |
a96547b6 PZ |
226 | %dir %{backendsdir} |
227 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
228 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
229 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
230 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 231 | %{_datadir}/GConf/gsettings/evince.convert |
dcaa156e | 232 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 233 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 234 | %{_datadir}/%{name} |
cea79620 MB |
235 | %dir %{_datadir}/thumbnailers |
236 | %{_datadir}/thumbnailers/evince.thumbnailer | |
a96547b6 PZ |
237 | %{_mandir}/man1/evince.1* |
238 | %{_desktopdir}/evince.desktop | |
239 | %{_iconsdir}/hicolor/*/*/*.png | |
97f25a2f | 240 | %{_libdir}/girepository-1.0/*.typelib |
dfd5b6aa | 241 | |
c4d5ca9c ZU |
242 | %files backend-djvu |
243 | %defattr(644,root,root,755) | |
9b4f4918 | 244 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 245 | %{backendsdir}/djvudocument.evince-backend |
c4d5ca9c | 246 | |
ab458ef2 | 247 | %files backend-dvi |
c4d5ca9c | 248 | %defattr(644,root,root,755) |
9b4f4918 | 249 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 250 | %{backendsdir}/dvidocument.evince-backend |
ab458ef2 | 251 | |
c4d5ca9c ZU |
252 | %files backend-ps |
253 | %defattr(644,root,root,755) | |
254 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
255 | %{backendsdir}/psdocument.evince-backend | |
ab458ef2 ZU |
256 | |
257 | %files backend-pdf | |
c4d5ca9c | 258 | %defattr(644,root,root,755) |
9b4f4918 | 259 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 ZU |
260 | %{backendsdir}/pdfdocument.evince-backend |
261 | ||
a96547b6 | 262 | %files devel |
dfd5b6aa | 263 | %defattr(644,root,root,755) |
cea79620 MB |
264 | %attr(755,root,root) %{_libdir}/libevdocument3.so |
265 | %attr(755,root,root) %{_libdir}/libevview3.so | |
ef82865f MB |
266 | %{_includedir}/evince |
267 | %{_pkgconfigdir}/evince-document-*.pc | |
268 | %{_pkgconfigdir}/evince-view-*.pc | |
97f25a2f | 269 | %{_datadir}/gir-1.0/*.gir |
23544f41 | 270 | |
271 | %if %{with apidocs} | |
272 | %files apidocs | |
273 | %defattr(644,root,root,755) | |
a96547b6 | 274 | %{_gtkdocdir}/evince |
dcaa156e MB |
275 | %{_gtkdocdir}/libevdocument-* |
276 | %{_gtkdocdir}/libevview-* | |
23544f41 | 277 | %endif |
a96547b6 PZ |
278 | |
279 | %files -n nautilus-extension-evince | |
280 | %defattr(644,root,root,755) | |
cea79620 | 281 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |