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