1 |
%define build_dvi 0 |
%define build_dvi 0 |
2 |
%define major 3 |
|
3 |
%define api 3.0 |
%define major 3 |
4 |
%define libname %mklibname evince %{major} |
%define api 3.0 |
5 |
%define develname %mklibname -d evince |
%define gir_major 3.0 |
6 |
|
%define libname %mklibname %{name} %{major} |
7 |
Summary: GNOME Document viewer |
%define devname %mklibname -d %{name} |
8 |
Name: evince |
%define girname %mklibname %{name}-gir %{gir_major} |
9 |
Version: 3.0.2 |
|
10 |
Release: %mkrel 1 |
Summary: GNOME Document viewer |
11 |
License: GPLv2+ and GFDL+ |
Name: evince |
12 |
Group: Graphical desktop/GNOME |
Version: 3.1.2 |
13 |
URL: http://www.gnome.org |
Release: %mkrel 1 |
14 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
License: GPLv2+ and GFDL+ |
15 |
Requires: ghostscript ghostscript-module-X |
Group: Graphical desktop/GNOME |
16 |
BuildRequires: gtk+2-devel |
URL: http://www.gnome.org |
17 |
BuildRequires: libgail-3.0-devel |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz |
18 |
BuildRequires: libgnome-keyring-devel |
Requires: ghostscript |
19 |
BuildRequires: libxt-devel |
Requires: ghostscript-module-X |
20 |
BuildRequires: libpoppler-glib-devel >= 0.14.0 |
BuildRequires: gtk+3-devel |
21 |
BuildRequires: libspectre-devel |
BuildRequires: libgail-3.0-devel |
22 |
BuildRequires: nautilus-devel |
BuildRequires: libgnome-keyring-devel |
23 |
BuildRequires: libtiff-devel |
BuildRequires: libxt-devel |
24 |
BuildRequires: libxslt-proc |
BuildRequires: libpoppler-glib-devel >= 0.14.0 |
25 |
#BuildRequires: gobject-introspection-devel |
BuildRequires: libspectre-devel |
26 |
BuildRequires: glib2-devel >= 2.25.3 |
BuildRequires: nautilus-devel |
27 |
BuildRequires: cairo-devel |
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 |
#BuildRequires: t1lib-devel |
33 |
|
|
34 |
%if %build_dvi |
%if %build_dvi |
35 |
BuildRequires: texlive |
BuildRequires: texlive |
36 |
#gw just like xdvi, needed for rendering the fonts |
#gw just like xdvi, needed for rendering the fonts |
37 |
Suggests: texlive |
Suggests: texlive |
38 |
%endif |
%endif |
39 |
BuildRequires: djvulibre-devel >= 3.5.17 |
|
40 |
BuildRequires: libgcrypt-devel |
BuildRequires: djvulibre-devel >= 3.5.17 |
41 |
BuildRequires: scrollkeeper |
BuildRequires: libgcrypt-devel |
42 |
BuildRequires: ghostscript |
BuildRequires: scrollkeeper |
43 |
BuildRequires: intltool |
BuildRequires: ghostscript |
44 |
|
BuildRequires: intltool |
45 |
#gw if we run autoconf |
#gw if we run autoconf |
46 |
BuildRequires: gnome-doc-utils |
BuildRequires: gnome-doc-utils |
47 |
BuildRequires: gnome-common |
BuildRequires: gnome-common |
48 |
BuildRequires: gnome-icon-theme |
BuildRequires: gnome-icon-theme |
49 |
BuildRequires: gtk-doc |
BuildRequires: gtk-doc |
50 |
Requires(post): scrollkeeper desktop-file-utils |
Requires(post): scrollkeeper desktop-file-utils |
51 |
Requires(postun): scrollkeeper desktop-file-utils |
Requires(postun): scrollkeeper desktop-file-utils |
52 |
|
|
53 |
%description |
%description |
54 |
Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats. |
Evince is the GNOME Document viewer. Its supports PDF, PostScript and other formats. |
55 |
|
|
56 |
%package -n %{libname} |
%package -n %{libname} |
57 |
Group:System/Libraries |
Group: System/Libraries |
58 |
Summary: GNOME Document viewer library |
Summary: GNOME Document viewer library |
59 |
|
|
60 |
%description -n %{libname} |
%description -n %{libname} |
61 |
This is the GNOME Document viewer library, the shared parts of evince. |
This is the GNOME Document viewer library, the shared parts of evince. |
62 |
|
|
63 |
%package -n %{develname} |
%package -n %{devname} |
64 |
Group:Development/C |
Group: Development/C |
65 |
Summary: GNOME Document viewer library |
Summary: GNOME Document viewer library |
66 |
Requires: %{libname} = %{version} |
Requires: %{libname} = %{version}-%{release} |
67 |
Provides: libevince-devel = %{version}-%{release} |
Provides: lib%{name}-devel = %{version}-%{release} |
68 |
|
Provides: %{name}-devel = %{version}-%{release} |
69 |
|
|
70 |
%description -n %{develname} |
%description -n %{devname} |
71 |
This is the GNOME Document viewer library, the shared parts of evince. |
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 |
%prep |
82 |
%setup -q |
%setup -q |
83 |
%apply_patches |
%apply_patches |
84 |
|
|
85 |
%build |
%build |
86 |
autoreconf -fi |
autoreconf -fi |
87 |
%configure2_5x --enable-tiff --enable-djvu --enable-comics \ |
%configure2_5x \ |
88 |
|
--enable-tiff \ |
89 |
|
--enable-djvu \ |
90 |
|
--enable-comics \ |
91 |
%if %build_dvi |
%if %build_dvi |
92 |
--enable-dvi \ |
--enable-dvi \ |
93 |
%endif |
%endif |
94 |
--enable-gtk-doc |
--enable-gtk-doc \ |
95 |
#--enable-introspection |
--enable-introspection \ |
96 |
#--enable-t1lib |
--disable-static |
97 |
|
|
98 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
99 |
|
|
100 |
%install |
%install |
101 |
rm -rf $RPM_BUILD_ROOT %{name}.lang |
rm -rf %{buildroot} |
|
|
|
102 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std _ENABLE_SK=no GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
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 |
%find_lang Evince --with-gnome |
105 |
%find_lang %name --with-gnome |
%find_lang %{name} --with-gnome |
|
cat %name.lang >> Evince.lang |
|
106 |
|
|
107 |
rm -f %{buildroot}%{_libdir}/nautilus/extensions-*/libevince*a \ |
cat %{name}.lang >> Evince.lang |
|
%{buildroot}%{_libdir}/evince/*/backends/lib*a %{buildroot}%{_libdir}/lib*.a \ |
|
|
%{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled |
|
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 |
%clean |
115 |
rm -rf $RPM_BUILD_ROOT |
rm -rf %{buildroot} |
116 |
|
|
117 |
%files -f Evince.lang |
%files -f Evince.lang |
118 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
119 |
%doc NEWS AUTHORS TODO |
%doc NEWS AUTHORS TODO |
|
# README |
|
120 |
%{_bindir}/* |
%{_bindir}/* |
121 |
%{_datadir}/evince |
%{_datadir}/evince |
122 |
%{_datadir}/applications/* |
%{_datadir}/applications/* |
130 |
%{_libdir}/evince/%{major}/backends/lib* |
%{_libdir}/evince/%{major}/backends/lib* |
131 |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
132 |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
133 |
|
|
134 |
%if %build_dvi |
%if %build_dvi |
135 |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
136 |
%endif |
%endif |
137 |
|
|
138 |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
139 |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
140 |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
148 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
149 |
%{_libdir}/libevdocument3.so.%{major}* |
%{_libdir}/libevdocument3.so.%{major}* |
150 |
%{_libdir}/libevview3.so.%{major}* |
%{_libdir}/libevview3.so.%{major}* |
|
#%{_libdir}/girepository-1.0/EvinceDocument-%{api}.typelib |
|
|
#%{_libdir}/girepository-1.0/EvinceView-%{api}.typelib |
|
151 |
|
|
152 |
%files -n %{develname} |
%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,-) |
%defattr(-,root,root,-) |
159 |
%doc ChangeLog |
%doc ChangeLog |
160 |
%{_datadir}/gtk-doc/html/evince |
%{_datadir}/gtk-doc/html/evince |
162 |
%{_datadir}/gtk-doc/html/libevview-%{api} |
%{_datadir}/gtk-doc/html/libevview-%{api} |
163 |
%{_libdir}/libevdocument3.so |
%{_libdir}/libevdocument3.so |
164 |
%{_libdir}/libevview3.so |
%{_libdir}/libevview3.so |
|
%{_libdir}/*.la |
|
165 |
%{_libdir}/pkgconfig/evince*pc |
%{_libdir}/pkgconfig/evince*pc |
166 |
%{_includedir}/evince* |
%{_includedir}/evince* |
167 |
#%{_datadir}/gir-1.0/EvinceDocument-%{api}.gir |
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir |
168 |
#%{_datadir}/gir-1.0/EvinceView-%{api}.gir |
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir |
|
|
|
|
|
|
|
|
|