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