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