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