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 |
Summary: GNOME Document viewer |
11 |
Name: evince |
12 |
Version: 3.1.90 |
13 |
Release: %mkrel 1 |
14 |
License: GPLv2+ and GFDL+ |
15 |
Group: Graphical desktop/GNOME |
16 |
URL: http://www.gnome.org |
17 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz |
18 |
Requires: ghostscript |
19 |
Requires: ghostscript-module-X |
20 |
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 |
BuildRequires: pkgconfig(gio-2.0) >= 2.25.11 |
26 |
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: n/a at the moment of 20110830 |
36 |
#BuildRequires: pkgconfig(libgxps) >= 0.0.1 |
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.16.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-common |
49 |
BuildRequires: gnome-icon-theme |
50 |
BuildRequires: gtk-doc |
51 |
|
52 |
%description |
53 |
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 |
|
56 |
%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 |
%package -n %{libname} |
72 |
Group: System/Libraries |
73 |
Summary: GNOME Document viewer library |
74 |
|
75 |
%description -n %{libname} |
76 |
This is the GNOME Document viewer library, the shared parts of evince. |
77 |
|
78 |
%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 |
|
85 |
%description -n %{devname} |
86 |
This is the GNOME Document viewer library, the shared parts of evince. |
87 |
|
88 |
%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 |
%prep |
97 |
%setup -q |
98 |
|
99 |
%build |
100 |
%configure2_5x \ |
101 |
--enable-tiff \ |
102 |
--enable-djvu \ |
103 |
--enable-comics \ |
104 |
%if %build_dvi |
105 |
--enable-dvi \ |
106 |
%endif |
107 |
--enable-gtk-doc \ |
108 |
--enable-introspection \ |
109 |
--disable-static \ |
110 |
--disable-scrollkeeper --disable-schemas-compile |
111 |
|
112 |
%make |
113 |
|
114 |
%install |
115 |
rm -rf %{buildroot} |
116 |
%makeinstall_std |
117 |
|
118 |
%find_lang %{name} --with-gnome |
119 |
|
120 |
find -name *.la | xargs rm |
121 |
|
122 |
%clean |
123 |
rm -rf %{buildroot} |
124 |
|
125 |
%files -f %name.lang |
126 |
%defattr(-,root,root,-) |
127 |
%doc NEWS AUTHORS TODO |
128 |
%{_bindir}/* |
129 |
%{_datadir}/evince |
130 |
%{_datadir}/applications/* |
131 |
%{_datadir}/icons/hicolor/*/apps/evince* |
132 |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
133 |
%{_datadir}/GConf/gsettings/evince.convert |
134 |
%{_mandir}/man1/evince.1* |
135 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
136 |
%dir %{_libdir}/evince/%{major}/ |
137 |
%dir %{_libdir}/evince/%{major}/backends |
138 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
139 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
140 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
141 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
142 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
143 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
144 |
#{_libdir}/evince/%{major}/backends/libpixbufdocument.so |
145 |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
146 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
147 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
148 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
149 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
150 |
#{_libexecdir}/evince-convert-metadata |
151 |
%{_libexecdir}/evinced |
152 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
153 |
%{_datadir}/thumbnailers/evince.thumbnailer |
154 |
|
155 |
%if %build_dvi |
156 |
%files dvi |
157 |
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
158 |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
159 |
%endif |
160 |
|
161 |
%files -n %{libname} |
162 |
%defattr(-,root,root,-) |
163 |
%{_libdir}/libevdocument3.so.%{major}* |
164 |
%{_libdir}/libevview3.so.%{major}* |
165 |
|
166 |
%files -n %{girname} |
167 |
%defattr(-,root,root) |
168 |
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
169 |
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
170 |
|
171 |
%files -n %{devname} |
172 |
%defattr(-,root,root,-) |
173 |
%doc ChangeLog |
174 |
%{_datadir}/gtk-doc/html/evince |
175 |
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
176 |
%{_datadir}/gtk-doc/html/libevview-%{api} |
177 |
%{_libdir}/libevdocument3.so |
178 |
%{_libdir}/libevview3.so |
179 |
%{_libdir}/pkgconfig/evince*pc |
180 |
%{_includedir}/evince* |
181 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
182 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |