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 |
fwang |
136165 |
Version: 3.1.90 |
13 |
|
|
Release: %mkrel 1 |
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 |
fwang |
136180 |
Patch0: evince-3.1.90-link.patch |
19 |
wally |
114165 |
Requires: ghostscript |
20 |
|
|
Requires: ghostscript-module-X |
21 |
fwang |
136165 |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
22 |
|
|
BuildRequires: pkgconfig(cairo-pdf) |
23 |
|
|
BuildRequires: pkgconfig(cairo-ps) |
24 |
|
|
BuildRequires: pkgconfig(ddjvuapi) >= 3.5.17 |
25 |
|
|
BuildRequires: pkgconfig(gail-3.0) >= 3.0.2 |
26 |
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.25.11 |
27 |
|
|
BuildRequires: pkgconfig(gnome-icon-theme) >= 2.17.1 |
28 |
|
|
BuildRequires: pkgconfig(gnome-keyring-1) >= 2.22.0 |
29 |
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6 |
30 |
|
|
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
31 |
|
|
BuildRequires: pkgconfig(gthread-2.0) |
32 |
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.2 |
33 |
|
|
BuildRequires: pkgconfig(gtk+-unix-print-3.0) >= 3.0.2 |
34 |
|
|
BuildRequires: pkgconfig(gtk+-x11-3.0) |
35 |
|
|
BuildRequires: pkgconfig(ice) |
36 |
|
|
#fwang: n/a at the moment of 20110830 |
37 |
|
|
#BuildRequires: pkgconfig(libgxps) >= 0.0.1 |
38 |
|
|
BuildRequires: pkgconfig(libnautilus-extension) >= 2.91.4 |
39 |
|
|
BuildRequires: pkgconfig(libspectre) >= 0.2.0 |
40 |
|
|
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.0 |
41 |
|
|
BuildRequires: pkgconfig(poppler-glib) >= 0.16.0 |
42 |
|
|
BuildRequires: pkgconfig(sm) >= 1.0.0 |
43 |
|
|
BuildRequires: pkgconfig(x11) |
44 |
|
|
BuildRequires: tiff-devel |
45 |
wally |
114165 |
BuildRequires: ghostscript |
46 |
|
|
BuildRequires: intltool |
47 |
pterjan |
35314 |
#gw if we run autoconf |
48 |
wally |
114165 |
BuildRequires: gnome-doc-utils |
49 |
|
|
BuildRequires: gnome-common |
50 |
|
|
BuildRequires: gnome-icon-theme |
51 |
|
|
BuildRequires: gtk-doc |
52 |
pterjan |
35314 |
|
53 |
|
|
%description |
54 |
cjw |
119125 |
Evince is the GNOME Document viewer. It supports PDF, PostScript and other formats. |
55 |
|
|
To view .dvi files as produced by TeX in evince, install the %{name}-dvi package. |
56 |
pterjan |
35314 |
|
57 |
cjw |
119125 |
%if %build_dvi |
58 |
|
|
%package dvi |
59 |
|
|
Summary: TeX DVI document support for evince |
60 |
|
|
Group: Graphical desktop/GNOME |
61 |
|
|
BuildRequires: kpathsea-devel |
62 |
|
|
#gw just like xdvi, needed for rendering the fonts |
63 |
|
|
Requires: texlive |
64 |
|
|
Requires: texlive-texmf |
65 |
|
|
Requires: %{name} = %{version}-%{release} |
66 |
|
|
|
67 |
|
|
%description dvi |
68 |
|
|
This package adds support for displaying .dvi files to evince. These files are |
69 |
|
|
produced by TeX, often using a macro package like LaTeX. |
70 |
|
|
%endif |
71 |
|
|
|
72 |
cjw |
113251 |
%package -n %{libname} |
73 |
wally |
114165 |
Group: System/Libraries |
74 |
|
|
Summary: GNOME Document viewer library |
75 |
pterjan |
35314 |
|
76 |
cjw |
113251 |
%description -n %{libname} |
77 |
pterjan |
35314 |
This is the GNOME Document viewer library, the shared parts of evince. |
78 |
|
|
|
79 |
wally |
114165 |
%package -n %{devname} |
80 |
|
|
Group: Development/C |
81 |
|
|
Summary: GNOME Document viewer library |
82 |
|
|
Requires: %{libname} = %{version}-%{release} |
83 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
84 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
85 |
pterjan |
35314 |
|
86 |
wally |
114165 |
%description -n %{devname} |
87 |
pterjan |
35314 |
This is the GNOME Document viewer library, the shared parts of evince. |
88 |
|
|
|
89 |
wally |
114165 |
%package -n %{girname} |
90 |
|
|
Summary: GObject Introspection interface description for %{name} |
91 |
|
|
Group: System/Libraries |
92 |
|
|
Requires: %{libname} = %{version}-%{release} |
93 |
|
|
|
94 |
|
|
%description -n %{girname} |
95 |
|
|
GObject Introspection interface description for %{name}. |
96 |
|
|
|
97 |
pterjan |
35314 |
%prep |
98 |
|
|
%setup -q |
99 |
fwang |
136180 |
%patch0 -p0 |
100 |
pterjan |
35314 |
|
101 |
|
|
%build |
102 |
fwang |
136180 |
NOCONFIGURE=yes gnome-autogen.sh |
103 |
wally |
114165 |
%configure2_5x \ |
104 |
|
|
--enable-tiff \ |
105 |
|
|
--enable-djvu \ |
106 |
|
|
--enable-comics \ |
107 |
pterjan |
35314 |
%if %build_dvi |
108 |
wally |
114165 |
--enable-dvi \ |
109 |
pterjan |
35314 |
%endif |
110 |
wally |
114165 |
--enable-gtk-doc \ |
111 |
|
|
--enable-introspection \ |
112 |
fwang |
136165 |
--disable-static \ |
113 |
|
|
--disable-scrollkeeper --disable-schemas-compile |
114 |
pterjan |
35314 |
|
115 |
fwang |
136165 |
%make |
116 |
pterjan |
35314 |
|
117 |
|
|
%install |
118 |
wally |
114165 |
rm -rf %{buildroot} |
119 |
fwang |
136165 |
%makeinstall_std |
120 |
pterjan |
35314 |
|
121 |
wally |
114165 |
%find_lang %{name} --with-gnome |
122 |
pterjan |
35314 |
|
123 |
fwang |
136166 |
find %{buildroot} -name *.la | xargs rm |
124 |
wally |
114165 |
|
125 |
pterjan |
35314 |
%clean |
126 |
wally |
114165 |
rm -rf %{buildroot} |
127 |
pterjan |
35314 |
|
128 |
fwang |
136165 |
%files -f %name.lang |
129 |
pterjan |
35314 |
%defattr(-,root,root,-) |
130 |
|
|
%doc NEWS AUTHORS TODO |
131 |
|
|
%{_bindir}/* |
132 |
|
|
%{_datadir}/evince |
133 |
|
|
%{_datadir}/applications/* |
134 |
cjw |
113251 |
%{_datadir}/icons/hicolor/*/apps/evince* |
135 |
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
136 |
|
|
%{_datadir}/GConf/gsettings/evince.convert |
137 |
|
|
%{_mandir}/man1/evince.1* |
138 |
|
|
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
139 |
|
|
%dir %{_libdir}/evince/%{major}/ |
140 |
|
|
%dir %{_libdir}/evince/%{major}/backends |
141 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libcomicsdocument.so |
142 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
143 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libdjvudocument.so |
144 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
145 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libpdfdocument.so |
146 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
147 |
cjw |
119125 |
#{_libdir}/evince/%{major}/backends/libpixbufdocument.so |
148 |
cjw |
113251 |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
149 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libpsdocument.so |
150 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
151 |
cjw |
119125 |
%{_libdir}/evince/%{major}/backends/libtiffdocument.so |
152 |
cjw |
113251 |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
153 |
|
|
#{_libexecdir}/evince-convert-metadata |
154 |
|
|
%{_libexecdir}/evinced |
155 |
|
|
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
156 |
|
|
%{_datadir}/thumbnailers/evince.thumbnailer |
157 |
pterjan |
35314 |
|
158 |
cjw |
119125 |
%if %build_dvi |
159 |
|
|
%files dvi |
160 |
|
|
%{_libdir}/evince/%{major}/backends/libdvidocument.so |
161 |
|
|
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
162 |
|
|
%endif |
163 |
|
|
|
164 |
cjw |
113251 |
%files -n %{libname} |
165 |
pterjan |
35314 |
%defattr(-,root,root,-) |
166 |
cjw |
113251 |
%{_libdir}/libevdocument3.so.%{major}* |
167 |
|
|
%{_libdir}/libevview3.so.%{major}* |
168 |
pterjan |
35314 |
|
169 |
wally |
114165 |
%files -n %{girname} |
170 |
|
|
%defattr(-,root,root) |
171 |
|
|
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib |
172 |
|
|
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib |
173 |
|
|
|
174 |
|
|
%files -n %{devname} |
175 |
pterjan |
35314 |
%defattr(-,root,root,-) |
176 |
|
|
%doc ChangeLog |
177 |
cjw |
113251 |
%{_datadir}/gtk-doc/html/evince |
178 |
|
|
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
179 |
|
|
%{_datadir}/gtk-doc/html/libevview-%{api} |
180 |
|
|
%{_libdir}/libevdocument3.so |
181 |
|
|
%{_libdir}/libevview3.so |
182 |
|
|
%{_libdir}/pkgconfig/evince*pc |
183 |
|
|
%{_includedir}/evince* |
184 |
wally |
114165 |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
185 |
|
|
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |