]>
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: |
23544f41 | 7 | %bcond_without apidocs # disable gtk-doc |
2f4ccc22 | 8 | %bcond_without nautilus # Nautilus extensions |
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 |
51eb627d | 13 | Version: 3.10.3 |
5a12fc5e | 14 | Release: 2 |
59aa6ffb | 15 | License: GPL v2 |
87553ab6 | 16 | Group: X11/Applications/Graphics |
e51dfc19 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.10/%{name}-%{version}.tar.xz |
51eb627d | 18 | # Source0-md5: 9eea10e75e032e489232f4f22bfc403a |
15fe3a37 | 19 | Patch0: %{name}-linking.patch |
87553ab6 | 20 | URL: http://www.gnome.org/projects/evince/ |
a96547b6 | 21 | BuildRequires: autoconf >= 2.57 |
dcaa156e | 22 | BuildRequires: automake >= 1:1.10 |
31d78cfa | 23 | BuildRequires: cairo-devel >= 1.10.0 |
98a7da35 | 24 | BuildRequires: djvulibre-devel >= 3.5.17 |
2b3bf0b6 | 25 | BuildRequires: docbook-dtd412-xml |
a96547b6 | 26 | BuildRequires: gettext-devel |
e51dfc19 | 27 | BuildRequires: glib2-devel >= 1:2.36.0 |
4d1cdbff | 28 | BuildRequires: gnome-common >= 2.24.0 |
a9811523 | 29 | BuildRequires: gnome-icon-theme >= 3.2.0 |
2f4ccc22 | 30 | BuildRequires: gobject-introspection-devel >= 1.0 |
cea79620 | 31 | BuildRequires: gsettings-desktop-schemas-devel |
e51dfc19 | 32 | BuildRequires: gtk+3-devel >= 3.8.0 |
dcaa156e | 33 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.13} |
4d1cdbff | 34 | BuildRequires: intltool >= 0.40.0 |
72e9e2b8 | 35 | BuildRequires: kpathsea-devel |
c252a4a2 | 36 | BuildRequires: libgxps-devel >= 0.2.1 |
15fe3a37 | 37 | BuildRequires: libsecret-devel >= 0.5 |
a96547b6 | 38 | BuildRequires: libspectre-devel >= 0.2.0 |
52101646 | 39 | BuildRequires: libtiff-devel |
2f4ccc22 | 40 | BuildRequires: libtool >= 2:2.2 |
a96547b6 | 41 | BuildRequires: libxml2-devel >= 1:2.6.31 |
2f4ccc22 JB |
42 | BuildRequires: libxml2-progs >= 1:2.6.31 |
43 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0} | |
184cd39f | 44 | BuildRequires: pkgconfig |
e51dfc19 | 45 | BuildRequires: poppler-glib-devel >= 0.24.0 |
16b45cd3 | 46 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 47 | BuildRequires: rpmbuild(macros) >= 1.592 |
a96547b6 | 48 | BuildRequires: t1lib-devel |
a9811523 | 49 | BuildRequires: tar >= 1:1.22 |
cea79620 | 50 | BuildRequires: xorg-lib-libICE-devel |
2f4ccc22 JB |
51 | BuildRequires: xorg-lib-libSM-devel >= 1.0.0 |
52 | BuildRequires: xorg-lib-libX11-devel | |
a9811523 | 53 | BuildRequires: xz |
1380699d | 54 | BuildRequires: yelp-tools |
9b07dbc7 | 55 | BuildRequires: zlib-devel |
12600ecc | 56 | Requires(post,postun): desktop-file-utils |
e51dfc19 | 57 | Requires(post,postun): glib2 >= 1:2.36.0 |
5a12fc5e | 58 | Requires: %{name}-libs = %{version}-%{release} |
2f4ccc22 | 59 | Requires: cairo >= 1.10.0 |
31d78cfa | 60 | Requires: dconf |
a9811523 | 61 | Requires: gnome-icon-theme >= 3.2.0 |
cea79620 | 62 | Requires: gsettings-desktop-schemas |
cea79620 MB |
63 | Requires: gtk-update-icon-cache |
64 | Requires: hicolor-icon-theme | |
2f4ccc22 JB |
65 | Requires: libsecret >= 0.5 |
66 | Requires: xorg-lib-libSM >= 1.0.0 | |
9b4f4918 MB |
67 | Suggests: evince-backend-djvu |
68 | Suggests: evince-backend-dvi | |
69 | Suggests: evince-backend-pdf | |
70 | Suggests: evince-backend-ps | |
cea79620 | 71 | Suggests: gtk+3-cups |
795a6311 | 72 | Obsoletes: evince-gtk |
3e7213f4 | 73 | # sr@Latn vs. sr@latin |
74 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
76 | ||
c252a4a2 | 77 | %define backendsdir %{_libdir}/evince/4/backends |
a96547b6 | 78 | |
87553ab6 | 79 | %description |
80 | Evince is a document viewer for multiple document formats like pdf, | |
81 | postscript, and many others. The goal of evince is to replace the | |
82 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
83 | gpdf, and xpdf with a single simple application. | |
84 | ||
2a3b3b99 JR |
85 | %description -l pl.UTF-8 |
86 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
87 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
88 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
89 | xpdf jedną prostą aplikacją. | |
87553ab6 | 90 | |
5a12fc5e JB |
91 | %package libs |
92 | Summary: Evince shared libraries | |
93 | Summary(pl.UTF-8): Biblioteki współdzielone Evince | |
94 | Group: X11/Libraries | |
95 | Requires: glib2 >= 1:2.36.0 | |
96 | Requires: gtk+3 >= 3.8.0 | |
97 | Conflicts: evince < 3.10.3-2 | |
98 | ||
99 | %description libs | |
100 | Evince shared libraries. | |
101 | ||
102 | %description libs -l pl.UTF-8 | |
103 | Biblioteki współdzielone Evince. | |
104 | ||
a96547b6 PZ |
105 | %package devel |
106 | Summary: Header files for Evince | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
108 | Group: X11/Development/Libraries | |
5a12fc5e JB |
109 | Requires: %{name}-libs = %{version}-%{release} |
110 | Requires: glib2-devel >= 1:2.36.0 | |
e51dfc19 | 111 | Requires: gtk+3-devel >= 3.8.0 |
dfd5b6aa | 112 | |
a96547b6 PZ |
113 | %description devel |
114 | Header files for Evince. | |
dfd5b6aa | 115 | |
a96547b6 PZ |
116 | %description devel -l pl.UTF-8 |
117 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 118 | |
23544f41 | 119 | %package apidocs |
120 | Summary: Evince API documentation | |
121 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
122 | Group: Documentation | |
123 | Requires: gtk-doc-common | |
124 | ||
125 | %description apidocs | |
126 | Evince API documentation. | |
127 | ||
128 | %description apidocs -l pl.UTF-8 | |
129 | Dokumentacja API aplikacji Evince. | |
130 | ||
a96547b6 PZ |
131 | %package -n nautilus-extension-evince |
132 | Summary: Evince extension for Nautilus | |
133 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
134 | Group: X11/Applications | |
135 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 136 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
137 | |
138 | %description -n nautilus-extension-evince | |
2f4ccc22 | 139 | This extension shows Evince document properties in Nautilus. |
a96547b6 PZ |
140 | |
141 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
2f4ccc22 | 142 | To rozszerzenie pokazuje właściwości dokumentu Evince w Nautilusie. |
a96547b6 | 143 | |
ab458ef2 | 144 | %package backend-djvu |
2f4ccc22 JB |
145 | Summary: View DjVu documents with Evince |
146 | Summary(pl.UTF-8): Przeglądanie dokumentów DjVu przy użyciu Evince | |
ab458ef2 | 147 | Group: X11/Applications |
9b4f4918 MB |
148 | Requires: %{name} = %{version}-%{release} |
149 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
150 | |
151 | %description backend-djvu | |
2f4ccc22 JB |
152 | View DjVu documents with Evince. |
153 | ||
154 | %description backend-djvu -l pl.UTF-8 | |
155 | Przeglądanie dokumentów DjVu przy użyciu Evince. | |
ab458ef2 | 156 | |
c4d5ca9c | 157 | %package backend-dvi |
9b4f4918 | 158 | Summary: View DVI documents with Evince |
2f4ccc22 | 159 | Summary(pl.UTF-8): Przeglądanie dokumentów DVI przy użyciu Evince |
c4d5ca9c | 160 | Group: X11/Applications |
9b4f4918 | 161 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 162 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
163 | |
164 | %description backend-dvi | |
9b4f4918 | 165 | View DVI documents with Evince. |
c4d5ca9c | 166 | |
2f4ccc22 JB |
167 | %description backend-dvi -l pl.UTF-8 |
168 | Przeglądanie dokumentów DVI przy użyciu Evince. | |
169 | ||
ab458ef2 | 170 | %package backend-pdf |
9b4f4918 | 171 | Summary: View PDF documents with Evince |
2f4ccc22 | 172 | Summary(pl.UTF-8): Przeglądanie dokumentów PDF przy użyciu Evince |
ab458ef2 | 173 | Group: X11/Applications |
9b4f4918 | 174 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 JB |
175 | Requires: libxml2 >= 1:2.6.31 |
176 | Requires: poppler-glib >= 0.24.0 | |
ab458ef2 ZU |
177 | |
178 | %description backend-pdf | |
9b4f4918 | 179 | View PDF documents with Evince. |
ab458ef2 | 180 | |
2f4ccc22 JB |
181 | %description backend-pdf -l pl.UTF-8 |
182 | Przeglądanie dokumentów PDF przy użyciu Evince. | |
183 | ||
c4d5ca9c | 184 | %package backend-ps |
2f4ccc22 JB |
185 | Summary: View PostScript documents with Evince |
186 | Summary(pl.UTF-8): Przeglądanie dokumentów PostScript przy użyciu Evince | |
c4d5ca9c | 187 | Group: X11/Applications |
9b4f4918 | 188 | Requires: %{name} = %{version}-%{release} |
2f4ccc22 | 189 | Requires: libspectre >= 0.2.0 |
c4d5ca9c ZU |
190 | |
191 | %description backend-ps | |
2f4ccc22 JB |
192 | View PostScript documents with Evince. |
193 | ||
194 | %description backend-ps -l pl.UTF-8 | |
195 | Przeglądanie dokumentów PostScript przy użyciu Evince. | |
196 | ||
197 | %package backend-xps | |
198 | Summary: View XPS documents with Evince | |
199 | Summary(pl.UTF-8): Przeglądanie dokumentów XPS przy użyciu Evince | |
200 | Group: X11/Applications | |
201 | Requires: %{name} = %{version}-%{release} | |
202 | Requires: libgxps >= 0.2.1 | |
203 | ||
204 | %description backend-xps | |
205 | View XPS documents with Evince. | |
206 | ||
207 | %description backend-xps -l pl.UTF-8 | |
208 | Przeglądanie dokumentów XPS przy użyciu Evince. | |
c4d5ca9c | 209 | |
87553ab6 | 210 | %prep |
211 | %setup -q | |
2c320383 | 212 | %patch0 -p1 |
58684a44 | 213 | |
87553ab6 | 214 | %build |
08c6a467 | 215 | %{__gtkdocize} |
a0ff1688 | 216 | %{__intltoolize} |
a96547b6 | 217 | %{__libtoolize} |
08c6a467 | 218 | %{__aclocal} -I m4 |
f8be43cb AF |
219 | %{__autoconf} |
220 | %{__autoheader} | |
221 | %{__automake} | |
87553ab6 | 222 | %configure \ |
a0ff1688 | 223 | --enable-comics \ |
72e9e2b8 | 224 | --enable-djvu \ |
a5a87d5b | 225 | --enable-dvi \ |
2f4ccc22 | 226 | %{?with_apidocs:--enable-gtk-doc} \ |
97f25a2f | 227 | --enable-introspection \ |
2f4ccc22 | 228 | --enable-nautilus%{!?with_nautilus:=no} \ |
a96547b6 | 229 | --enable-pdf \ |
2f4ccc22 JB |
230 | --disable-silent-rules \ |
231 | --disable-static \ | |
232 | --enable-t1lib \ | |
a0ff1688 | 233 | --enable-tiff \ |
2f4ccc22 JB |
234 | --with-html-dir=%{_gtkdocdir} \ |
235 | --with-smclient=xsmp | |
87553ab6 | 236 | %{__make} |
237 | ||
238 | %install | |
239 | rm -rf $RPM_BUILD_ROOT | |
240 | ||
241 | %{__make} install \ | |
a96547b6 | 242 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 243 | |
cea79620 MB |
244 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
245 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la | |
2f4ccc22 | 246 | %if %{with nautilus} |
cea79620 | 247 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la |
2f4ccc22 | 248 | %endif |
87553ab6 | 249 | |
15fe3a37 | 250 | %find_lang %{name} --with-gnome |
87553ab6 | 251 | |
252 | %clean | |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
255 | %post | |
4685de83 | 256 | %update_desktop_database_post |
a0ff1688 | 257 | %update_icon_cache hicolor |
d46abe04 | 258 | %glib_compile_schemas |
12600ecc | 259 | |
87553ab6 | 260 | %postun |
4685de83 | 261 | %update_desktop_database_postun |
a0ff1688 | 262 | %update_icon_cache hicolor |
d46abe04 | 263 | %glib_compile_schemas |
87553ab6 | 264 | |
5a12fc5e JB |
265 | %post libs -p /sbin/ldconfig |
266 | %postun libs -p /sbin/ldconfig | |
267 | ||
87553ab6 | 268 | %files -f %{name}.lang |
269 | %defattr(644,root,root,755) | |
270 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 271 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 272 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 273 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 274 | %attr(755,root,root) %{_libexecdir}/evinced |
a96547b6 | 275 | %dir %{_libdir}/evince |
c252a4a2 | 276 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
277 | %dir %{backendsdir} |
278 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
279 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
280 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
281 | %{backendsdir}/tiffdocument.evince-backend | |
31d78cfa | 282 | %{_datadir}/GConf/gsettings/evince.convert |
dcaa156e | 283 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 284 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 285 | %{_datadir}/%{name} |
cea79620 | 286 | %{_datadir}/thumbnailers/evince.thumbnailer |
a96547b6 PZ |
287 | %{_mandir}/man1/evince.1* |
288 | %{_desktopdir}/evince.desktop | |
15fe3a37 | 289 | %{_desktopdir}/evince-previewer.desktop |
2f4ccc22 | 290 | %{_iconsdir}/hicolor/*x*/apps/evince.png |
dfd5b6aa | 291 | |
5a12fc5e JB |
292 | %files libs |
293 | %defattr(644,root,root,755) | |
294 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* | |
295 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4 | |
296 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
297 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
298 | %{_libdir}/girepository-1.0/EvinceDocument-3.0.typelib | |
299 | %{_libdir}/girepository-1.0/EvinceView-3.0.typelib | |
300 | ||
301 | %files devel | |
302 | %defattr(644,root,root,755) | |
303 | %attr(755,root,root) %{_libdir}/libevdocument3.so | |
304 | %attr(755,root,root) %{_libdir}/libevview3.so | |
305 | %{_datadir}/gir-1.0/EvinceDocument-3.0.gir | |
306 | %{_datadir}/gir-1.0/EvinceView-3.0.gir | |
307 | %{_includedir}/evince | |
308 | %{_pkgconfigdir}/evince-document-3.0.pc | |
309 | %{_pkgconfigdir}/evince-view-3.0.pc | |
310 | ||
311 | %if %{with apidocs} | |
312 | %files apidocs | |
313 | %defattr(644,root,root,755) | |
314 | %{_gtkdocdir}/evince | |
315 | %{_gtkdocdir}/libevdocument-3.0 | |
316 | %{_gtkdocdir}/libevview-3.0 | |
317 | %endif | |
318 | ||
c4d5ca9c ZU |
319 | %files backend-djvu |
320 | %defattr(644,root,root,755) | |
9b4f4918 | 321 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 322 | %{backendsdir}/djvudocument.evince-backend |
c4d5ca9c | 323 | |
ab458ef2 | 324 | %files backend-dvi |
c4d5ca9c | 325 | %defattr(644,root,root,755) |
9b4f4918 | 326 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 327 | %{backendsdir}/dvidocument.evince-backend |
ab458ef2 | 328 | |
c4d5ca9c ZU |
329 | %files backend-ps |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
332 | %{backendsdir}/psdocument.evince-backend | |
ab458ef2 ZU |
333 | |
334 | %files backend-pdf | |
c4d5ca9c | 335 | %defattr(644,root,root,755) |
9b4f4918 | 336 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 ZU |
337 | %{backendsdir}/pdfdocument.evince-backend |
338 | ||
2f4ccc22 JB |
339 | %files backend-xps |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so | |
342 | %{backendsdir}/xpsdocument.evince-backend | |
343 | ||
2f4ccc22 | 344 | %if %{with nautilus} |
a96547b6 PZ |
345 | %files -n nautilus-extension-evince |
346 | %defattr(644,root,root,755) | |
cea79620 | 347 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |
2f4ccc22 | 348 | %endif |