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