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