1 |
%define build_dvi 0 |
2 |
%define build_impress 1 |
3 |
%define major 3 |
4 |
%define api 2.32 |
5 |
%define libname %mklibname evince %major |
6 |
%define develname %mklibname -d evince |
7 |
|
8 |
Summary: GNOME Document viewer |
9 |
Name: evince |
10 |
Version: 2.32.0 |
11 |
Release: %mkrel 4 |
12 |
License: GPLv2+ and GFDL+ |
13 |
Group: Graphical desktop/GNOME |
14 |
URL: http://www.gnome.org |
15 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
16 |
Patch0: Check-for-NULL-in-synctex_backward_search.patch |
17 |
Patch1: Update-to-poppler-api-changes.patch |
18 |
Patch2: backends:-Fix-another-security-issue-in-the-dvi-backend.patch |
19 |
Patch3: backends:-Fix-several-security-issues-in-the-dvi-backend.patch |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
21 |
Requires: ghostscript ghostscript-module-X |
22 |
BuildRequires: libGConf2-devel >= 2.31.2 |
23 |
BuildRequires: gtk+2-devel |
24 |
BuildRequires: libgail-devel |
25 |
BuildRequires: libgnome-keyring-devel |
26 |
BuildRequires: libxt-devel |
27 |
BuildRequires: libpoppler-glib-devel >= 0.14.0 |
28 |
BuildRequires: libspectre-devel |
29 |
BuildRequires: nautilus-devel |
30 |
BuildRequires: libtiff-devel |
31 |
BuildRequires: libxslt-proc |
32 |
#BuildRequires: gobject-introspection-devel |
33 |
BuildRequires: glib2-devel >= 2.25.3 |
34 |
#BuildRequires: t1lib-devel |
35 |
%if %build_dvi |
36 |
BuildRequires: texlive |
37 |
#gw just like xdvi, needed for rendering the fonts |
38 |
Suggests: texlive |
39 |
%endif |
40 |
BuildRequires: djvulibre-devel >= 3.5.17 |
41 |
BuildRequires: libgcrypt-devel |
42 |
BuildRequires: scrollkeeper |
43 |
BuildRequires: ghostscript |
44 |
BuildRequires: intltool |
45 |
#gw if we run autoconf |
46 |
BuildRequires: gnome-doc-utils |
47 |
BuildRequires: gnome-common |
48 |
BuildRequires: gnome-icon-theme |
49 |
BuildRequires: gtk-doc |
50 |
Requires(post): scrollkeeper desktop-file-utils |
51 |
Requires(postun): scrollkeeper desktop-file-utils |
52 |
|
53 |
%description |
54 |
Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats. |
55 |
|
56 |
%package -n %libname |
57 |
Group:System/Libraries |
58 |
Summary: GNOME Document viewer library |
59 |
|
60 |
%description -n %libname |
61 |
This is the GNOME Document viewer library, the shared parts of evince. |
62 |
|
63 |
%package -n %develname |
64 |
Group:Development/C |
65 |
Summary: GNOME Document viewer library |
66 |
Requires: %libname = %version |
67 |
Provides: libevince-devel = %version-%release |
68 |
|
69 |
%description -n %develname |
70 |
This is the GNOME Document viewer library, the shared parts of evince. |
71 |
|
72 |
%prep |
73 |
%setup -q |
74 |
%apply_patches |
75 |
autoreconf -fi |
76 |
|
77 |
%build |
78 |
%configure2_5x --enable-tiff --enable-djvu --enable-pixbuf --enable-comics \ |
79 |
%if %build_impress |
80 |
--enable-impress \ |
81 |
%endif |
82 |
%if %build_dvi |
83 |
--enable-dvi \ |
84 |
%endif |
85 |
--enable-gtk-doc |
86 |
#--enable-introspection |
87 |
#--enable-t1lib |
88 |
|
89 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
90 |
|
91 |
%install |
92 |
rm -rf $RPM_BUILD_ROOT %name.lang |
93 |
|
94 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
95 |
|
96 |
%find_lang Evince --with-gnome |
97 |
%find_lang %name --with-gnome |
98 |
cat %name.lang >> Evince.lang |
99 |
for omf in %buildroot%_datadir/omf/*/{*-??,*-??_??}.omf;do |
100 |
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed s!%buildroot!!)" >> Evince.lang |
101 |
done |
102 |
|
103 |
rm -f %buildroot%_libdir/nautilus/extensions-*/libevince*a \ |
104 |
%buildroot%_libdir/evince/*/backends/lib*a %buildroot%_libdir/lib*.a \ |
105 |
%buildroot%_datadir/glib-2.0/schemas/gschemas.compiled |
106 |
|
107 |
|
108 |
%preun |
109 |
%preun_uninstall_gconf_schemas %schemas |
110 |
|
111 |
%clean |
112 |
rm -rf $RPM_BUILD_ROOT |
113 |
|
114 |
%files -f Evince.lang |
115 |
%defattr(-,root,root,-) |
116 |
%doc NEWS AUTHORS TODO |
117 |
# README |
118 |
%_sysconfdir/gconf/schemas/%name-thumbnailer.schemas |
119 |
%_sysconfdir/gconf/schemas/%name-thumbnailer-djvu.schemas |
120 |
%_sysconfdir/gconf/schemas/%name-thumbnailer-comics.schemas |
121 |
%if %build_dvi |
122 |
%_sysconfdir/gconf/schemas/%name-thumbnailer-dvi.schemas |
123 |
%endif |
124 |
%_sysconfdir/gconf/schemas/%name-thumbnailer-ps.schemas |
125 |
%{_bindir}/* |
126 |
%{_datadir}/evince |
127 |
%{_datadir}/applications/* |
128 |
%_datadir/icons/hicolor/*/apps/evince* |
129 |
%_datadir/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
130 |
%_datadir/GConf/gsettings/evince.convert |
131 |
%dir %_datadir/omf/%name |
132 |
%_datadir/omf/%name/%name-C.omf |
133 |
%_mandir/man1/evince.1* |
134 |
%_libdir/nautilus/extensions-2.0/libevince*so* |
135 |
%dir %_libdir/evince/%major/ |
136 |
%dir %_libdir/evince/%major/backends |
137 |
%_libdir/evince/%major/backends/lib* |
138 |
%_libdir/evince/%major/backends/comicsdocument.evince-backend |
139 |
%_libdir/evince/%major/backends/djvudocument.evince-backend |
140 |
%if %build_dvi |
141 |
%_libdir/evince/%major/backends/dvidocument.evince-backend |
142 |
%endif |
143 |
%if %build_impress |
144 |
%_libdir/evince/%major/backends/impressdocument.evince-backend |
145 |
%endif |
146 |
%_libdir/evince/%major/backends/pdfdocument.evince-backend |
147 |
%_libdir/evince/%major/backends/pixbufdocument.evince-backend |
148 |
%_libdir/evince/%major/backends/psdocument.evince-backend |
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 |
|
154 |
%files -n %libname |
155 |
%defattr(-,root,root,-) |
156 |
%_libdir/libevdocument.so.%{major}* |
157 |
%_libdir/libevview.so.%{major}* |
158 |
#%_libdir/girepository-1.0/EvinceDocument-%api.typelib |
159 |
#%_libdir/girepository-1.0/EvinceView-%api.typelib |
160 |
|
161 |
%files -n %develname |
162 |
%defattr(-,root,root,-) |
163 |
%doc ChangeLog |
164 |
%_datadir/gtk-doc/html/evince |
165 |
%_datadir/gtk-doc/html/libevdocument-%api |
166 |
%_datadir/gtk-doc/html/libevview-%api |
167 |
%_libdir/libevdocument.so |
168 |
%_libdir/libevview.so |
169 |
%_libdir/*.la |
170 |
%_libdir/pkgconfig/evince*pc |
171 |
%_includedir/evince* |
172 |
#%_datadir/gir-1.0/EvinceDocument-%api.gir |
173 |
#%_datadir/gir-1.0/EvinceView-%api.gir |
174 |
|
175 |
|
176 |
|