1 |
pterjan |
35314 |
%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 |
pterjan |
35328 |
BuildRequires: gnome-icon-theme |
45 |
pterjan |
35314 |
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 |
|
|
%_libdir/evince/%major/backends/dvidocument.evince-backend |
136 |
|
|
%if %build_impress |
137 |
|
|
%_libdir/evince/%major/backends/impressdocument.evince-backend |
138 |
|
|
%endif |
139 |
|
|
%_libdir/evince/%major/backends/pdfdocument.evince-backend |
140 |
|
|
%_libdir/evince/%major/backends/pixbufdocument.evince-backend |
141 |
|
|
%_libdir/evince/%major/backends/psdocument.evince-backend |
142 |
|
|
%_libdir/evince/%major/backends/tiffdocument.evince-backend |
143 |
|
|
%_libexecdir/evince-convert-metadata |
144 |
|
|
%_libexecdir/evinced |
145 |
|
|
%_datadir/dbus-1/services/org.gnome.evince.Daemon.service |
146 |
|
|
|
147 |
|
|
%files -n %libname |
148 |
|
|
%defattr(-,root,root,-) |
149 |
|
|
%_libdir/libevdocument.so.%{major}* |
150 |
|
|
%_libdir/libevview.so.%{major}* |
151 |
|
|
#%_libdir/girepository-1.0/EvinceDocument-%api.typelib |
152 |
|
|
#%_libdir/girepository-1.0/EvinceView-%api.typelib |
153 |
|
|
|
154 |
|
|
%files -n %develname |
155 |
|
|
%defattr(-,root,root,-) |
156 |
|
|
%doc ChangeLog |
157 |
|
|
%_datadir/gtk-doc/html/evince |
158 |
|
|
%_datadir/gtk-doc/html/libevdocument-%api |
159 |
|
|
%_datadir/gtk-doc/html/libevview-%api |
160 |
|
|
%_libdir/libevdocument.so |
161 |
|
|
%_libdir/libevview.so |
162 |
|
|
%_libdir/*.la |
163 |
|
|
%_libdir/pkgconfig/evince*pc |
164 |
|
|
%_includedir/evince* |
165 |
|
|
#%_datadir/gir-1.0/EvinceDocument-%api.gir |
166 |
|
|
#%_datadir/gir-1.0/EvinceView-%api.gir |
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|