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: 40.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(libhandy-1) |
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 |
BuildRequires: meson |
64 |
BuildRequires: yelp-tools |
65 |
BuildRequires: gettext-devel |
66 |
Requires: ghostscript |
67 |
Requires: ghostscript-module-X |
68 |
Requires: gsettings-desktop-schemas |
69 |
Requires: shared-mime-info |
70 |
|
71 |
%description |
72 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and |
73 |
other formats. |
74 |
|
75 |
To view .dvi files as produced by TeX in evince, install the %{name}-dvi |
76 |
package. |
77 |
|
78 |
%package -n %backendsname |
79 |
Summary: Common backends files for %name |
80 |
Group: Graphical desktop/GNOME |
81 |
Conflicts: evince < 3.37.3-2 |
82 |
|
83 |
%description -n %backendsname |
84 |
This package contains the common backends. |
85 |
|
86 |
%if %build_dvi |
87 |
%package dvi |
88 |
Summary: TeX DVI document support for evince |
89 |
Group: Graphical desktop/GNOME |
90 |
BuildRequires: pkgconfig(kpathsea) |
91 |
#gw just like xdvi, needed for rendering the fonts |
92 |
Requires: texlive |
93 |
Requires: texlive-texmf |
94 |
Requires: %{name} = %{version}-%{release} |
95 |
Conflicts: evince < 3.37.3-2 |
96 |
|
97 |
%description dvi |
98 |
This package adds support for displaying .dvi files to evince. These files are |
99 |
produced by TeX, often using a macro package like LaTeX. |
100 |
%endif |
101 |
|
102 |
%package -n %{libname_evdocument} |
103 |
Group: System/Libraries |
104 |
Summary: GNOME Document viewer library |
105 |
Obsoletes: %{mklibname %{name} 3} < 3.3.92 |
106 |
Requires: %backendsname = %{version}-%{release} |
107 |
|
108 |
%description -n %{libname_evdocument} |
109 |
This is the GNOME Document viewer library, the shared parts of evince. |
110 |
|
111 |
%package -n %{libname_evview} |
112 |
Group: System/Libraries |
113 |
Summary: GNOME Document viewer library |
114 |
Requires: %backendsname = %{version}-%{release} |
115 |
|
116 |
%description -n %{libname_evview} |
117 |
This is the GNOME Document viewer library, the shared parts of evince. |
118 |
|
119 |
%package -n %{devname} |
120 |
Group: Development/C |
121 |
Summary: GNOME Document viewer library |
122 |
Requires: %{libname_evdocument} = %{version}-%{release} |
123 |
Requires: %{libname_evview} = %{version}-%{release} |
124 |
Requires: %{girname} = %{version}-%{release} |
125 |
Provides: lib%{name}-devel = %{version}-%{release} |
126 |
Provides: %{name}-devel = %{version}-%{release} |
127 |
|
128 |
%description -n %{devname} |
129 |
This is the GNOME Document viewer library, the shared parts of evince. |
130 |
|
131 |
%package -n %{girname} |
132 |
Summary: GObject Introspection interface description for %{name} |
133 |
Group: System/Libraries |
134 |
Requires: %{libname_evdocument} = %{version}-%{release} |
135 |
Requires: %{libname_evview} = %{version}-%{release} |
136 |
|
137 |
%description -n %{girname} |
138 |
GObject Introspection interface description for %{name}. |
139 |
|
140 |
%prep |
141 |
%autosetup -p1 |
142 |
|
143 |
%build |
144 |
%meson \ |
145 |
-Dtiff=enabled \ |
146 |
-Ddjvu=enabled \ |
147 |
-Dcomics=enabled \ |
148 |
-Dps=enabled \ |
149 |
%if %build_dvi |
150 |
-Ddvi=enabled \ |
151 |
%endif |
152 |
-Dt1lib=disabled \ |
153 |
-Dgtk_doc=true \ |
154 |
-Dintrospection=true \ |
155 |
-Dmultimedia=enabled |
156 |
|
157 |
%meson_build |
158 |
|
159 |
%install |
160 |
%meson_install |
161 |
|
162 |
%find_lang %{name} --with-gnome |
163 |
|
164 |
%files -f %name.lang |
165 |
%doc NEWS AUTHORS TODO README.md |
166 |
%{_bindir}/* |
167 |
%{_datadir}/evince |
168 |
%{_datadir}/applications/* |
169 |
%{_iconsdir}/hicolor/*/apps/org.gnome.Evinc* |
170 |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
171 |
%{_datadir}/GConf/gsettings/evince.convert |
172 |
%{_mandir}/man1/evince*.1* |
173 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
174 |
%{_libexecdir}/evinced |
175 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
176 |
%{_datadir}/thumbnailers/evince.thumbnailer |
177 |
%{_datadir}/metainfo/org.gnome.Evince.appdata.xml |
178 |
%{_userunitdir}/org.gnome.Evince.service |
179 |
|
180 |
%files -n %backendsname |
181 |
%dir %{_libdir}/evince/%{major}/ |
182 |
%dir %{_libdir}/evince/%{major}/backends |
183 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
184 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
185 |
%{_datadir}/metainfo/evince-comicsdocument.metainfo.xml |
186 |
|
187 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
188 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
189 |
%{_datadir}/metainfo/evince-djvudocument.metainfo.xml |
190 |
|
191 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
192 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
193 |
%{_datadir}/metainfo/evince-pdfdocument.metainfo.xml |
194 |
|
195 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
196 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
197 |
%{_datadir}/metainfo/evince-tiffdocument.metainfo.xml |
198 |
|
199 |
%{_libdir}/evince/%{major}/backends/libxpsdocument.so |
200 |
%{_libdir}/evince/%{major}/backends/xpsdocument.evince-backend |
201 |
%{_datadir}/metainfo/evince-xpsdocument.metainfo.xml |
202 |
|
203 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
204 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
205 |
%{_datadir}/metainfo/evince-psdocument.metainfo.xml |
206 |
|
207 |
%if %build_dvi |
208 |
%files dvi |
209 |
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
210 |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
211 |
%{_datadir}/metainfo/evince-dvidocument.metainfo.xml |
212 |
%endif |
213 |
|
214 |
%files -n %{libname_evdocument} |
215 |
%{_libdir}/libevdocument3.so.%{major_evdocument}{,.*} |
216 |
|
217 |
%files -n %{libname_evview} |
218 |
%{_libdir}/libevview3.so.%{major_evview}{,.*} |
219 |
|
220 |
%files -n %{girname} |
221 |
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
222 |
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
223 |
|
224 |
%files -n %{devname} |
225 |
%doc MAINTAINERS |
226 |
%{_datadir}/gtk-doc/html/evince |
227 |
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
228 |
%{_datadir}/gtk-doc/html/libevview-%{api} |
229 |
%{_libdir}/libevdocument3.so |
230 |
%{_libdir}/libevview3.so |
231 |
%{_libdir}/pkgconfig/evince*pc |
232 |
%{_includedir}/evince* |
233 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
234 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |