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