1 |
%define build_dvi 0 |
%define build_dvi 1 |
2 |
|
|
3 |
%define major 3 |
%define major 3 |
4 |
%define api 3.0 |
%define api 3.0 |
10 |
Summary: GNOME Document viewer |
Summary: GNOME Document viewer |
11 |
Name: evince |
Name: evince |
12 |
Version: 3.1.2 |
Version: 3.1.2 |
13 |
Release: %mkrel 1 |
Release: %mkrel 2 |
14 |
License: GPLv2+ and GFDL+ |
License: GPLv2+ and GFDL+ |
15 |
Group: Graphical desktop/GNOME |
Group: Graphical desktop/GNOME |
16 |
URL: http://www.gnome.org |
URL: http://www.gnome.org |
30 |
BuildRequires: glib2-devel >= 2.25.3 |
BuildRequires: glib2-devel >= 2.25.3 |
31 |
BuildRequires: cairo-devel |
BuildRequires: cairo-devel |
32 |
#BuildRequires: t1lib-devel |
#BuildRequires: t1lib-devel |
|
|
|
|
%if %build_dvi |
|
|
BuildRequires: texlive |
|
|
#gw just like xdvi, needed for rendering the fonts |
|
|
Suggests: texlive |
|
|
%endif |
|
|
|
|
33 |
BuildRequires: djvulibre-devel >= 3.5.17 |
BuildRequires: djvulibre-devel >= 3.5.17 |
34 |
BuildRequires: libgcrypt-devel |
BuildRequires: libgcrypt-devel |
35 |
BuildRequires: scrollkeeper |
BuildRequires: scrollkeeper |
44 |
Requires(postun): scrollkeeper desktop-file-utils |
Requires(postun): scrollkeeper desktop-file-utils |
45 |
|
|
46 |
%description |
%description |
47 |
Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats. |
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} |
%package -n %{libname} |
66 |
Group: System/Libraries |
Group: System/Libraries |
136 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
137 |
%dir %{_libdir}/evince/%{major}/ |
%dir %{_libdir}/evince/%{major}/ |
138 |
%dir %{_libdir}/evince/%{major}/backends |
%dir %{_libdir}/evince/%{major}/backends |
139 |
%{_libdir}/evince/%{major}/backends/lib* |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
140 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
141 |
|
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
142 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
143 |
|
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
|
%if %build_dvi |
|
|
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
|
|
%endif |
|
|
|
|
144 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
145 |
|
#{_libdir}/evince/%{major}/backends/libpixbufdocument.so |
146 |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
147 |
|
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
148 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
149 |
|
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
150 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
151 |
#{_libexecdir}/evince-convert-metadata |
#{_libexecdir}/evince-convert-metadata |
152 |
%{_libexecdir}/evinced |
%{_libexecdir}/evinced |
153 |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
154 |
%{_datadir}/thumbnailers/evince.thumbnailer |
%{_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} |
%files -n %{libname} |
163 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
164 |
%{_libdir}/libevdocument3.so.%{major}* |
%{_libdir}/libevdocument3.so.%{major}* |