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