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