Fix non-Fedora build

This commit is contained in:
Richard Hughes 2014-11-12 17:15:54 +00:00
parent 61df36932a
commit 13703f38cb

View File

@ -5,7 +5,7 @@
Name: evince
Version: 3.14.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Document viewer
License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse
@ -43,8 +43,10 @@ BuildRequires: gnome-common >= 2.26
BuildRequires: nautilus-devel
# for the dvi backend
BuildRequires: kpathsea-devel
%if 0%{?fedora}
# for the djvu backend
BuildRequires: djvulibre-devel
%endif
# for the xps backend
BuildRequires: libgxps-devel >= %{gxps_version}
@ -91,6 +93,7 @@ Requires: texlive-collection-fontsrecommended
This package contains a backend to let evince display dvi files.
%if 0%{?fedora}
%package djvu
Summary: Evince backend for djvu files
Group: Applications/Publishing
@ -98,7 +101,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description djvu
This package contains a backend to let evince display djvu files.
%endif
%package nautilus
Summary: Evince extension for nautilus
@ -133,7 +136,9 @@ This package contains the evince web browser plugin.
--enable-introspection \
--enable-comics=yes \
--enable-dvi=yes \
%if 0%{?fedora}
--enable-djvu=yes \
%endif
--enable-xps=yes \
--enable-t1lib=yes
make %{?_smp_mflags} V=1 LIBTOOL=/usr/bin/libtool
@ -241,10 +246,12 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null ||:
%{_libdir}/evince/4/backends/dvidocument.evince-backend
%{_datadir}/appdata/evince-dvidocument.metainfo.xml
%if 0%{?fedora}
%files djvu
%{_libdir}/evince/4/backends/libdjvudocument.so
%{_libdir}/evince/4/backends/djvudocument.evince-backend
%{_datadir}/appdata/evince-djvudocument.metainfo.xml
%endif
%files nautilus
%{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so
@ -253,6 +260,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null ||:
%{_libdir}/mozilla/plugins/libevbrowserplugin.so
%changelog
* Wed Nov 12 2014 Richard Hughes <richard@hughsie.com> - 3.14.1-4
- Fix non-Fedora build
* Wed Nov 5 2014 Marek Kasik <mkasik@redhat.com> - 3.14.1-3
- Fix runtime critical warning when starting in fullscreen mode