1 # 2 # spec file for package evince 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: mattman 9 # 10 Name: evince 11 License: GPL 12 Group: System/GUI/GNOME 13 # poppler should be bumped at the same time - evince depends on poppler. 14 Version: 0.6.1 15 Release: 1 16 Distribution: Java Desktop System 17 Vendor: Sun Microsystems, Inc. 18 Summary: Document viewer 19 Source: http://ftp.gnome.org/pub/GNOME/sources/evince/0.6/%{name}-%{version}.tar.bz2 20 Patch1: evince-01-menu-entry.diff 21 Patch2: evince-02-gs-sfw.diff 22 # date:2007-03-06 bugster:6524137 owner:gheet type:bug 23 Patch3: evince-03-always-generate-ps.diff 24 URL: http://www.gnome.org 25 BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 Docdir: %{_defaultdocdir}/%{name} 27 Autoreqprov: on 28 29 %define gtk2_version 2.6.0 30 %define libgnomeui_version 2.6.0 31 %define dbus_version 0.33 32 %define poppler_version 0.4.0 33 %define libgnomeprintui_version 2.5.1 34 35 Requires: gtk2 >= %{gtk2_version} 36 Requires: libgnomeui >= %{libgnomeui_version} 37 Requires: dbus >= %{dbus_version} 38 Requires: poppler >= %{poppler_version} 39 Requires: libgnomeprintui >= %{libgnomeprintui_version} 40 BuildRequires: gtk2-devel >= %{gtk2_version} 41 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 42 BuildRequires: dbus-devel >= %{dbus_version} 43 BuildRequires: poppler-devel >= %{poppler_version} 44 BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version} 45 46 %description 47 Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript. 48 49 %prep 50 %setup -q 51 %patch1 -p1 52 %patch2 -p1 53 %patch3 -p1 54 55 %build 56 %ifos linux 57 if [ -x /usr/bin/getconf ]; then 58 CPUS=`getconf _NPROCESSORS_ONLN` 59 fi 60 %else 61 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 62 %endif 63 if test "x$CPUS" = "x" -o $CPUS = 0; then 64 CPUS=1 65 fi 66 67 libtoolize --force 68 aclocal $ACLOCAL_FLAGS 69 automake -a -c -f 70 autoconf 71 CFLAGS="$RPM_OPT_FLAGS" \ 72 ./configure \ 73 --prefix=%{_prefix} \ 74 --libexecdir=%{_libexecdir} \ 75 --sysconfdir=%{_sysconfdir} \ 76 --mandir=%{_mandir} 77 make -j $CPUS 78 79 %install 80 make -i install DESTDIR=$RPM_BUILD_ROOT 81 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.a 82 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la 83 84 %post 85 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 86 SCHEMAS="evince.schemas evince-thumbnailer.schemas" 87 for S in $SCHEMAS; do 88 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 89 done 90 91 %clean 92 rm -rf $RPM_BUILD_ROOT 93 94 %files 95 %defattr (-, root, root) 96 %{_bindir}/* 97 %{_libdir}/nautilus/extensions-1.0/*.so* 98 %{_datadir}/locale/*/LC_MESSAGES/*.mo 99 %{_datadir}/applications/* 100 %{_datadir}/evince/* 101 %{_datadir}/gnome/help/* 102 %{_datadir}/omf/* 103 %{_sysconfdir}/gconf/schemas/* 104 105 %changelog 106 * Tue Mar 06 2007 - ghee.teo@sun.com 107 - Created evince-03-always-generate-ps.diff to fix 6524137. This patch 108 is for gnome-2-16 branch only as newer version of evince has not this bug. 109 * Tue Oct 10 2006 - damien.carbery@sun.com 110 - Bump to 0.6.1. 111 * Tue Sep 05 2006 - brian.cameron@sun.com 112 - Bump to 0.6.0. 113 * Tue Aug 08 2006 - brian.cameron@sun.com 114 - Bump to 0.5.5. 115 * Wed Jul 20 2006 - dermot.mccluskey@sun.com 116 - Bump to 0.5.4. 117 And remove patch 03 (upstream) 118 * Thu Jun 15 2006 - ghee.teo@sun.com 119 - Fixed 6437235 stop evince from crashing on PAPI print backend. 120 * Fri Jun 02 2006 - glynn.foster@sun.com 121 - Bump to 0.5.3 122 * Fri Apr 28 2006 - glynn.foster@sun.com 123 - Add patch to install into Office submenu 124 with 'Evince Document Viewer'. 125 * Tue Mar 14 2006 - damien.carbery@sun.com 126 - Bump to 0.5.2. 127 * Fri Jan 20 2006 - damien.carbery@sun.com 128 - Bump to 0.5.0. 129 * Tue Nov 08 2005 - glynn.foster@sun.com 130 - Show the .desktop file entry for the moment. 131 * Fri Sep 30 2005 - brian.cameron@sun.com 132 - Bump to 0.4.0 133 * Wed Aug 24 2005 - damien.carbery@sun.com 134 - Add libgnomeprintui dependency. 135 * Tue Aug 16 2005 - glynn.foster@sun.com 136 - New spec file for evince 137