]>
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 |
51eb627d | 13 | Version: 3.10.3 |
c252a4a2 | 14 | Release: 1 |
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 |
cea79620 MB |
30 | BuildRequires: gobject-introspection-devel >= 0.6.0 |
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 |
15fe3a37 | 40 | BuildRequires: libtool >= 2.2 |
a96547b6 | 41 | BuildRequires: libxml2-devel >= 1:2.6.31 |
cea79620 | 42 | BuildRequires: nautilus-devel >= 3.0.0 |
184cd39f | 43 | BuildRequires: pkgconfig |
e51dfc19 | 44 | BuildRequires: poppler-glib-devel >= 0.24.0 |
16b45cd3 | 45 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
d46abe04 | 46 | BuildRequires: rpmbuild(macros) >= 1.592 |
a96547b6 | 47 | BuildRequires: t1lib-devel |
a9811523 | 48 | BuildRequires: tar >= 1:1.22 |
cea79620 | 49 | BuildRequires: xorg-lib-libICE-devel |
ef82865f | 50 | BuildRequires: xorg-lib-libSM-devel |
a9811523 | 51 | BuildRequires: xz |
1380699d | 52 | BuildRequires: yelp-tools |
9b07dbc7 | 53 | BuildRequires: zlib-devel |
12600ecc | 54 | Requires(post,postun): desktop-file-utils |
e51dfc19 | 55 | Requires(post,postun): glib2 >= 1:2.36.0 |
31d78cfa | 56 | Requires: dconf |
e51dfc19 | 57 | Requires: glib2 >= 1:2.36.0 |
a9811523 | 58 | Requires: gnome-icon-theme >= 3.2.0 |
cea79620 | 59 | Requires: gsettings-desktop-schemas |
e51dfc19 | 60 | Requires: gtk+3 >= 3.8.0 |
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 | ||
c252a4a2 | 73 | %define backendsdir %{_libdir}/evince/4/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} |
e51dfc19 | 92 | Requires: gtk+3-devel >= 3.8.0 |
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} |
1380699d | 146 | Requires: poppler-glib >= 0.20.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 |
58684a44 | 162 | |
87553ab6 | 163 | %build |
08c6a467 | 164 | %{__gtkdocize} |
a0ff1688 | 165 | %{__intltoolize} |
a96547b6 | 166 | %{__libtoolize} |
08c6a467 | 167 | %{__aclocal} -I m4 |
f8be43cb AF |
168 | %{__autoconf} |
169 | %{__autoheader} | |
170 | %{__automake} | |
87553ab6 | 171 | %configure \ |
709db607 | 172 | %{?with_apidocs:--enable-gtk-doc} \ |
dfd5b6aa | 173 | --disable-static \ |
dcaa156e | 174 | --disable-silent-rules \ |
a0ff1688 | 175 | --enable-comics \ |
72e9e2b8 | 176 | --enable-djvu \ |
a5a87d5b | 177 | --enable-dvi \ |
97f25a2f | 178 | --enable-introspection \ |
a96547b6 | 179 | --enable-t1lib \ |
a5a87d5b | 180 | --enable-nautilus \ |
a96547b6 | 181 | --enable-pdf \ |
a0ff1688 | 182 | --enable-tiff \ |
cea79620 | 183 | --with-smclient=xsmp \ |
23544f41 | 184 | --with-html-dir=%{_gtkdocdir} |
87553ab6 | 185 | %{__make} |
186 | ||
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %{__make} install \ | |
a96547b6 | 191 | DESTDIR=$RPM_BUILD_ROOT |
87553ab6 | 192 | |
cea79620 MB |
193 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
194 | %{__rm} $RPM_BUILD_ROOT%{backendsdir}/*.la | |
195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la | |
87553ab6 | 196 | |
15fe3a37 | 197 | %find_lang %{name} --with-gnome |
87553ab6 | 198 | |
199 | %clean | |
200 | rm -rf $RPM_BUILD_ROOT | |
201 | ||
202 | %post | |
a96547b6 | 203 | /sbin/ldconfig |
4685de83 | 204 | %update_desktop_database_post |
a0ff1688 | 205 | %update_icon_cache hicolor |
d46abe04 | 206 | %glib_compile_schemas |
12600ecc | 207 | |
87553ab6 | 208 | %postun |
a96547b6 | 209 | /sbin/ldconfig |
4685de83 | 210 | %update_desktop_database_postun |
a0ff1688 | 211 | %update_icon_cache hicolor |
d46abe04 | 212 | %glib_compile_schemas |
87553ab6 | 213 | |
214 | %files -f %{name}.lang | |
215 | %defattr(644,root,root,755) | |
216 | %doc AUTHORS ChangeLog NEWS README TODO | |
a96547b6 | 217 | %attr(755,root,root) %{_bindir}/evince |
08c6a467 | 218 | %attr(755,root,root) %{_bindir}/evince-previewer |
a96547b6 | 219 | %attr(755,root,root) %{_bindir}/evince-thumbnailer |
97f25a2f | 220 | %attr(755,root,root) %{_libexecdir}/evinced |
cea79620 | 221 | %attr(755,root,root) %{_libdir}/libevdocument3.so.*.*.* |
c252a4a2 | 222 | %attr(755,root,root) %ghost %{_libdir}/libevdocument3.so.4 |
cea79620 MB |
223 | %attr(755,root,root) %{_libdir}/libevview3.so.*.*.* |
224 | %attr(755,root,root) %ghost %{_libdir}/libevview3.so.3 | |
a96547b6 | 225 | %dir %{_libdir}/evince |
c252a4a2 | 226 | %dir %{_libdir}/evince/4 |
a96547b6 PZ |
227 | %dir %{backendsdir} |
228 | %attr(755,root,root) %{backendsdir}/libcomicsdocument.so | |
229 | %{backendsdir}/comicsdocument.evince-backend | |
a96547b6 PZ |
230 | %attr(755,root,root) %{backendsdir}/libtiffdocument.so |
231 | %{backendsdir}/tiffdocument.evince-backend | |
1ddcfa8a MB |
232 | %attr(755,root,root) %{backendsdir}/libxpsdocument.so |
233 | %{backendsdir}/xpsdocument.evince-backend | |
31d78cfa | 234 | %{_datadir}/GConf/gsettings/evince.convert |
dcaa156e | 235 | %{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
31d78cfa | 236 | %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
87553ab6 | 237 | %{_datadir}/%{name} |
cea79620 | 238 | %{_datadir}/thumbnailers/evince.thumbnailer |
a96547b6 PZ |
239 | %{_mandir}/man1/evince.1* |
240 | %{_desktopdir}/evince.desktop | |
15fe3a37 | 241 | %{_desktopdir}/evince-previewer.desktop |
a96547b6 | 242 | %{_iconsdir}/hicolor/*/*/*.png |
97f25a2f | 243 | %{_libdir}/girepository-1.0/*.typelib |
dfd5b6aa | 244 | |
c4d5ca9c ZU |
245 | %files backend-djvu |
246 | %defattr(644,root,root,755) | |
9b4f4918 | 247 | %attr(755,root,root) %{backendsdir}/libdjvudocument.so |
c4d5ca9c | 248 | %{backendsdir}/djvudocument.evince-backend |
c4d5ca9c | 249 | |
ab458ef2 | 250 | %files backend-dvi |
c4d5ca9c | 251 | %defattr(644,root,root,755) |
9b4f4918 | 252 | %attr(755,root,root) %{backendsdir}/libdvidocument.so |
ab458ef2 | 253 | %{backendsdir}/dvidocument.evince-backend |
ab458ef2 | 254 | |
c4d5ca9c ZU |
255 | %files backend-ps |
256 | %defattr(644,root,root,755) | |
257 | %attr(755,root,root) %{backendsdir}/libpsdocument.so | |
258 | %{backendsdir}/psdocument.evince-backend | |
ab458ef2 ZU |
259 | |
260 | %files backend-pdf | |
c4d5ca9c | 261 | %defattr(644,root,root,755) |
9b4f4918 | 262 | %attr(755,root,root) %{backendsdir}/libpdfdocument.so |
ab458ef2 ZU |
263 | %{backendsdir}/pdfdocument.evince-backend |
264 | ||
a96547b6 | 265 | %files devel |
dfd5b6aa | 266 | %defattr(644,root,root,755) |
cea79620 MB |
267 | %attr(755,root,root) %{_libdir}/libevdocument3.so |
268 | %attr(755,root,root) %{_libdir}/libevview3.so | |
ef82865f MB |
269 | %{_includedir}/evince |
270 | %{_pkgconfigdir}/evince-document-*.pc | |
271 | %{_pkgconfigdir}/evince-view-*.pc | |
97f25a2f | 272 | %{_datadir}/gir-1.0/*.gir |
23544f41 | 273 | |
274 | %if %{with apidocs} | |
275 | %files apidocs | |
276 | %defattr(644,root,root,755) | |
a96547b6 | 277 | %{_gtkdocdir}/evince |
dcaa156e MB |
278 | %{_gtkdocdir}/libevdocument-* |
279 | %{_gtkdocdir}/libevview-* | |
23544f41 | 280 | %endif |
a96547b6 PZ |
281 | |
282 | %files -n nautilus-extension-evince | |
283 | %defattr(644,root,root,755) | |
cea79620 | 284 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so |