1 |
%define build_dvi 0 |
2 |
|
3 |
%define major 3 |
4 |
%define api 3.0 |
5 |
%define gir_major 3.0 |
6 |
%define libname %mklibname %{name} %{major} |
7 |
%define devname %mklibname -d %{name} |
8 |
%define girname %mklibname %{name}-gir %{gir_major} |
9 |
|
10 |
Summary: GNOME Document viewer |
11 |
Name: evince |
12 |
Version: 3.1.2 |
13 |
Release: %mkrel 1 |
14 |
License: GPLv2+ and GFDL+ |
15 |
Group: Graphical desktop/GNOME |
16 |
URL: http://www.gnome.org |
17 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz |
18 |
Requires: ghostscript |
19 |
Requires: ghostscript-module-X |
20 |
BuildRequires: gtk+3-devel |
21 |
BuildRequires: libgail-3.0-devel |
22 |
BuildRequires: libgnome-keyring-devel |
23 |
BuildRequires: libxt-devel |
24 |
BuildRequires: libpoppler-glib-devel >= 0.14.0 |
25 |
BuildRequires: libspectre-devel |
26 |
BuildRequires: nautilus-devel |
27 |
BuildRequires: libtiff-devel |
28 |
BuildRequires: libxslt-proc |
29 |
BuildRequires: gobject-introspection-devel |
30 |
BuildRequires: glib2-devel >= 2.25.3 |
31 |
BuildRequires: cairo-devel |
32 |
#BuildRequires: t1lib-devel |
33 |
|
34 |
%if %build_dvi |
35 |
BuildRequires: texlive |
36 |
#gw just like xdvi, needed for rendering the fonts |
37 |
Suggests: texlive |
38 |
%endif |
39 |
|
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 %{devname} |
64 |
Group: Development/C |
65 |
Summary: GNOME Document viewer library |
66 |
Requires: %{libname} = %{version}-%{release} |
67 |
Provides: lib%{name}-devel = %{version}-%{release} |
68 |
Provides: %{name}-devel = %{version}-%{release} |
69 |
|
70 |
%description -n %{devname} |
71 |
This is the GNOME Document viewer library, the shared parts of evince. |
72 |
|
73 |
%package -n %{girname} |
74 |
Summary: GObject Introspection interface description for %{name} |
75 |
Group: System/Libraries |
76 |
Requires: %{libname} = %{version}-%{release} |
77 |
|
78 |
%description -n %{girname} |
79 |
GObject Introspection interface description for %{name}. |
80 |
|
81 |
%prep |
82 |
%setup -q |
83 |
%apply_patches |
84 |
|
85 |
%build |
86 |
autoreconf -fi |
87 |
%configure2_5x \ |
88 |
--enable-tiff \ |
89 |
--enable-djvu \ |
90 |
--enable-comics \ |
91 |
%if %build_dvi |
92 |
--enable-dvi \ |
93 |
%endif |
94 |
--enable-gtk-doc \ |
95 |
--enable-introspection \ |
96 |
--disable-static |
97 |
|
98 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
99 |
|
100 |
%install |
101 |
rm -rf %{buildroot} |
102 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
103 |
|
104 |
%find_lang Evince --with-gnome |
105 |
%find_lang %{name} --with-gnome |
106 |
|
107 |
cat %{name}.lang >> Evince.lang |
108 |
|
109 |
rm -f %{buildroot}%{_libdir}/nautilus/extensions-*/libevince*a \ |
110 |
%{buildroot}%{_libdir}/evince/*/backends/lib*a \ |
111 |
%{buildroot}%{_libdir}/libev*.{a,la} \ |
112 |
%{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled |
113 |
|
114 |
%clean |
115 |
rm -rf %{buildroot} |
116 |
|
117 |
%files -f Evince.lang |
118 |
%defattr(-,root,root,-) |
119 |
%doc NEWS AUTHORS TODO |
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 |
%{_mandir}/man1/evince.1* |
127 |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
128 |
%dir %{_libdir}/evince/%{major}/ |
129 |
%dir %{_libdir}/evince/%{major}/backends |
130 |
%{_libdir}/evince/%{major}/backends/lib* |
131 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
132 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
133 |
|
134 |
%if %build_dvi |
135 |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
136 |
%endif |
137 |
|
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 |
%{_datadir}/thumbnailers/evince.thumbnailer |
146 |
|
147 |
%files -n %{libname} |
148 |
%defattr(-,root,root,-) |
149 |
%{_libdir}/libevdocument3.so.%{major}* |
150 |
%{_libdir}/libevview3.so.%{major}* |
151 |
|
152 |
%files -n %{girname} |
153 |
%defattr(-,root,root) |
154 |
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
155 |
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
156 |
|
157 |
%files -n %{devname} |
158 |
%defattr(-,root,root,-) |
159 |
%doc ChangeLog |
160 |
%{_datadir}/gtk-doc/html/evince |
161 |
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
162 |
%{_datadir}/gtk-doc/html/libevview-%{api} |
163 |
%{_libdir}/libevdocument3.so |
164 |
%{_libdir}/libevview3.so |
165 |
%{_libdir}/pkgconfig/evince*pc |
166 |
%{_includedir}/evince* |
167 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
168 |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |