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