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.9.4 |
19 |
Release: %mkrel 1 |
20 |
License: GPLv2+ |
21 |
Group: Graphical desktop/GNOME |
22 |
URL: http://www.gnome.org |
23 |
Source0: http://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.0.2 |
29 |
BuildRequires: pkgconfig(gio-2.0) >= 2.31.0 |
30 |
BuildRequires: pkgconfig(gnome-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.0.2 |
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.18.0 |
44 |
BuildRequires: pkgconfig(sm) >= 1.0.0 |
45 |
BuildRequires: pkgconfig(x11) |
46 |
BuildRequires: pkgconfig(libsecret-1) |
47 |
BuildRequires: tiff-devel |
48 |
BuildRequires: ghostscript |
49 |
BuildRequires: intltool |
50 |
BuildRequires: itstool |
51 |
BuildRequires: gnome-doc-utils |
52 |
BuildRequires: gnome-icon-theme |
53 |
BuildRequires: gtk-doc |
54 |
Requires: ghostscript |
55 |
Requires: ghostscript-module-X |
56 |
Requires: gsettings-desktop-schemas |
57 |
|
58 |
%description |
59 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and |
60 |
other formats. |
61 |
|
62 |
To view .dvi files as produced by TeX in evince, install the %{name}-dvi |
63 |
package. |
64 |
|
65 |
%if %build_dvi |
66 |
%package dvi |
67 |
Summary: TeX DVI document support for evince |
68 |
Group: Graphical desktop/GNOME |
69 |
BuildRequires: kpathsea-devel |
70 |
#gw just like xdvi, needed for rendering the fonts |
71 |
Requires: texlive |
72 |
Requires: texlive-texmf |
73 |
Requires: %{name} = %{version}-%{release} |
74 |
|
75 |
%description dvi |
76 |
This package adds support for displaying .dvi files to evince. These files are |
77 |
produced by TeX, often using a macro package like LaTeX. |
78 |
%endif |
79 |
|
80 |
%package -n %{libname_evdocument} |
81 |
Group: System/Libraries |
82 |
Summary: GNOME Document viewer library |
83 |
Obsoletes: %{mklibname %{name} 3} < 3.3.92 |
84 |
|
85 |
%description -n %{libname_evdocument} |
86 |
This is the GNOME Document viewer library, the shared parts of evince. |
87 |
|
88 |
%package -n %{libname_evview} |
89 |
Group: System/Libraries |
90 |
Summary: GNOME Document viewer library |
91 |
|
92 |
%description -n %{libname_evview} |
93 |
This is the GNOME Document viewer library, the shared parts of evince. |
94 |
|
95 |
%package -n %{devname} |
96 |
Group: Development/C |
97 |
Summary: GNOME Document viewer library |
98 |
Requires: %{libname_evdocument} = %{version}-%{release} |
99 |
Requires: %{libname_evview} = %{version}-%{release} |
100 |
Provides: lib%{name}-devel = %{version}-%{release} |
101 |
Provides: %{name}-devel = %{version}-%{release} |
102 |
|
103 |
%description -n %{devname} |
104 |
This is the GNOME Document viewer library, the shared parts of evince. |
105 |
|
106 |
%package -n %{girname} |
107 |
Summary: GObject Introspection interface description for %{name} |
108 |
Group: System/Libraries |
109 |
Requires: %{libname_evdocument} = %{version}-%{release} |
110 |
Requires: %{libname_evview} = %{version}-%{release} |
111 |
|
112 |
%description -n %{girname} |
113 |
GObject Introspection interface description for %{name}. |
114 |
|
115 |
%prep |
116 |
%setup -q |
117 |
|
118 |
%build |
119 |
%configure2_5x \ |
120 |
--enable-tiff \ |
121 |
--enable-djvu \ |
122 |
--enable-comics \ |
123 |
%if %build_dvi |
124 |
--enable-dvi \ |
125 |
%endif |
126 |
--disable-gtk-doc \ |
127 |
--enable-introspection \ |
128 |
--disable-static \ |
129 |
--disable-scrollkeeper \ |
130 |
--disable-schemas-compile |
131 |
%make |
132 |
|
133 |
%install |
134 |
%makeinstall_std |
135 |
|
136 |
%find_lang %{name} --with-gnome --with-help |
137 |
|
138 |
find %{buildroot} -name "*.la" -delete |
139 |
|
140 |
%files -f %name.lang |
141 |
%doc NEWS AUTHORS TODO |
142 |
%{_bindir}/* |
143 |
%{_datadir}/evince |
144 |
%{_datadir}/applications/* |
145 |
%{_datadir}/icons/hicolor/*/apps/evince* |
146 |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
147 |
%{_datadir}/GConf/gsettings/evince.convert |
148 |
%{_mandir}/man1/evince.1* |
149 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
150 |
%dir %{_libdir}/evince/%{major}/ |
151 |
%dir %{_libdir}/evince/%{major}/backends |
152 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
153 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
154 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
155 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
156 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
157 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
158 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
159 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
160 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
161 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
162 |
%{_libdir}/evince/%{major}/backends/libxpsdocument.so |
163 |
%{_libdir}/evince/%{major}/backends/xpsdocument.evince-backend |
164 |
%{_libexecdir}/evinced |
165 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
166 |
%{_datadir}/thumbnailers/evince.thumbnailer |
167 |
|
168 |
%if %build_dvi |
169 |
%files dvi |
170 |
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
171 |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
172 |
%endif |
173 |
|
174 |
%files -n %{libname_evdocument} |
175 |
%{_libdir}/libevdocument3.so.%{major_evdocument}* |
176 |
|
177 |
%files -n %{libname_evview} |
178 |
%{_libdir}/libevview3.so.%{major_evview}* |
179 |
|
180 |
%files -n %{girname} |
181 |
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
182 |
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
183 |
|
184 |
%files -n %{devname} |
185 |
%doc ChangeLog |
186 |
%{_datadir}/gtk-doc/html/evince |
187 |
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
188 |
%{_datadir}/gtk-doc/html/libevview-%{api} |
189 |
%{_libdir}/libevdocument3.so |
190 |
%{_libdir}/libevview3.so |
191 |
%{_libdir}/pkgconfig/evince*pc |
192 |
%{_includedir}/evince* |
193 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
194 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |