1 |
%define build_dvi 0 |
%define build_dvi 1 |
2 |
%define build_impress 1 |
|
3 |
%define major 3 |
%define major 4 |
4 |
%define api 2.32 |
%define major_evdocument 4 |
5 |
%define libname %mklibname evince %major |
%define major_evview 3 |
6 |
%define develname %mklibname -d evince |
%define api 3.0 |
7 |
|
%define gir_major 3.0 |
8 |
Summary: GNOME Document viewer |
|
9 |
Name: evince |
%define devname %mklibname -d %{name} |
10 |
Version: 2.32.0 |
%define libname_evdocument %mklibname evdocument 3 %{major_evdocument} |
11 |
Release: %mkrel 4 |
%define libname_evview %mklibname evview 3 %{major_evview} |
12 |
License: GPLv2+ and GFDL+ |
%define girname %mklibname %{name}-gir %{gir_major} |
13 |
Group: Graphical desktop/GNOME |
|
14 |
URL: http://www.gnome.org |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
15 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
|
16 |
Patch0: Check-for-NULL-in-synctex_backward_search.patch |
Summary: GNOME Document viewer |
17 |
Patch1: Update-to-poppler-api-changes.patch |
Name: evince |
18 |
Patch2: backends:-Fix-another-security-issue-in-the-dvi-backend.patch |
Version: 3.11.90 |
19 |
Patch3: backends:-Fix-several-security-issues-in-the-dvi-backend.patch |
Release: %mkrel 1 |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
License: GPLv2+ |
21 |
Requires: ghostscript ghostscript-module-X |
Group: Graphical desktop/GNOME |
22 |
BuildRequires: libGConf2-devel >= 2.31.2 |
URL: http://www.gnome.org |
23 |
BuildRequires: gtk+2-devel |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
24 |
BuildRequires: libgail-devel |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
25 |
BuildRequires: libgnome-keyring-devel |
BuildRequires: pkgconfig(cairo-pdf) |
26 |
BuildRequires: libxt-devel |
BuildRequires: pkgconfig(cairo-ps) |
27 |
BuildRequires: libpoppler-glib-devel >= 0.14.0 |
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.17 |
28 |
BuildRequires: libspectre-devel |
BuildRequires: pkgconfig(gail-3.0) >= 3.8.0 |
29 |
BuildRequires: nautilus-devel |
BuildRequires: pkgconfig(gio-2.0) >= 2.36.0 |
30 |
BuildRequires: libtiff-devel |
BuildRequires: pkgconfig(gnome-icon-theme) >= 2.17.1 |
31 |
BuildRequires: libxslt-proc |
BuildRequires: pkgconfig(gnome-keyring-1) >= 2.22.0 |
32 |
#BuildRequires: gobject-introspection-devel |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6 |
33 |
BuildRequires: glib2-devel >= 2.25.3 |
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
34 |
#BuildRequires: t1lib-devel |
BuildRequires: pkgconfig(gthread-2.0) |
35 |
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.8.0 |
36 |
|
BuildRequires: pkgconfig(gtk+-unix-print-3.0) >= 3.0.2 |
37 |
|
BuildRequires: pkgconfig(gtk+-x11-3.0) |
38 |
|
BuildRequires: pkgconfig(ice) |
39 |
|
BuildRequires: pkgconfig(libgxps) >= 0.2.0 |
40 |
|
BuildRequires: pkgconfig(libnautilus-extension) >= 2.91.4 |
41 |
|
BuildRequires: pkgconfig(libspectre) >= 0.2.0 |
42 |
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
43 |
|
BuildRequires: pkgconfig(poppler-glib) >= 0.24.0 |
44 |
|
BuildRequires: pkgconfig(sm) >= 1.0.0 |
45 |
|
BuildRequires: pkgconfig(x11) |
46 |
|
BuildRequires: pkgconfig(libsecret-1) >= 0.5 |
47 |
|
BuildRequires: tiff-devel |
48 |
|
BuildRequires: ghostscript |
49 |
|
BuildRequires: intltool |
50 |
|
BuildRequires: itstool |
51 |
|
BuildRequires: gnome-doc-utils |
52 |
|
BuildRequires: gnome-icon-theme |
53 |
|
BuildRequires: gtk-doc |
54 |
|
Requires: ghostscript |
55 |
|
Requires: ghostscript-module-X |
56 |
|
Requires: gsettings-desktop-schemas |
57 |
|
|
58 |
|
%description |
59 |
|
Evince is the GNOME Document viewer. It supports PDF, PostScript and |
60 |
|
other formats. |
61 |
|
|
62 |
|
To view .dvi files as produced by TeX in evince, install the %{name}-dvi |
63 |
|
package. |
64 |
|
|
65 |
%if %build_dvi |
%if %build_dvi |
66 |
BuildRequires: texlive |
%package dvi |
67 |
|
Summary: TeX DVI document support for evince |
68 |
|
Group: Graphical desktop/GNOME |
69 |
|
BuildRequires: kpathsea-devel |
70 |
#gw just like xdvi, needed for rendering the fonts |
#gw just like xdvi, needed for rendering the fonts |
71 |
Suggests: texlive |
Requires: texlive |
72 |
|
Requires: texlive-texmf |
73 |
|
Requires: %{name} = %{version}-%{release} |
74 |
|
|
75 |
|
%description dvi |
76 |
|
This package adds support for displaying .dvi files to evince. These files are |
77 |
|
produced by TeX, often using a macro package like LaTeX. |
78 |
%endif |
%endif |
|
BuildRequires: djvulibre-devel >= 3.5.17 |
|
|
BuildRequires: libgcrypt-devel |
|
|
BuildRequires: scrollkeeper |
|
|
BuildRequires: ghostscript |
|
|
BuildRequires: intltool |
|
|
#gw if we run autoconf |
|
|
BuildRequires: gnome-doc-utils |
|
|
BuildRequires: gnome-common |
|
|
BuildRequires: gnome-icon-theme |
|
|
BuildRequires: gtk-doc |
|
|
Requires(post): scrollkeeper desktop-file-utils |
|
|
Requires(postun): scrollkeeper desktop-file-utils |
|
79 |
|
|
80 |
%description |
%package -n %{libname_evdocument} |
81 |
Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats. |
Group: System/Libraries |
82 |
|
Summary: GNOME Document viewer library |
83 |
|
Obsoletes: %{mklibname %{name} 3} < 3.3.92 |
84 |
|
|
85 |
|
%description -n %{libname_evdocument} |
86 |
|
This is the GNOME Document viewer library, the shared parts of evince. |
87 |
|
|
88 |
%package -n %libname |
%package -n %{libname_evview} |
89 |
Group:System/Libraries |
Group: System/Libraries |
90 |
Summary: GNOME Document viewer library |
Summary: GNOME Document viewer library |
91 |
|
|
92 |
%description -n %libname |
%description -n %{libname_evview} |
93 |
This is the GNOME Document viewer library, the shared parts of evince. |
This is the GNOME Document viewer library, the shared parts of evince. |
94 |
|
|
95 |
%package -n %develname |
%package -n %{devname} |
96 |
Group:Development/C |
Group: Development/C |
97 |
Summary: GNOME Document viewer library |
Summary: GNOME Document viewer library |
98 |
Requires: %libname = %version |
Requires: %{libname_evdocument} = %{version}-%{release} |
99 |
Provides: libevince-devel = %version-%release |
Requires: %{libname_evview} = %{version}-%{release} |
100 |
|
Provides: lib%{name}-devel = %{version}-%{release} |
101 |
|
Provides: %{name}-devel = %{version}-%{release} |
102 |
|
|
103 |
%description -n %develname |
%description -n %{devname} |
104 |
This is the GNOME Document viewer library, the shared parts of evince. |
This is the GNOME Document viewer library, the shared parts of evince. |
105 |
|
|
106 |
|
%package -n %{girname} |
107 |
|
Summary: GObject Introspection interface description for %{name} |
108 |
|
Group: System/Libraries |
109 |
|
Requires: %{libname_evdocument} = %{version}-%{release} |
110 |
|
Requires: %{libname_evview} = %{version}-%{release} |
111 |
|
|
112 |
|
%description -n %{girname} |
113 |
|
GObject Introspection interface description for %{name}. |
114 |
|
|
115 |
%prep |
%prep |
116 |
%setup -q |
%setup -q |
|
%apply_patches |
|
|
autoreconf -fi |
|
117 |
|
|
118 |
%build |
%build |
119 |
%configure2_5x --enable-tiff --enable-djvu --enable-pixbuf --enable-comics \ |
%configure2_5x \ |
120 |
%if %build_impress |
--enable-tiff \ |
121 |
--enable-impress \ |
--enable-djvu \ |
122 |
%endif |
--enable-comics \ |
123 |
%if %build_dvi |
%if %build_dvi |
124 |
--enable-dvi \ |
--enable-dvi \ |
125 |
%endif |
%endif |
126 |
--enable-gtk-doc |
--disable-gtk-doc \ |
127 |
#--enable-introspection |
--enable-introspection \ |
128 |
#--enable-t1lib |
--disable-static \ |
129 |
|
--disable-scrollkeeper \ |
130 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
--disable-schemas-compile |
131 |
|
%make |
132 |
|
|
133 |
%install |
%install |
134 |
rm -rf $RPM_BUILD_ROOT %name.lang |
%makeinstall_std |
|
|
|
|
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
|
|
|
|
|
%find_lang Evince --with-gnome |
|
|
%find_lang %name --with-gnome |
|
|
cat %name.lang >> Evince.lang |
|
|
for omf in %buildroot%_datadir/omf/*/{*-??,*-??_??}.omf;do |
|
|
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed s!%buildroot!!)" >> Evince.lang |
|
|
done |
|
135 |
|
|
136 |
rm -f %buildroot%_libdir/nautilus/extensions-*/libevince*a \ |
%find_lang %{name} --with-gnome --with-help |
|
%buildroot%_libdir/evince/*/backends/lib*a %buildroot%_libdir/lib*.a \ |
|
|
%buildroot%_datadir/glib-2.0/schemas/gschemas.compiled |
|
137 |
|
|
138 |
|
find %{buildroot} -name "*.la" -delete |
139 |
|
|
140 |
%preun |
%files -f %name.lang |
|
%preun_uninstall_gconf_schemas %schemas |
|
|
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
|
%files -f Evince.lang |
|
|
%defattr(-,root,root,-) |
|
141 |
%doc NEWS AUTHORS TODO |
%doc NEWS AUTHORS TODO |
|
# README |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer.schemas |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-djvu.schemas |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-comics.schemas |
|
|
%if %build_dvi |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-dvi.schemas |
|
|
%endif |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-ps.schemas |
|
142 |
%{_bindir}/* |
%{_bindir}/* |
143 |
%{_datadir}/evince |
%{_datadir}/evince |
144 |
%{_datadir}/applications/* |
%{_datadir}/applications/* |
145 |
%_datadir/icons/hicolor/*/apps/evince* |
%{_datadir}/icons/hicolor/*/apps/evince* |
146 |
%_datadir/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
147 |
%_datadir/GConf/gsettings/evince.convert |
%{_datadir}/GConf/gsettings/evince.convert |
148 |
%dir %_datadir/omf/%name |
%{_mandir}/man1/evince.1* |
149 |
%_datadir/omf/%name/%name-C.omf |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
150 |
%_mandir/man1/evince.1* |
%dir %{_libdir}/evince/%{major}/ |
151 |
%_libdir/nautilus/extensions-2.0/libevince*so* |
%dir %{_libdir}/evince/%{major}/backends |
152 |
%dir %_libdir/evince/%major/ |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
153 |
%dir %_libdir/evince/%major/backends |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
154 |
%_libdir/evince/%major/backends/lib* |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
155 |
%_libdir/evince/%major/backends/comicsdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
156 |
%_libdir/evince/%major/backends/djvudocument.evince-backend |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
157 |
|
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
158 |
|
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
159 |
|
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
160 |
|
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
161 |
|
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
162 |
|
%{_libdir}/evince/%{major}/backends/libxpsdocument.so |
163 |
|
%{_libdir}/evince/%{major}/backends/xpsdocument.evince-backend |
164 |
|
%{_libexecdir}/evinced |
165 |
|
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
166 |
|
%{_datadir}/thumbnailers/evince.thumbnailer |
167 |
|
|
168 |
%if %build_dvi |
%if %build_dvi |
169 |
%_libdir/evince/%major/backends/dvidocument.evince-backend |
%files dvi |
170 |
%endif |
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
171 |
%if %build_impress |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
|
%_libdir/evince/%major/backends/impressdocument.evince-backend |
|
172 |
%endif |
%endif |
|
%_libdir/evince/%major/backends/pdfdocument.evince-backend |
|
|
%_libdir/evince/%major/backends/pixbufdocument.evince-backend |
|
|
%_libdir/evince/%major/backends/psdocument.evince-backend |
|
|
%_libdir/evince/%major/backends/tiffdocument.evince-backend |
|
|
%_libexecdir/evince-convert-metadata |
|
|
%_libexecdir/evinced |
|
|
%_datadir/dbus-1/services/org.gnome.evince.Daemon.service |
|
|
|
|
|
%files -n %libname |
|
|
%defattr(-,root,root,-) |
|
|
%_libdir/libevdocument.so.%{major}* |
|
|
%_libdir/libevview.so.%{major}* |
|
|
#%_libdir/girepository-1.0/EvinceDocument-%api.typelib |
|
|
#%_libdir/girepository-1.0/EvinceView-%api.typelib |
|
173 |
|
|
174 |
%files -n %develname |
%files -n %{libname_evdocument} |
175 |
%defattr(-,root,root,-) |
%{_libdir}/libevdocument3.so.%{major_evdocument}* |
|
%doc ChangeLog |
|
|
%_datadir/gtk-doc/html/evince |
|
|
%_datadir/gtk-doc/html/libevdocument-%api |
|
|
%_datadir/gtk-doc/html/libevview-%api |
|
|
%_libdir/libevdocument.so |
|
|
%_libdir/libevview.so |
|
|
%_libdir/*.la |
|
|
%_libdir/pkgconfig/evince*pc |
|
|
%_includedir/evince* |
|
|
#%_datadir/gir-1.0/EvinceDocument-%api.gir |
|
|
#%_datadir/gir-1.0/EvinceView-%api.gir |
|
176 |
|
|
177 |
|
%files -n %{libname_evview} |
178 |
|
%{_libdir}/libevview3.so.%{major_evview}* |
179 |
|
|
180 |
|
%files -n %{girname} |
181 |
|
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
182 |
|
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
183 |
|
|
184 |
|
%files -n %{devname} |
185 |
|
%doc ChangeLog |
186 |
|
%{_datadir}/gtk-doc/html/evince |
187 |
|
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
188 |
|
%{_datadir}/gtk-doc/html/libevview-%{api} |
189 |
|
%{_libdir}/libevdocument3.so |
190 |
|
%{_libdir}/libevview3.so |
191 |
|
%{_libdir}/pkgconfig/evince*pc |
192 |
|
%{_includedir}/evince* |
193 |
|
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
194 |
|
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |