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