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.2.1 |
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 |
Requires: ghostscript |
21 |
Requires: ghostscript-module-X |
22 |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
23 |
BuildRequires: pkgconfig(cairo-pdf) |
24 |
BuildRequires: pkgconfig(cairo-ps) |
25 |
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.17 |
26 |
BuildRequires: pkgconfig(gail-3.0) >= 3.0.2 |
27 |
BuildRequires: pkgconfig(gio-2.0) >= 2.25.11 |
28 |
BuildRequires: pkgconfig(gnome-icon-theme) >= 2.17.1 |
29 |
BuildRequires: pkgconfig(gnome-keyring-1) >= 2.22.0 |
30 |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6 |
31 |
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
32 |
BuildRequires: pkgconfig(gthread-2.0) |
33 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.2 |
34 |
BuildRequires: pkgconfig(gtk+-unix-print-3.0) >= 3.0.2 |
35 |
BuildRequires: pkgconfig(gtk+-x11-3.0) |
36 |
BuildRequires: pkgconfig(ice) |
37 |
#fwang: n/a at the moment of 20110830 |
38 |
#BuildRequires: pkgconfig(libgxps) >= 0.0.1 |
39 |
BuildRequires: pkgconfig(libnautilus-extension) >= 2.91.4 |
40 |
BuildRequires: pkgconfig(libspectre) >= 0.2.0 |
41 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
42 |
BuildRequires: pkgconfig(poppler-glib) >= 0.16.0 |
43 |
BuildRequires: pkgconfig(sm) >= 1.0.0 |
44 |
BuildRequires: pkgconfig(x11) |
45 |
BuildRequires: tiff-devel |
46 |
BuildRequires: ghostscript |
47 |
BuildRequires: intltool |
48 |
#gw if we run autoconf |
49 |
BuildRequires: gnome-doc-utils |
50 |
BuildRequires: gnome-icon-theme |
51 |
BuildRequires: gtk-doc |
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 |
|
100 |
%build |
101 |
%configure2_5x \ |
102 |
--enable-tiff \ |
103 |
--enable-djvu \ |
104 |
--enable-comics \ |
105 |
%if %build_dvi |
106 |
--enable-dvi \ |
107 |
%endif |
108 |
--enable-gtk-doc \ |
109 |
--enable-introspection \ |
110 |
--disable-static \ |
111 |
--disable-scrollkeeper --disable-schemas-compile |
112 |
|
113 |
%make |
114 |
|
115 |
%install |
116 |
rm -rf %{buildroot} |
117 |
%makeinstall_std |
118 |
|
119 |
%find_lang %{name} --with-gnome |
120 |
|
121 |
find %{buildroot} -name *.la | xargs rm |
122 |
|
123 |
%clean |
124 |
rm -rf %{buildroot} |
125 |
|
126 |
%files -f %name.lang |
127 |
%defattr(-,root,root,-) |
128 |
%doc NEWS AUTHORS TODO |
129 |
%{_bindir}/* |
130 |
%{_datadir}/evince |
131 |
%{_datadir}/applications/* |
132 |
%{_datadir}/icons/hicolor/*/apps/evince* |
133 |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
134 |
%{_datadir}/GConf/gsettings/evince.convert |
135 |
%{_mandir}/man1/evince.1* |
136 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
137 |
%dir %{_libdir}/evince/%{major}/ |
138 |
%dir %{_libdir}/evince/%{major}/backends |
139 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
140 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
141 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
142 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
143 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
144 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
145 |
#{_libdir}/evince/%{major}/backends/libpixbufdocument.so |
146 |
#{_libdir}/evince/%{major}/backends/pixbufdocument.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 |
#{_libexecdir}/evince-convert-metadata |
152 |
%{_libexecdir}/evinced |
153 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
154 |
%{_datadir}/thumbnailers/evince.thumbnailer |
155 |
|
156 |
%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 |
%files -n %{libname} |
163 |
%defattr(-,root,root,-) |
164 |
%{_libdir}/libevdocument3.so.%{major}* |
165 |
%{_libdir}/libevview3.so.%{major}* |
166 |
|
167 |
%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 |
%defattr(-,root,root,-) |
174 |
%doc ChangeLog |
175 |
%{_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 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
183 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |