1 |
cjw |
119125 |
%define build_dvi 1 |
2 |
pterjan |
35314 |
|
3 |
wally |
114165 |
%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 |
dmorgan |
119861 |
Release: %mkrel 3 |
14 |
wally |
114165 |
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 |
ahmad |
124680 |
BuildRequires: pkgconfig(poppler-glib) >= 0.14.0 |
25 |
wally |
114165 |
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 |
pterjan |
35314 |
#BuildRequires: t1lib-devel |
33 |
wally |
114165 |
BuildRequires: djvulibre-devel >= 3.5.17 |
34 |
|
|
BuildRequires: libgcrypt-devel |
35 |
|
|
BuildRequires: scrollkeeper |
36 |
|
|
BuildRequires: ghostscript |
37 |
|
|
BuildRequires: intltool |
38 |
pterjan |
35314 |
#gw if we run autoconf |
39 |
wally |
114165 |
BuildRequires: gnome-doc-utils |
40 |
|
|
BuildRequires: gnome-common |
41 |
|
|
BuildRequires: gnome-icon-theme |
42 |
|
|
BuildRequires: gtk-doc |
43 |
|
|
Requires(post): scrollkeeper desktop-file-utils |
44 |
|
|
Requires(postun): scrollkeeper desktop-file-utils |
45 |
pterjan |
35314 |
|
46 |
|
|
%description |
47 |
cjw |
119125 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and other formats. |
48 |
|
|
To view .dvi files as produced by TeX in evince, install the %{name}-dvi package. |
49 |
pterjan |
35314 |
|
50 |
cjw |
119125 |
%if %build_dvi |
51 |
|
|
%package dvi |
52 |
|
|
Summary: TeX DVI document support for evince |
53 |
|
|
Group: Graphical desktop/GNOME |
54 |
|
|
BuildRequires: kpathsea-devel |
55 |
|
|
#gw just like xdvi, needed for rendering the fonts |
56 |
|
|
Requires: texlive |
57 |
|
|
Requires: texlive-texmf |
58 |
|
|
Requires: %{name} = %{version}-%{release} |
59 |
|
|
|
60 |
|
|
%description dvi |
61 |
|
|
This package adds support for displaying .dvi files to evince. These files are |
62 |
|
|
produced by TeX, often using a macro package like LaTeX. |
63 |
|
|
%endif |
64 |
|
|
|
65 |
cjw |
113251 |
%package -n %{libname} |
66 |
wally |
114165 |
Group: System/Libraries |
67 |
|
|
Summary: GNOME Document viewer library |
68 |
pterjan |
35314 |
|
69 |
cjw |
113251 |
%description -n %{libname} |
70 |
pterjan |
35314 |
This is the GNOME Document viewer library, the shared parts of evince. |
71 |
|
|
|
72 |
wally |
114165 |
%package -n %{devname} |
73 |
|
|
Group: Development/C |
74 |
|
|
Summary: GNOME Document viewer library |
75 |
|
|
Requires: %{libname} = %{version}-%{release} |
76 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
77 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
78 |
pterjan |
35314 |
|
79 |
wally |
114165 |
%description -n %{devname} |
80 |
pterjan |
35314 |
This is the GNOME Document viewer library, the shared parts of evince. |
81 |
|
|
|
82 |
wally |
114165 |
%package -n %{girname} |
83 |
|
|
Summary: GObject Introspection interface description for %{name} |
84 |
|
|
Group: System/Libraries |
85 |
|
|
Requires: %{libname} = %{version}-%{release} |
86 |
|
|
|
87 |
|
|
%description -n %{girname} |
88 |
|
|
GObject Introspection interface description for %{name}. |
89 |
|
|
|
90 |
pterjan |
35314 |
%prep |
91 |
|
|
%setup -q |
92 |
|
|
%apply_patches |
93 |
|
|
|
94 |
|
|
%build |
95 |
cjw |
113251 |
autoreconf -fi |
96 |
wally |
114165 |
%configure2_5x \ |
97 |
|
|
--enable-tiff \ |
98 |
|
|
--enable-djvu \ |
99 |
|
|
--enable-comics \ |
100 |
pterjan |
35314 |
%if %build_dvi |
101 |
wally |
114165 |
--enable-dvi \ |
102 |
pterjan |
35314 |
%endif |
103 |
wally |
114165 |
--enable-gtk-doc \ |
104 |
|
|
--enable-introspection \ |
105 |
|
|
--disable-static |
106 |
pterjan |
35314 |
|
107 |
wally |
114165 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
108 |
pterjan |
35314 |
|
109 |
|
|
%install |
110 |
wally |
114165 |
rm -rf %{buildroot} |
111 |
pterjan |
35314 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
112 |
|
|
|
113 |
|
|
%find_lang Evince --with-gnome |
114 |
wally |
114165 |
%find_lang %{name} --with-gnome |
115 |
pterjan |
35314 |
|
116 |
wally |
114165 |
cat %{name}.lang >> Evince.lang |
117 |
|
|
|
118 |
cjw |
113251 |
rm -f %{buildroot}%{_libdir}/nautilus/extensions-*/libevince*a \ |
119 |
wally |
114165 |
%{buildroot}%{_libdir}/evince/*/backends/lib*a \ |
120 |
|
|
%{buildroot}%{_libdir}/libev*.{a,la} \ |
121 |
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled |
122 |
pterjan |
35314 |
|
123 |
|
|
%clean |
124 |
wally |
114165 |
rm -rf %{buildroot} |
125 |
pterjan |
35314 |
|
126 |
|
|
%files -f Evince.lang |
127 |
|
|
%defattr(-,root,root,-) |
128 |
|
|
%doc NEWS AUTHORS TODO |
129 |
|
|
%{_bindir}/* |
130 |
|
|
%{_datadir}/evince |
131 |
|
|
%{_datadir}/applications/* |
132 |
cjw |
113251 |
%{_datadir}/icons/hicolor/*/apps/evince* |
133 |
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
134 |
|
|
%{_datadir}/GConf/gsettings/evince.convert |
135 |
|
|
%{_mandir}/man1/evince.1* |
136 |
|
|
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
137 |
|
|
%dir %{_libdir}/evince/%{major}/ |
138 |
|
|
%dir %{_libdir}/evince/%{major}/backends |
139 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
140 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
141 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
142 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
143 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
144 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
145 |
cjw |
119125 |
#{_libdir}/evince/%{major}/backends/libpixbufdocument.so |
146 |
cjw |
113251 |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
147 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
148 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
149 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
150 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
151 |
|
|
#{_libexecdir}/evince-convert-metadata |
152 |
|
|
%{_libexecdir}/evinced |
153 |
|
|
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
154 |
|
|
%{_datadir}/thumbnailers/evince.thumbnailer |
155 |
pterjan |
35314 |
|
156 |
cjw |
119125 |
%if %build_dvi |
157 |
|
|
%files dvi |
158 |
|
|
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
159 |
|
|
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
160 |
|
|
%endif |
161 |
|
|
|
162 |
cjw |
113251 |
%files -n %{libname} |
163 |
pterjan |
35314 |
%defattr(-,root,root,-) |
164 |
cjw |
113251 |
%{_libdir}/libevdocument3.so.%{major}* |
165 |
|
|
%{_libdir}/libevview3.so.%{major}* |
166 |
pterjan |
35314 |
|
167 |
wally |
114165 |
%files -n %{girname} |
168 |
|
|
%defattr(-,root,root) |
169 |
|
|
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
170 |
|
|
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
171 |
|
|
|
172 |
|
|
%files -n %{devname} |
173 |
pterjan |
35314 |
%defattr(-,root,root,-) |
174 |
|
|
%doc ChangeLog |
175 |
cjw |
113251 |
%{_datadir}/gtk-doc/html/evince |
176 |
|
|
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
177 |
|
|
%{_datadir}/gtk-doc/html/libevview-%{api} |
178 |
|
|
%{_libdir}/libevdocument3.so |
179 |
|
|
%{_libdir}/libevview3.so |
180 |
|
|
%{_libdir}/pkgconfig/evince*pc |
181 |
|
|
%{_includedir}/evince* |
182 |
wally |
114165 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
183 |
|
|
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |