1 |
%define build_dvi 0 |
%define build_dvi 0 |
|
%define build_impress 1 |
|
2 |
%define major 3 |
%define major 3 |
3 |
%define api 2.32 |
%define api 3.0 |
4 |
%define libname %mklibname evince %major |
%define libname %mklibname evince %{major} |
5 |
%define develname %mklibname -d evince |
%define develname %mklibname -d evince |
6 |
|
|
7 |
Summary: GNOME Document viewer |
Summary: GNOME Document viewer |
8 |
Name: evince |
Name: evince |
9 |
Version: 2.32.0 |
Version: 3.0.2 |
10 |
Release: %mkrel 4 |
Release: %mkrel 1 |
11 |
License: GPLv2+ and GFDL+ |
License: GPLv2+ and GFDL+ |
12 |
Group: Graphical desktop/GNOME |
Group: Graphical desktop/GNOME |
13 |
URL: http://www.gnome.org |
URL: http://www.gnome.org |
14 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2 |
|
Patch0: Check-for-NULL-in-synctex_backward_search.patch |
|
|
Patch1: Update-to-poppler-api-changes.patch |
|
|
Patch2: backends:-Fix-another-security-issue-in-the-dvi-backend.patch |
|
|
Patch3: backends:-Fix-several-security-issues-in-the-dvi-backend.patch |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
|
15 |
Requires: ghostscript ghostscript-module-X |
Requires: ghostscript ghostscript-module-X |
|
BuildRequires: libGConf2-devel >= 2.31.2 |
|
16 |
BuildRequires: gtk+2-devel |
BuildRequires: gtk+2-devel |
17 |
BuildRequires: libgail-devel |
BuildRequires: libgail-devel |
18 |
BuildRequires: libgnome-keyring-devel |
BuildRequires: libgnome-keyring-devel |
24 |
BuildRequires: libxslt-proc |
BuildRequires: libxslt-proc |
25 |
#BuildRequires: gobject-introspection-devel |
#BuildRequires: gobject-introspection-devel |
26 |
BuildRequires: glib2-devel >= 2.25.3 |
BuildRequires: glib2-devel >= 2.25.3 |
27 |
|
BuildRequires: cairo-devel |
28 |
#BuildRequires: t1lib-devel |
#BuildRequires: t1lib-devel |
29 |
%if %build_dvi |
%if %build_dvi |
30 |
BuildRequires: texlive |
BuildRequires: texlive |
47 |
%description |
%description |
48 |
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. |
49 |
|
|
50 |
%package -n %libname |
%package -n %{libname} |
51 |
Group:System/Libraries |
Group:System/Libraries |
52 |
Summary: GNOME Document viewer library |
Summary: GNOME Document viewer library |
53 |
|
|
54 |
%description -n %libname |
%description -n %{libname} |
55 |
This is the GNOME Document viewer library, the shared parts of evince. |
This is the GNOME Document viewer library, the shared parts of evince. |
56 |
|
|
57 |
%package -n %develname |
%package -n %{develname} |
58 |
Group:Development/C |
Group:Development/C |
59 |
Summary: GNOME Document viewer library |
Summary: GNOME Document viewer library |
60 |
Requires: %libname = %version |
Requires: %{libname} = %{version} |
61 |
Provides: libevince-devel = %version-%release |
Provides: libevince-devel = %{version}-%{release} |
62 |
|
|
63 |
%description -n %develname |
%description -n %{develname} |
64 |
This is the GNOME Document viewer library, the shared parts of evince. |
This is the GNOME Document viewer library, the shared parts of evince. |
65 |
|
|
66 |
%prep |
%prep |
67 |
%setup -q |
%setup -q |
68 |
%apply_patches |
%apply_patches |
|
autoreconf -fi |
|
69 |
|
|
70 |
%build |
%build |
71 |
%configure2_5x --enable-tiff --enable-djvu --enable-pixbuf --enable-comics \ |
autoreconf -fi |
72 |
%if %build_impress |
%configure2_5x --enable-tiff --enable-djvu --enable-comics \ |
|
--enable-impress \ |
|
|
%endif |
|
73 |
%if %build_dvi |
%if %build_dvi |
74 |
--enable-dvi \ |
--enable-dvi \ |
75 |
%endif |
%endif |
80 |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
%make GLIB_COMPILE_SCHEMAS=/usr/bin/glib-compile-schemas |
81 |
|
|
82 |
%install |
%install |
83 |
rm -rf $RPM_BUILD_ROOT %name.lang |
rm -rf $RPM_BUILD_ROOT %{name}.lang |
84 |
|
|
85 |
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 |
86 |
|
|
87 |
%find_lang Evince --with-gnome |
%find_lang Evince --with-gnome |
88 |
%find_lang %name --with-gnome |
%find_lang %name --with-gnome |
89 |
cat %name.lang >> Evince.lang |
cat %name.lang >> Evince.lang |
|
for omf in %buildroot%_datadir/omf/*/{*-??,*-??_??}.omf;do |
|
|
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed s!%buildroot!!)" >> Evince.lang |
|
|
done |
|
|
|
|
|
rm -f %buildroot%_libdir/nautilus/extensions-*/libevince*a \ |
|
|
%buildroot%_libdir/evince/*/backends/lib*a %buildroot%_libdir/lib*.a \ |
|
|
%buildroot%_datadir/glib-2.0/schemas/gschemas.compiled |
|
90 |
|
|
91 |
|
rm -f %{buildroot}%{_libdir}/nautilus/extensions-*/libevince*a \ |
92 |
|
%{buildroot}%{_libdir}/evince/*/backends/lib*a %{buildroot}%{_libdir}/lib*.a \ |
93 |
|
%{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled |
94 |
|
|
|
%preun |
|
|
%preun_uninstall_gconf_schemas %schemas |
|
95 |
|
|
96 |
%clean |
%clean |
97 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
100 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
101 |
%doc NEWS AUTHORS TODO |
%doc NEWS AUTHORS TODO |
102 |
# README |
# README |
|
%_sysconfdir/gconf/schemas/%name-thumbnailer.schemas |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-djvu.schemas |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-comics.schemas |
|
|
%if %build_dvi |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-dvi.schemas |
|
|
%endif |
|
|
%_sysconfdir/gconf/schemas/%name-thumbnailer-ps.schemas |
|
103 |
%{_bindir}/* |
%{_bindir}/* |
104 |
%{_datadir}/evince |
%{_datadir}/evince |
105 |
%{_datadir}/applications/* |
%{_datadir}/applications/* |
106 |
%_datadir/icons/hicolor/*/apps/evince* |
%{_datadir}/icons/hicolor/*/apps/evince* |
107 |
%_datadir/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml |
108 |
%_datadir/GConf/gsettings/evince.convert |
%{_datadir}/GConf/gsettings/evince.convert |
109 |
%dir %_datadir/omf/%name |
%{_mandir}/man1/evince.1* |
110 |
%_datadir/omf/%name/%name-C.omf |
%{_libdir}/nautilus/extensions-3.0/libevince*so* |
111 |
%_mandir/man1/evince.1* |
%dir %{_libdir}/evince/%{major}/ |
112 |
%_libdir/nautilus/extensions-2.0/libevince*so* |
%dir %{_libdir}/evince/%{major}/backends |
113 |
%dir %_libdir/evince/%major/ |
%{_libdir}/evince/%{major}/backends/lib* |
114 |
%dir %_libdir/evince/%major/backends |
%{_libdir}/evince/%{major}/backends/comicsdocument.evince-backend |
115 |
%_libdir/evince/%major/backends/lib* |
%{_libdir}/evince/%{major}/backends/djvudocument.evince-backend |
|
%_libdir/evince/%major/backends/comicsdocument.evince-backend |
|
|
%_libdir/evince/%major/backends/djvudocument.evince-backend |
|
116 |
%if %build_dvi |
%if %build_dvi |
117 |
%_libdir/evince/%major/backends/dvidocument.evince-backend |
%{_libdir}/evince/%{major}/backends/dvidocument.evince-backend |
|
%endif |
|
|
%if %build_impress |
|
|
%_libdir/evince/%major/backends/impressdocument.evince-backend |
|
118 |
%endif |
%endif |
119 |
%_libdir/evince/%major/backends/pdfdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/pdfdocument.evince-backend |
120 |
%_libdir/evince/%major/backends/pixbufdocument.evince-backend |
#{_libdir}/evince/%{major}/backends/pixbufdocument.evince-backend |
121 |
%_libdir/evince/%major/backends/psdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/psdocument.evince-backend |
122 |
%_libdir/evince/%major/backends/tiffdocument.evince-backend |
%{_libdir}/evince/%{major}/backends/tiffdocument.evince-backend |
123 |
%_libexecdir/evince-convert-metadata |
#{_libexecdir}/evince-convert-metadata |
124 |
%_libexecdir/evinced |
%{_libexecdir}/evinced |
125 |
%_datadir/dbus-1/services/org.gnome.evince.Daemon.service |
%{_datadir}/dbus-1/services/org.gnome.evince.Daemon.service |
126 |
|
%{_datadir}/thumbnailers/evince.thumbnailer |
127 |
|
|
128 |
%files -n %libname |
%files -n %{libname} |
129 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
130 |
%_libdir/libevdocument.so.%{major}* |
%{_libdir}/libevdocument3.so.%{major}* |
131 |
%_libdir/libevview.so.%{major}* |
%{_libdir}/libevview3.so.%{major}* |
132 |
#%_libdir/girepository-1.0/EvinceDocument-%api.typelib |
#%{_libdir}/girepository-1.0/EvinceDocument-%{api}.typelib |
133 |
#%_libdir/girepository-1.0/EvinceView-%api.typelib |
#%{_libdir}/girepository-1.0/EvinceView-%{api}.typelib |
134 |
|
|
135 |
%files -n %develname |
%files -n %{develname} |
136 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
137 |
%doc ChangeLog |
%doc ChangeLog |
138 |
%_datadir/gtk-doc/html/evince |
%{_datadir}/gtk-doc/html/evince |
139 |
%_datadir/gtk-doc/html/libevdocument-%api |
%{_datadir}/gtk-doc/html/libevdocument-%{api} |
140 |
%_datadir/gtk-doc/html/libevview-%api |
%{_datadir}/gtk-doc/html/libevview-%{api} |
141 |
%_libdir/libevdocument.so |
%{_libdir}/libevdocument3.so |
142 |
%_libdir/libevview.so |
%{_libdir}/libevview3.so |
143 |
%_libdir/*.la |
%{_libdir}/*.la |
144 |
%_libdir/pkgconfig/evince*pc |
%{_libdir}/pkgconfig/evince*pc |
145 |
%_includedir/evince* |
%{_includedir}/evince* |
146 |
#%_datadir/gir-1.0/EvinceDocument-%api.gir |
#%{_datadir}/gir-1.0/EvinceDocument-%{api}.gir |
147 |
#%_datadir/gir-1.0/EvinceView-%api.gir |
#%{_datadir}/gir-1.0/EvinceView-%{api}.gir |
148 |
|
|
149 |
|
|
150 |
|
|