]>
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 |
d429aedd | 13 | Version: 3.2.1 |
4c5effb4 | 14 | Release: 3 |
59aa6ffb | 15 | License: GPL v2 |
87553ab6 | 16 | Group: X11/Applications/Graphics |
a9811523 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evince/3.2/%{name}-%{version}.tar.xz |
d429aedd | 18 | # Source0-md5: 8c01b6741709b8e32b800b71820648ac |
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 | |
a9811523 | 31 | BuildRequires: gnome-icon-theme >= 3.2.0 |
cea79620 MB |
32 | BuildRequires: gobject-introspection-devel >= 0.6.0 |
33 | BuildRequires: gsettings-desktop-schemas-devel | |
a9811523 | 34 | BuildRequires: gtk+3-devel >= 3.0.2 |
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 |
1ddcfa8a | 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 |
a9811523 | 50 | BuildRequires: tar >= 1:1.22 |
cea79620 | 51 | BuildRequires: xorg-lib-libICE-devel |
ef82865f | 52 | BuildRequires: xorg-lib-libSM-devel |
a9811523 | 53 | BuildRequires: xz |
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 |
a9811523 | 58 | Requires: gnome-icon-theme >= 3.2.0 |
cea79620 | 59 | Requires: gsettings-desktop-schemas |
a9811523 | 60 | Requires: gtk+3 >= 3.0.2 |
cea79620 MB |
61 | Requires: gtk-update-icon-cache |
62 | Requires: hicolor-icon-theme | |
9b4f4918 MB |
63 | Suggests: evince-backend-djvu |
64 | Suggests: evince-backend-dvi | |
65 | Suggests: evince-backend-pdf | |
66 | Suggests: evince-backend-ps | |
cea79620 | 67 | Suggests: gtk+3-cups |
e9f7e8ef | 68 | Conflicts: evince-gtk |
3e7213f4 | 69 | # sr@Latn vs. sr@latin |
70 | Conflicts: glibc-misc < 6:2.7 | |
87553ab6 | 71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
72 | ||
31d78cfa | 73 | %define backendsdir %{_libdir}/evince/3/backends |
a96547b6 | 74 | |
87553ab6 | 75 | %description |
76 | Evince is a document viewer for multiple document formats like pdf, | |
77 | postscript, and many others. The goal of evince is to replace the | |
78 | multiple document viewers that exist on the GNOME Desktop, like ggv, | |
79 | gpdf, and xpdf with a single simple application. | |
80 | ||
2a3b3b99 JR |
81 | %description -l pl.UTF-8 |
82 | Evince jest przeglądarką dokumentów w wielu formatach takich jak pdf, | |
83 | postscript i wielu innych. W zamierzeniach program ma zastąpić | |
84 | przeglądarki dokumentów dla środowiska GNOME, takie jak ggv, gpdf i | |
85 | xpdf jedną prostą aplikacją. | |
87553ab6 | 86 | |
a96547b6 PZ |
87 | %package devel |
88 | Summary: Header files for Evince | |
89 | Summary(pl.UTF-8): Pliki nagłówkowe Evince | |
90 | Group: X11/Development/Libraries | |
b42cac85 | 91 | Requires: %{name} = %{version}-%{release} |
a9811523 | 92 | Requires: gtk+3-devel >= 3.0.2 |
dfd5b6aa | 93 | |
a96547b6 PZ |
94 | %description devel |
95 | Header files for Evince. | |
dfd5b6aa | 96 | |
a96547b6 PZ |
97 | %description devel -l pl.UTF-8 |
98 | Pliki nagłówkowe Evince. | |
dfd5b6aa | 99 | |
23544f41 | 100 | %package apidocs |
101 | Summary: Evince API documentation | |
102 | Summary(pl.UTF-8): Dokumentacja API aplikacji Evince | |
103 | Group: Documentation | |
104 | Requires: gtk-doc-common | |
105 | ||
106 | %description apidocs | |
107 | Evince API documentation. | |
108 | ||
109 | %description apidocs -l pl.UTF-8 | |
110 | Dokumentacja API aplikacji Evince. | |
111 | ||
a96547b6 PZ |
112 | %package -n nautilus-extension-evince |
113 | Summary: Evince extension for Nautilus | |
114 | Summary(pl.UTF-8): Rozszerzenie Evince dla Nautilusa | |
115 | Group: X11/Applications | |
116 | Requires: %{name} = %{version}-%{release} | |
cea79620 | 117 | Requires: nautilus >= 3.0.0 |
a96547b6 PZ |
118 | |
119 | %description -n nautilus-extension-evince | |
120 | Shows Evince document properties in Nautilus. | |
121 | ||
122 | %description -n nautilus-extension-evince -l pl.UTF-8 | |
123 | Pokazuje właściwości dokumentu Evince w Nautilusie. | |
124 | ||
ab458ef2 | 125 | %package backend-djvu |
9b4f4918 | 126 | Summary: View DJVu documents with Evince |
ab458ef2 | 127 | Group: X11/Applications |
9b4f4918 MB |
128 | Requires: %{name} = %{version}-%{release} |
129 | Requires: djvulibre >= 3.5.17 | |
ab458ef2 ZU |
130 | |
131 | %description backend-djvu | |
9b4f4918 | 132 | View DJVu documents with Evince. |
ab458ef2 | 133 | |
c4d5ca9c | 134 | %package backend-dvi |
9b4f4918 | 135 | Summary: View DVI documents with Evince |
c4d5ca9c | 136 | Group: X11/Applications |
9b4f4918 | 137 | Requires: %{name} = %{version}-%{release} |
c4d5ca9c ZU |
138 | |
139 | %description backend-dvi | |
9b4f4918 | 140 | View DVI documents with Evince. |
c4d5ca9c | 141 | |
ab458ef2 | 142 | %package backend-pdf |
9b4f4918 | 143 | Summary: View PDF documents with Evince |
ab458ef2 | 144 | Group: X11/Applications |
9b4f4918 | 145 | Requires: %{name} = %{version}-%{release} |
cea79620 | 146 | Requires: poppler-glib >= 0.16.0 |
ab458ef2 ZU |
147 | |
148 | %description backend-pdf | |
9b4f4918 | 149 | View PDF documents with Evince. |
ab458ef2 | 150 | |
c4d5ca9c | 151 | %package backend-ps |
9b4f4918 | 152 | Summary: View Postscript documents with Evince |
c4d5ca9c | 153 | Group: X11/Applications |
9b4f4918 | 154 | Requires: %{name} = %{version}-%{release} |
c4d5ca9c ZU |
155 | |
156 | %description backend-ps | |
9b4f4918 | 157 | View Postscript documents with Evince. |
c4d5ca9c | 158 | |
87553ab6 | 159 | %prep |
160 | %setup -q | |
2c320383 | 161 | %patch0 -p1 |
97f25a2f | 162 | %patch1 -p1 |
58684a44 | 163 | |
87553ab6 | 164 | %build |
08c6a467 | 165 | %{__gtkdocize} |
a0ff1688 | 166 | %{__intltoolize} |
a96547b6 | 167 | %{__libtoolize} |
08c6a467 | 168 | %{__aclocal} -I m4 |
f8be43cb AF |
169 | %{__autoconf} |
170 | %{__autoheader} | |
171 | %{__automake} | |
87553ab6 | 172 | %configure \ |
23544f41 | 173 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 174 | --disable-static \ |
dcaa156e | 175 | --disable-silent-rules \ |
a0ff1688 | 176 | --enable-comics \ |
72e9e2b8 | 177 | --enable-djvu \ |
a5a87d5b | 178 | --enable-dvi \ |
97f25a2f | 179 | --enable-introspection \ |
a96547b6 | 180 | --enable-t1lib \ |
a5a87d5b | 181 | --enable-nautilus \ |
a96547b6 | 182 | --enable-pdf \ |
a0ff1688 | 183 | --enable-tiff \ |
cea79620 | 184 | --with-smclient=xsmp \ |
23544f41 | 185 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 186 | %{__make} |
187 | ||
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
190 | ||
191 | %{__make} install \ | |
a96547b6 | 192 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 193 | |
cea79620 MB |
194 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
195 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la | |
196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la | |
87553ab6 | 197 | |
58684a44 | 198 | %find_lang %{name} --with-gnome --with-omf |
87553ab6 | 199 | |
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
203 | %post | |
a96547b6 | 204 | /sbin/ldconfig |
4685de83 | 205 | %update_desktop_database_post |
a0ff1688 | 206 | %update_icon_cache hicolor |
d46abe04 | 207 | %glib_compile_schemas |
12600ecc | 208 | |
87553ab6 | 209 | %postun |
a96547b6 | 210 | /sbin/ldconfig |
4685de83 | 211 | %update_desktop_database_postun |
a0ff1688 | 212 | %update_icon_cache hicolor |
d46abe04 | 213 | %glib_compile_schemas |
87553ab6 | 214 | |
215 | %files -f %{name}.lang | |
216 | %defattr(644,root,root,755) | |
217 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 218 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 219 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 220 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 221 | %attr(755,root,root) %{_libexecdir}/evinced |
cea79620 MB |
222 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* |
223 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.3 | |
224 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* | |
225 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
a96547b6 | 226 | %dir %{_libdir}/evince |
31d78cfa | 227 | %dir %{_libdir}/evince/3 |
a96547b6 PZ |
228 | %dir %{backendsdir} |
229 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
230 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
231 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
232 | %{backendsdir}/tiffdocument.evince-backend | |
1ddcfa8a MB |
233 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so |
234 | %{backendsdir}/xpsdocument.evince-backend | |
31d78cfa | 235 | %{_datadir}/GConf/gsettings/evince.convert |
dcaa156e | 236 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 237 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 238 | %{_datadir}/%{name} |
cea79620 MB |
239 | %dir %{_datadir}/thumbnailers |
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 |