1 |
%define build_dvi 1 |
2 |
|
3 |
%define major 3 |
4 |
%define api 3.0 |
5 |
%define gir_major 3.0 |
6 |
%define libname %mklibname %{name} %{major} |
7 |
%define devname %mklibname -d %{name} |
8 |
%define girname %mklibname %{name}-gir %{gir_major} |
9 |
|
10 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
11 |
|
12 |
Summary: GNOME Document viewer |
13 |
Name: evince |
14 |
Version: 3.3.3 |
15 |
Release: %mkrel 1 |
16 |
License: GPLv2+ and GFDL+ |
17 |
Group: Graphical desktop/GNOME |
18 |
URL: http://www.gnome.org |
19 |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
20 |
Patch0: evince-3.3.3-linkage.patch |
21 |
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 |
BuildRequires: pkgconfig(gio-2.0) >= 2.31.0 |
27 |
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 |
BuildRequires: pkgconfig(libgxps) >= 0.2.0 |
37 |
BuildRequires: pkgconfig(libnautilus-extension) >= 2.91.4 |
38 |
BuildRequires: pkgconfig(libspectre) >= 0.2.0 |
39 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
40 |
BuildRequires: pkgconfig(poppler-glib) >= 0.18.0 |
41 |
BuildRequires: pkgconfig(sm) >= 1.0.0 |
42 |
BuildRequires: pkgconfig(x11) |
43 |
BuildRequires: tiff-devel |
44 |
BuildRequires: ghostscript |
45 |
BuildRequires: intltool |
46 |
#gw if we run autoconf |
47 |
BuildRequires: gnome-doc-utils |
48 |
BuildRequires: gnome-icon-theme |
49 |
BuildRequires: gtk-doc |
50 |
Requires: ghostscript |
51 |
Requires: ghostscript-module-X |
52 |
|
53 |
%description |
54 |
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 |
|
57 |
%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 |
%package -n %{libname} |
73 |
Group: System/Libraries |
74 |
Summary: GNOME Document viewer library |
75 |
|
76 |
%description -n %{libname} |
77 |
This is the GNOME Document viewer library, the shared parts of evince. |
78 |
|
79 |
%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 |
|
86 |
%description -n %{devname} |
87 |
This is the GNOME Document viewer library, the shared parts of evince. |
88 |
|
89 |
%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 |
%prep |
98 |
%setup -q |
99 |
%apply_patches |
100 |
|
101 |
%build |
102 |
%configure2_5x \ |
103 |
--enable-tiff \ |
104 |
--enable-djvu \ |
105 |
--enable-comics \ |
106 |
%if %build_dvi |
107 |
--enable-dvi \ |
108 |
%endif |
109 |
--enable-gtk-doc \ |
110 |
--enable-introspection \ |
111 |
--disable-static \ |
112 |
--disable-scrollkeeper \ |
113 |
--disable-schemas-compile |
114 |
|
115 |
%make |
116 |
|
117 |
%install |
118 |
rm -rf %{buildroot} |
119 |
%makeinstall_std |
120 |
|
121 |
%find_lang %{name} --with-gnome |
122 |
|
123 |
find %{buildroot} -name *.la -delete |
124 |
|
125 |
%clean |
126 |
rm -rf %{buildroot} |
127 |
|
128 |
%files -f %name.lang |
129 |
%defattr(-,root,root,-) |
130 |
%doc NEWS AUTHORS TODO |
131 |
%{_bindir}/* |
132 |
%{_datadir}/evince |
133 |
%{_datadir}/applications/* |
134 |
%{_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 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
142 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
143 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
144 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
145 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
146 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
147 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
148 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
149 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
150 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
151 |
%{_libdir}/evince/%{major}/backends/libxpsdocument.so |
152 |
%{_libdir}/evince/%{major}/backends/xpsdocument.evince-backend |
153 |
%{_libexecdir}/evinced |
154 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
155 |
%{_datadir}/thumbnailers/evince.thumbnailer |
156 |
|
157 |
%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 |
%files -n %{libname} |
164 |
%defattr(-,root,root,-) |
165 |
%{_libdir}/libevdocument3.so.%{major}* |
166 |
%{_libdir}/libevview3.so.%{major}* |
167 |
|
168 |
%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 |
%defattr(-,root,root,-) |
175 |
%doc ChangeLog |
176 |
%{_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 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
184 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |