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