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.2 |
13 |
Release: %mkrel 3 |
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: gtk+3-devel |
21 |
BuildRequires: libgail-3.0-devel |
22 |
BuildRequires: libgnome-keyring-devel |
23 |
BuildRequires: libxt-devel |
24 |
BuildRequires: pkgconfig(poppler-glib) >= 0.14.0 |
25 |
BuildRequires: libspectre-devel |
26 |
BuildRequires: nautilus-devel |
27 |
BuildRequires: libtiff-devel |
28 |
BuildRequires: libxslt-proc |
29 |
BuildRequires: gobject-introspection-devel |
30 |
BuildRequires: glib2-devel >= 2.25.3 |
31 |
BuildRequires: cairo-devel |
32 |
#BuildRequires: t1lib-devel |
33 |
BuildRequires: djvulibre-devel >= 3.5.17 |
34 |
BuildRequires: libgcrypt-devel |
35 |
BuildRequires: scrollkeeper |
36 |
BuildRequires: ghostscript |
37 |
BuildRequires: intltool |
38 |
#gw if we run autoconf |
39 |
BuildRequires: gnome-doc-utils |
40 |
BuildRequires: gnome-common |
41 |
BuildRequires: gnome-icon-theme |
42 |
BuildRequires: gtk-doc |
43 |
Requires(post): scrollkeeper desktop-file-utils |
44 |
Requires(postun): scrollkeeper desktop-file-utils |
45 |
|
46 |
%description |
47 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and other formats. |
48 |
To view .dvi files as produced by TeX in evince, install the %{name}-dvi package. |
49 |
|
50 |
%if %build_dvi |
51 |
%package dvi |
52 |
Summary: TeX DVI document support for evince |
53 |
Group: Graphical desktop/GNOME |
54 |
BuildRequires: kpathsea-devel |
55 |
#gw just like xdvi, needed for rendering the fonts |
56 |
Requires: texlive |
57 |
Requires: texlive-texmf |
58 |
Requires: %{name} = %{version}-%{release} |
59 |
|
60 |
%description dvi |
61 |
This package adds support for displaying .dvi files to evince. These files are |
62 |
produced by TeX, often using a macro package like LaTeX. |
63 |
%endif |
64 |
|
65 |
%package -n %{libname} |
66 |
Group: System/Libraries |
67 |
Summary: GNOME Document viewer library |
68 |
|
69 |
%description -n %{libname} |
70 |
This is the GNOME Document viewer library, the shared parts of evince. |
71 |
|
72 |
%package -n %{devname} |
73 |
Group: Development/C |
74 |
Summary: GNOME Document viewer library |
75 |
Requires: %{libname} = %{version}-%{release} |
76 |
Provides: lib%{name}-devel = %{version}-%{release} |
77 |
Provides: %{name}-devel = %{version}-%{release} |
78 |
|
79 |
%description -n %{devname} |
80 |
This is the GNOME Document viewer library, the shared parts of evince. |
81 |
|
82 |
%package -n %{girname} |
83 |
Summary: GObject Introspection interface description for %{name} |
84 |
Group: System/Libraries |
85 |
Requires: %{libname} = %{version}-%{release} |
86 |
|
87 |
%description -n %{girname} |
88 |
GObject Introspection interface description for %{name}. |
89 |
|
90 |
%prep |
91 |
%setup -q |
92 |
%apply_patches |
93 |
|
94 |
%build |
95 |
autoreconf -fi |
96 |
%configure2_5x \ |
97 |
--enable-tiff \ |
98 |
--enable-djvu \ |
99 |
--enable-comics \ |
100 |
%if %build_dvi |
101 |
--enable-dvi \ |
102 |
%endif |
103 |
--enable-gtk-doc \ |
104 |
--enable-introspection \ |
105 |
--disable-static |
106 |
|
107 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
108 |
|
109 |
%install |
110 |
rm -rf %{buildroot} |
111 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
112 |
|
113 |
%find_lang Evince --with-gnome |
114 |
%find_lang %{name} --with-gnome |
115 |
|
116 |
cat %{name}.lang >> Evince.lang |
117 |
|
118 |
rm -f %{buildroot}%{_libdir}/nautilus/extensions-*/libevince*a \ |
119 |
%{buildroot}%{_libdir}/evince/*/backends/lib*a \ |
120 |
%{buildroot}%{_libdir}/libev*.{a,la} \ |
121 |
%{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled |
122 |
|
123 |
%clean |
124 |
rm -rf %{buildroot} |
125 |
|
126 |
%files -f Evince.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 |