1 |
%define build_dvi 1 |
2 |
|
3 |
%define major 4 |
4 |
%define major_evdocument 4 |
5 |
%define major_evview 3 |
6 |
%define api 3.0 |
7 |
%define gir_major 3.0 |
8 |
|
9 |
%define devname %mklibname -d %{name} |
10 |
%define libname_evdocument %mklibname evdocument 3 %{major_evdocument} |
11 |
%define libname_evview %mklibname evview 3 %{major_evview} |
12 |
%define girname %mklibname %{name}-gir %{gir_major} |
13 |
|
14 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
15 |
|
16 |
Summary: GNOME Document viewer |
17 |
Name: evince |
18 |
Version: 3.37.2 |
19 |
Release: %mkrel 1 |
20 |
License: GPLv2+ |
21 |
Group: Graphical desktop/GNOME |
22 |
URL: https://www.gnome.org/ |
23 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
24 |
# https://bugzilla.gnome.org/show_bug.cgi?id=766749 |
25 |
Patch0: 0001-Resolves-deb-762530-rhbz-1061177-add-man-pages.patch |
26 |
# https://bugzilla.gnome.org/show_bug.cgi?id=1692083 |
27 |
BuildRequires: pkgconfig(appstream-glib) |
28 |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
29 |
BuildRequires: pkgconfig(cairo-pdf) |
30 |
BuildRequires: pkgconfig(cairo-ps) |
31 |
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.17 |
32 |
BuildRequires: pkgconfig(gail-3.0) >= 3.8.0 |
33 |
BuildRequires: pkgconfig(gio-2.0) >= 2.36.0 |
34 |
BuildRequires: pkgconfig(adwaita-icon-theme) >= 2.17.1 |
35 |
BuildRequires: pkgconfig(gnome-keyring-1) >= 2.22.0 |
36 |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6 |
37 |
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
38 |
BuildRequires: pkgconfig(gthread-2.0) |
39 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.8.0 |
40 |
BuildRequires: pkgconfig(gtk+-unix-print-3.0) >= 3.0.2 |
41 |
BuildRequires: pkgconfig(gtk+-x11-3.0) |
42 |
BuildRequires: pkgconfig(ice) |
43 |
BuildRequires: pkgconfig(libgxps) >= 0.2.0 |
44 |
BuildRequires: pkgconfig(libnautilus-extension) >= 2.91.4 |
45 |
BuildRequires: pkgconfig(libspectre) >= 0.2.0 |
46 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
47 |
BuildRequires: pkgconfig(poppler-glib) >= 0.24.0 |
48 |
BuildRequires: pkgconfig(sm) >= 1.0.0 |
49 |
BuildRequires: pkgconfig(x11) |
50 |
BuildRequires: pkgconfig(libsecret-1) >= 0.5 |
51 |
BuildRequires: pkgconfig(libtiff-4) |
52 |
BuildRequires: pkgconfig(gspell-1) |
53 |
BuildRequires: pkgconfig(gstreamer-1.0) |
54 |
BuildRequires: pkgconfig(gstreamer-base-1.0) |
55 |
BuildRequires: pkgconfig(gstreamer-video-1.0) |
56 |
BuildRequires: pkgconfig(gnome-desktop-3.0) |
57 |
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
58 |
BuildRequires: pkgconfig(synctex) >= 1.19 |
59 |
BuildRequires: ghostscript |
60 |
BuildRequires: itstool |
61 |
BuildRequires: gnome-doc-utils |
62 |
BuildRequires: gtk-doc |
63 |
# for autoreconf(?) |
64 |
BuildRequires: gnome-common |
65 |
BuildRequires: yelp-tools |
66 |
BuildRequires: gettext-devel |
67 |
Requires: ghostscript |
68 |
Requires: ghostscript-module-X |
69 |
Requires: gsettings-desktop-schemas |
70 |
Requires: shared-mime-info |
71 |
|
72 |
%description |
73 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and |
74 |
other formats. |
75 |
|
76 |
To view .dvi files as produced by TeX in evince, install the %{name}-dvi |
77 |
package. |
78 |
|
79 |
%if %build_dvi |
80 |
%package dvi |
81 |
Summary: TeX DVI document support for evince |
82 |
Group: Graphical desktop/GNOME |
83 |
BuildRequires: pkgconfig(kpathsea) |
84 |
#gw just like xdvi, needed for rendering the fonts |
85 |
Requires: texlive |
86 |
Requires: texlive-texmf |
87 |
Requires: %{name} = %{version}-%{release} |
88 |
|
89 |
%description dvi |
90 |
This package adds support for displaying .dvi files to evince. These files are |
91 |
produced by TeX, often using a macro package like LaTeX. |
92 |
%endif |
93 |
|
94 |
%package -n %{libname_evdocument} |
95 |
Group: System/Libraries |
96 |
Summary: GNOME Document viewer library |
97 |
Obsoletes: %{mklibname %{name} 3} < 3.3.92 |
98 |
|
99 |
%description -n %{libname_evdocument} |
100 |
This is the GNOME Document viewer library, the shared parts of evince. |
101 |
|
102 |
%package -n %{libname_evview} |
103 |
Group: System/Libraries |
104 |
Summary: GNOME Document viewer library |
105 |
|
106 |
%description -n %{libname_evview} |
107 |
This is the GNOME Document viewer library, the shared parts of evince. |
108 |
|
109 |
%package -n %{devname} |
110 |
Group: Development/C |
111 |
Summary: GNOME Document viewer library |
112 |
Requires: %{libname_evdocument} = %{version}-%{release} |
113 |
Requires: %{libname_evview} = %{version}-%{release} |
114 |
Requires: %{girname} = %{version}-%{release} |
115 |
Provides: lib%{name}-devel = %{version}-%{release} |
116 |
Provides: %{name}-devel = %{version}-%{release} |
117 |
|
118 |
%description -n %{devname} |
119 |
This is the GNOME Document viewer library, the shared parts of evince. |
120 |
|
121 |
%package -n %{girname} |
122 |
Summary: GObject Introspection interface description for %{name} |
123 |
Group: System/Libraries |
124 |
Requires: %{libname_evdocument} = %{version}-%{release} |
125 |
Requires: %{libname_evview} = %{version}-%{release} |
126 |
|
127 |
%description -n %{girname} |
128 |
GObject Introspection interface description for %{name}. |
129 |
|
130 |
%prep |
131 |
%setup -q |
132 |
%autopatch -p1 |
133 |
|
134 |
%build |
135 |
autoreconf -vfi |
136 |
%configure \ |
137 |
--enable-tiff \ |
138 |
--enable-djvu \ |
139 |
--enable-comics \ |
140 |
--enable-ps \ |
141 |
%if %build_dvi |
142 |
--enable-dvi \ |
143 |
%endif |
144 |
--enable-gtk-doc \ |
145 |
--enable-introspection \ |
146 |
--enable-libgnome-desktop \ |
147 |
--enable-multimedia \ |
148 |
--disable-static \ |
149 |
--disable-schemas-compile |
150 |
%make_build |
151 |
|
152 |
%install |
153 |
%make_install |
154 |
|
155 |
%find_lang %{name} --with-gnome |
156 |
|
157 |
find %{buildroot} -name "*.la" -delete |
158 |
|
159 |
%files -f %name.lang |
160 |
%doc NEWS AUTHORS TODO |
161 |
%{_bindir}/* |
162 |
%{_datadir}/evince |
163 |
%{_datadir}/applications/* |
164 |
%{_iconsdir}/hicolor/*/apps/org.gnome.Evinc* |
165 |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
166 |
%{_datadir}/GConf/gsettings/evince.convert |
167 |
%{_mandir}/man1/evince*.1* |
168 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
169 |
%dir %{_libdir}/evince/%{major}/ |
170 |
%dir %{_libdir}/evince/%{major}/backends |
171 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
172 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
173 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
174 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
175 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
176 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
177 |
# ovitters: disabled by default upstream, follow along |
178 |
#{_libdir}/evince/%%{major}/backends/libpsdocument.so |
179 |
#{_libdir}/evince/%%{major}/backends/psdocument.evince-backend |
180 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
181 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
182 |
%{_libdir}/evince/%{major}/backends/libxpsdocument.so |
183 |
%{_libdir}/evince/%{major}/backends/xpsdocument.evince-backend |
184 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
185 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
186 |
%{_libexecdir}/evinced |
187 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
188 |
%{_datadir}/thumbnailers/evince.thumbnailer |
189 |
%{_datadir}/metainfo/org.gnome.Evince.appdata.xml |
190 |
%{_datadir}/metainfo/%{name}*.metainfo.xml |
191 |
%{_userunitdir}/org.gnome.Evince.service |
192 |
|
193 |
%if %build_dvi |
194 |
%files dvi |
195 |
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
196 |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
197 |
%endif |
198 |
|
199 |
%files -n %{libname_evdocument} |
200 |
%{_libdir}/libevdocument3.so.%{major_evdocument}{,.*} |
201 |
|
202 |
%files -n %{libname_evview} |
203 |
%{_libdir}/libevview3.so.%{major_evview}{,.*} |
204 |
|
205 |
%files -n %{girname} |
206 |
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
207 |
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
208 |
|
209 |
%files -n %{devname} |
210 |
%doc ChangeLog |
211 |
%{_datadir}/gtk-doc/html/evince |
212 |
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
213 |
%{_datadir}/gtk-doc/html/libevview-%{api} |
214 |
%{_libdir}/libevdocument3.so |
215 |
%{_libdir}/libevview3.so |
216 |
%{_libdir}/pkgconfig/evince*pc |
217 |
%{_includedir}/evince* |
218 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
219 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |