1 |
cjw |
119125 |
%define build_dvi 1 |
2 |
pterjan |
35314 |
|
3 |
juancho |
260677 |
%define major 4 |
4 |
|
|
%define major_evdocument 4 |
5 |
ovitters |
225747 |
%define major_evview 3 |
6 |
ovitters |
1710667 |
%define api 3.0 |
7 |
ovitters |
1710666 |
%define gir_major 3.0 |
8 |
ovitters |
225667 |
|
9 |
ovitters |
225747 |
%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 |
ovitters |
225667 |
|
14 |
ovitters |
1609523 |
%define backendsname %mklibname %{name}-backends %{major} |
15 |
|
|
|
16 |
ovitters |
1709358 |
%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 |
wally |
155852 |
|
18 |
tv |
1794465 |
%global libarchive_version 3.6.0 |
19 |
tv |
1992500 |
%global poppler_version 22.05.0 |
20 |
tv |
1794465 |
|
21 |
|
|
%global tarball_version %%(echo %{version} | tr '~' '.') |
22 |
|
|
|
23 |
wally |
114165 |
Summary: GNOME Document viewer |
24 |
|
|
Name: evince |
25 |
daviddavid |
2050528 |
Version: 46.0 |
26 |
tmb |
1953866 |
Release: %mkrel 1 |
27 |
vaci0 |
338403 |
License: GPLv2+ |
28 |
wally |
114165 |
Group: Graphical desktop/GNOME |
29 |
danf |
1563597 |
URL: https://www.gnome.org/ |
30 |
tv |
1794465 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{tarball_version}.tar.xz |
31 |
daviddavid |
1372765 |
BuildRequires: pkgconfig(appstream-glib) |
32 |
ovitters |
149358 |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
33 |
|
|
BuildRequires: pkgconfig(cairo-pdf) |
34 |
|
|
BuildRequires: pkgconfig(cairo-ps) |
35 |
|
|
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.17 |
36 |
fwang |
468995 |
BuildRequires: pkgconfig(gail-3.0) >= 3.8.0 |
37 |
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.36.0 |
38 |
wally |
619792 |
BuildRequires: pkgconfig(adwaita-icon-theme) >= 2.17.1 |
39 |
tv |
1794465 |
BuildRequires: pkgconfig(dbus-1) |
40 |
ovitters |
149358 |
BuildRequires: pkgconfig(gnome-keyring-1) >= 2.22.0 |
41 |
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6 |
42 |
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
43 |
|
|
BuildRequires: pkgconfig(gthread-2.0) |
44 |
fwang |
468995 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.8.0 |
45 |
ovitters |
149358 |
BuildRequires: pkgconfig(gtk+-unix-print-3.0) >= 3.0.2 |
46 |
|
|
BuildRequires: pkgconfig(gtk+-x11-3.0) |
47 |
|
|
BuildRequires: pkgconfig(ice) |
48 |
fwang |
171133 |
BuildRequires: pkgconfig(libgxps) >= 0.2.0 |
49 |
tv |
1891067 |
%if 0 |
50 |
ovitters |
149358 |
BuildRequires: pkgconfig(libnautilus-extension) >= 2.91.4 |
51 |
tv |
1891067 |
%endif |
52 |
ovitters |
149358 |
BuildRequires: pkgconfig(libspectre) >= 0.2.0 |
53 |
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
54 |
tv |
1794465 |
BuildRequires: pkgconfig(libarchive) >= %{libarchive_version} |
55 |
ovitters |
1710455 |
BuildRequires: pkgconfig(libhandy-1) |
56 |
tv |
1794465 |
BuildRequires: pkgconfig(poppler-glib) >= %{poppler_version} |
57 |
ovitters |
149358 |
BuildRequires: pkgconfig(sm) >= 1.0.0 |
58 |
|
|
BuildRequires: pkgconfig(x11) |
59 |
fwang |
468995 |
BuildRequires: pkgconfig(libsecret-1) >= 0.5 |
60 |
ovitters |
642468 |
BuildRequires: pkgconfig(libtiff-4) |
61 |
guillomovitch |
1244697 |
BuildRequires: pkgconfig(gspell-1) |
62 |
ovitters |
1255028 |
BuildRequires: pkgconfig(gstreamer-1.0) |
63 |
|
|
BuildRequires: pkgconfig(gstreamer-base-1.0) |
64 |
|
|
BuildRequires: pkgconfig(gstreamer-video-1.0) |
65 |
ovitters |
1255029 |
BuildRequires: pkgconfig(gnome-desktop-3.0) |
66 |
|
|
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
67 |
daviddavid |
1372900 |
BuildRequires: pkgconfig(synctex) >= 1.19 |
68 |
wally |
114165 |
BuildRequires: ghostscript |
69 |
tv |
282899 |
BuildRequires: itstool |
70 |
wally |
114165 |
BuildRequires: gnome-doc-utils |
71 |
tv |
1794465 |
BuildRequires: gi-docgen |
72 |
daviddavid |
1592464 |
BuildRequires: meson |
73 |
wally |
619825 |
BuildRequires: yelp-tools |
74 |
daviddavid |
1372764 |
BuildRequires: gettext-devel |
75 |
wally |
184547 |
Requires: ghostscript |
76 |
|
|
Requires: ghostscript-module-X |
77 |
wally |
449921 |
Requires: gsettings-desktop-schemas |
78 |
vaci0 |
611251 |
Requires: shared-mime-info |
79 |
pterjan |
35314 |
|
80 |
|
|
%description |
81 |
vaci0 |
338403 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and |
82 |
|
|
other formats. |
83 |
pterjan |
35314 |
|
84 |
wally |
449921 |
To view .dvi files as produced by TeX in evince, install the %{name}-dvi |
85 |
|
|
package. |
86 |
|
|
|
87 |
ovitters |
1609523 |
%package -n %backendsname |
88 |
|
|
Summary: Common backends files for %name |
89 |
|
|
Group: Graphical desktop/GNOME |
90 |
wally |
1670045 |
Conflicts: evince < 3.37.3-2 |
91 |
ovitters |
1609523 |
|
92 |
|
|
%description -n %backendsname |
93 |
|
|
This package contains the common backends. |
94 |
|
|
|
95 |
cjw |
119125 |
%if %build_dvi |
96 |
|
|
%package dvi |
97 |
|
|
Summary: TeX DVI document support for evince |
98 |
|
|
Group: Graphical desktop/GNOME |
99 |
ovitters |
1095638 |
BuildRequires: pkgconfig(kpathsea) |
100 |
cjw |
119125 |
#gw just like xdvi, needed for rendering the fonts |
101 |
|
|
Requires: texlive |
102 |
|
|
Requires: texlive-texmf |
103 |
|
|
Requires: %{name} = %{version}-%{release} |
104 |
wally |
1670045 |
Conflicts: evince < 3.37.3-2 |
105 |
cjw |
119125 |
|
106 |
|
|
%description dvi |
107 |
wally |
449921 |
This package adds support for displaying .dvi files to evince. These files are |
108 |
cjw |
119125 |
produced by TeX, often using a macro package like LaTeX. |
109 |
|
|
%endif |
110 |
|
|
|
111 |
ovitters |
225747 |
%package -n %{libname_evdocument} |
112 |
wally |
114165 |
Group: System/Libraries |
113 |
|
|
Summary: GNOME Document viewer library |
114 |
ovitters |
225752 |
Obsoletes: %{mklibname %{name} 3} < 3.3.92 |
115 |
ovitters |
1609523 |
Requires: %backendsname = %{version}-%{release} |
116 |
pterjan |
35314 |
|
117 |
ovitters |
225747 |
%description -n %{libname_evdocument} |
118 |
pterjan |
35314 |
This is the GNOME Document viewer library, the shared parts of evince. |
119 |
|
|
|
120 |
ovitters |
225667 |
%package -n %{libname_evview} |
121 |
|
|
Group: System/Libraries |
122 |
|
|
Summary: GNOME Document viewer library |
123 |
ovitters |
1609523 |
Requires: %backendsname = %{version}-%{release} |
124 |
ovitters |
225667 |
|
125 |
|
|
%description -n %{libname_evview} |
126 |
|
|
This is the GNOME Document viewer library, the shared parts of evince. |
127 |
|
|
|
128 |
wally |
114165 |
%package -n %{devname} |
129 |
|
|
Group: Development/C |
130 |
|
|
Summary: GNOME Document viewer library |
131 |
ovitters |
225747 |
Requires: %{libname_evdocument} = %{version}-%{release} |
132 |
ovitters |
225667 |
Requires: %{libname_evview} = %{version}-%{release} |
133 |
wally |
847170 |
Requires: %{girname} = %{version}-%{release} |
134 |
wally |
114165 |
Provides: lib%{name}-devel = %{version}-%{release} |
135 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
136 |
pterjan |
35314 |
|
137 |
wally |
114165 |
%description -n %{devname} |
138 |
pterjan |
35314 |
This is the GNOME Document viewer library, the shared parts of evince. |
139 |
|
|
|
140 |
wally |
114165 |
%package -n %{girname} |
141 |
|
|
Summary: GObject Introspection interface description for %{name} |
142 |
|
|
Group: System/Libraries |
143 |
ovitters |
225747 |
Requires: %{libname_evdocument} = %{version}-%{release} |
144 |
ovitters |
225667 |
Requires: %{libname_evview} = %{version}-%{release} |
145 |
wally |
114165 |
|
146 |
|
|
%description -n %{girname} |
147 |
|
|
GObject Introspection interface description for %{name}. |
148 |
|
|
|
149 |
pterjan |
35314 |
%prep |
150 |
tv |
1794465 |
%autosetup -p1 -n %{name}-%{tarball_version} |
151 |
pterjan |
35314 |
|
152 |
|
|
%build |
153 |
daviddavid |
1592464 |
%meson \ |
154 |
|
|
-Dtiff=enabled \ |
155 |
|
|
-Ddjvu=enabled \ |
156 |
|
|
-Dcomics=enabled \ |
157 |
tv |
1891067 |
-Dnautilus=false \ |
158 |
daviddavid |
1592486 |
-Dps=enabled \ |
159 |
pterjan |
35314 |
%if %build_dvi |
160 |
daviddavid |
1592464 |
-Ddvi=enabled \ |
161 |
pterjan |
35314 |
%endif |
162 |
daviddavid |
1592465 |
-Dgtk_doc=true \ |
163 |
|
|
-Dintrospection=true \ |
164 |
daviddavid |
1592464 |
-Dmultimedia=enabled |
165 |
pterjan |
35314 |
|
166 |
daviddavid |
1592464 |
%meson_build |
167 |
|
|
|
168 |
pterjan |
35314 |
%install |
169 |
daviddavid |
1592464 |
%meson_install |
170 |
pterjan |
35314 |
|
171 |
ovitters |
1143245 |
%find_lang %{name} --with-gnome |
172 |
pterjan |
35314 |
|
173 |
tv |
1768135 |
rm -f $RPM_BUILD_ROOT%{_datadir}/metainfo/evince-pdfdocument.metainfo.xml |
174 |
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/metainfo/evince-psdocument.metainfo.xml |
175 |
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/metainfo/evince-tiffdocument.metainfo.xml |
176 |
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/metainfo/evince-comicsdocument.metainfo.xml |
177 |
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/metainfo/evince-xpsdocument.metainfo.xml |
178 |
|
|
|
179 |
fwang |
136165 |
%files -f %name.lang |
180 |
daviddavid |
1592488 |
%doc NEWS AUTHORS TODO README.md |
181 |
pterjan |
35314 |
%{_bindir}/* |
182 |
|
|
%{_datadir}/evince |
183 |
|
|
%{_datadir}/applications/* |
184 |
daviddavid |
1372764 |
%{_iconsdir}/hicolor/*/apps/org.gnome.Evinc* |
185 |
cjw |
113251 |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
186 |
daviddavid |
1397658 |
%{_mandir}/man1/evince*.1* |
187 |
tv |
1891067 |
%if 0 |
188 |
cjw |
113251 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
189 |
tv |
1891067 |
%endif |
190 |
ovitters |
1609523 |
%{_libexecdir}/evinced |
191 |
|
|
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
192 |
|
|
%{_datadir}/thumbnailers/evince.thumbnailer |
193 |
tv |
1992500 |
%{_metainfodir}/org.gnome.Evince.metainfo.xml |
194 |
ovitters |
1609523 |
%{_userunitdir}/org.gnome.Evince.service |
195 |
|
|
|
196 |
|
|
%files -n %backendsname |
197 |
cjw |
113251 |
%dir %{_libdir}/evince/%{major}/ |
198 |
|
|
%dir %{_libdir}/evince/%{major}/backends |
199 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
200 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
201 |
ovitters |
1609523 |
|
202 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
203 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
204 |
ovitters |
1609523 |
%{_datadir}/metainfo/evince-djvudocument.metainfo.xml |
205 |
|
|
|
206 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
207 |
tv |
1768153 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
208 |
|
|
|
209 |
|
|
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
210 |
|
|
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
211 |
|
|
|
212 |
|
|
%{_libdir}/evince/%{major}/backends/libxpsdocument.so |
213 |
tv |
1768143 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
214 |
fwang |
171136 |
%{_libdir}/evince/%{major}/backends/xpsdocument.evince-backend |
215 |
ovitters |
1609523 |
|
216 |
guillomovitch |
1552029 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
217 |
|
|
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
218 |
pterjan |
35314 |
|
219 |
cjw |
119125 |
%if %build_dvi |
220 |
|
|
%files dvi |
221 |
|
|
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
222 |
|
|
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
223 |
ovitters |
1609523 |
%{_datadir}/metainfo/evince-dvidocument.metainfo.xml |
224 |
cjw |
119125 |
%endif |
225 |
|
|
|
226 |
ovitters |
225747 |
%files -n %{libname_evdocument} |
227 |
ovitters |
874264 |
%{_libdir}/libevdocument3.so.%{major_evdocument}{,.*} |
228 |
pterjan |
35314 |
|
229 |
ovitters |
225667 |
%files -n %{libname_evview} |
230 |
ovitters |
874264 |
%{_libdir}/libevview3.so.%{major_evview}{,.*} |
231 |
ovitters |
225667 |
|
232 |
wally |
114165 |
%files -n %{girname} |
233 |
|
|
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
234 |
|
|
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
235 |
|
|
|
236 |
|
|
%files -n %{devname} |
237 |
daviddavid |
1592488 |
%doc MAINTAINERS |
238 |
tv |
1801517 |
#{_datadir}/doc/evince-libs |
239 |
tv |
1794465 |
%{_datadir}/doc/libevview |
240 |
|
|
%{_datadir}/doc/libevdocument |
241 |
cjw |
113251 |
%{_libdir}/libevdocument3.so |
242 |
|
|
%{_libdir}/libevview3.so |
243 |
|
|
%{_libdir}/pkgconfig/evince*pc |
244 |
|
|
%{_includedir}/evince* |
245 |
wally |
114165 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
246 |
|
|
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |