try again
This commit is contained in:
parent
4d8d022c6e
commit
fafdbee1a6
139
evince.spec
139
evince.spec
@ -4,42 +4,42 @@
|
|||||||
%define dbus_version 0.60
|
%define dbus_version 0.60
|
||||||
%define theme_version 2.17.1
|
%define theme_version 2.17.1
|
||||||
|
|
||||||
Name: evince
|
Name: evince
|
||||||
Version: 2.30.0
|
Version: 2.30.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Document viewer
|
Summary: Document viewer
|
||||||
|
|
||||||
License: GPLv2+ and GFDL
|
License: GPLv2+ and GFDL
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
URL: http://projects.gnome.org/evince/
|
URL: http://projects.gnome.org/evince/
|
||||||
Source0: http://download.gnome.org/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
|
Source0: http://download.gnome.org/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
|
||||||
# http://bugzilla.gnome.org/show_bug.cgi?id=455759
|
# http://bugzilla.gnome.org/show_bug.cgi?id=455759
|
||||||
# Patch1: duplex-copies.patch
|
# Patch1: duplex-copies.patch
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=562648
|
# https://bugzilla.redhat.com/show_bug.cgi?id=562648
|
||||||
Patch2: evince-t1font-mapping.patch
|
Patch2: evince-t1font-mapping.patch
|
||||||
Patch3: evince-deprecated-functions.patch
|
Patch3: evince-deprecated-functions.patch
|
||||||
|
|
||||||
BuildRequires: gtk2-devel >= %{gtk2_version}
|
BuildRequires: gtk2-devel >= %{gtk2_version}
|
||||||
BuildRequires: glib2-devel >= %{glib2_version}
|
BuildRequires: glib2-devel >= %{glib2_version}
|
||||||
BuildRequires: poppler-glib-devel >= %{poppler_version}
|
BuildRequires: poppler-glib-devel >= %{poppler_version}
|
||||||
BuildRequires: libXt-devel
|
BuildRequires: libXt-devel
|
||||||
BuildRequires: nautilus-devel
|
BuildRequires: nautilus-devel
|
||||||
BuildRequires: gnome-keyring-devel
|
BuildRequires: gnome-keyring-devel
|
||||||
BuildRequires: libglade2-devel
|
BuildRequires: libglade2-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libspectre-devel
|
BuildRequires: libspectre-devel
|
||||||
BuildRequires: gnome-doc-utils
|
BuildRequires: gnome-doc-utils
|
||||||
BuildRequires: scrollkeeper
|
BuildRequires: scrollkeeper
|
||||||
BuildRequires: dbus-glib-devel >= %{dbus_version}
|
BuildRequires: dbus-glib-devel >= %{dbus_version}
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: gnome-icon-theme >= %{theme_version}
|
BuildRequires: gnome-icon-theme >= %{theme_version}
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: GConf2-devel
|
BuildRequires: GConf2-devel
|
||||||
BuildRequires: t1lib-devel
|
BuildRequires: t1lib-devel
|
||||||
|
|
||||||
# for the dvi backend
|
# for the dvi backend
|
||||||
BuildRequires: kpathsea-devel
|
BuildRequires: kpathsea-devel
|
||||||
@ -109,11 +109,12 @@ This package contains a backend to let evince display djvu files.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --disable-scrollkeeper \
|
%configure --disable-static --disable-scrollkeeper \
|
||||||
--with-print=gtk \
|
--enable-gtk-doc \
|
||||||
--enable-comics=yes \
|
--with-print=gtk \
|
||||||
--enable-dvi=yes \
|
--enable-comics=yes \
|
||||||
--enable-djvu=yes \
|
--enable-dvi=yes \
|
||||||
--enable-t1lib=yes
|
--enable-djvu=yes \
|
||||||
|
--enable-t1lib=yes
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -146,35 +147,35 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ "$1" -gt 1 ]; then
|
if [ "$1" -gt 1 ]; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-uninstall-rule \
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas \
|
||||||
>/dev/null || :
|
>/dev/null || :
|
||||||
if [ -f %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas ]; then
|
if [ -f %{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas ]; then
|
||||||
gconftool-2 --makefile-uninstall-rule \
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas \
|
||||||
>/dev/null || :
|
>/dev/null || :
|
||||||
fi
|
fi
|
||||||
if [ -f %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas ]; then
|
if [ -f %{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas ]; then
|
||||||
gconftool-2 --makefile-uninstall-rule \
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas \
|
||||||
>/dev/null || :
|
>/dev/null || :
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-install-rule \
|
gconftool-2 --makefile-install-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas \
|
||||||
>/dev/null || :
|
>/dev/null || :
|
||||||
|
|
||||||
update-desktop-database &> /dev/null ||:
|
update-desktop-database &> /dev/null ||:
|
||||||
|
|
||||||
@ -184,15 +185,15 @@ touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
|||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-uninstall-rule \
|
gconftool-2 --makefile-uninstall-rule \
|
||||||
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
%{_sysconfdir}/gconf/schemas/evince.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-ps.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-comics.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-djvu.schemas \
|
||||||
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas \
|
%{_sysconfdir}/gconf/schemas/evince-thumbnailer-dvi.schemas \
|
||||||
>/dev/null || :
|
>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user