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