evince.spec revision 12288
10710N/A#
10710N/A# spec file for package evince
10710N/A#
10710N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10710N/A# This file and all modifications and additions to the pristine
10710N/A# package are under the same license as the package itself.
10710N/A#
10710N/A# Owner: dkenny
10843N/A#
10843N/A%include l10n.inc
10710N/AName: evince
10710N/ALicense: GPL
10710N/AGroup: System/GUI/GNOME
13510N/A# poppler should be bumped at the same time - evince depends on poppler.
10710N/AVersion: 2.21.90
10710N/ARelease: 1
10710N/ADistribution: Java Desktop System
10710N/AVendor: Sun Microsystems, Inc.
10710N/ASummary: Document viewer
10710N/ASource: http://ftp.gnome.org/pub/GNOME/sources/evince/2.21/%{name}-%{version}.tar.bz2
11925N/ASource1: %{name}-po-sun-%{po_sun_version}.tar.bz2
10710N/A# date:2006-06-06 type:branding owner:gman
12773N/APatch1: evince-01-menu-entry.diff
12773N/A# date:2006-05-29 type:branding owner:dkenny bugster:6430428,6431474,6553312
12773N/APatch2: evince-02-gs-sfw.diff
10710N/A# date:2008-01-11 type:bug owner:dcarbery bugzilla:508808
10881N/APatch3: evince-03-nautilus-dir.diff
10710N/AURL: http://www.gnome.org
10881N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13303N/ADocdir: %{_defaultdocdir}/%{name}
10881N/AAutoreqprov: on
10710N/A
10881N/A%define gtk2_version 2.6.0
13303N/A%define libgnomeui_version 2.6.0
10881N/A%define dbus_version 0.33
13303N/A%define poppler_version 0.4.0
11114N/A%define libgnomeprintui_version 2.5.1
13303N/A
13303N/ARequires: gtk2 >= %{gtk2_version}
10710N/ARequires: libgnomeui >= %{libgnomeui_version}
10710N/ARequires: dbus >= %{dbus_version}
10710N/ARequires: poppler >= %{poppler_version}
10710N/ARequires: libgnomeprintui >= %{libgnomeprintui_version}
13079N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10710N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
10710N/ABuildRequires: dbus-devel >= %{dbus_version}
10710N/ABuildRequires: poppler-devel >= %{poppler_version}
10710N/ABuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
10710N/A
10710N/A%description
10710N/AEvince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
10710N/A
10710N/A%prep
10710N/A%setup -q
10710N/A%if %build_l10n
10710N/Abzcat %SOURCE1 | tar xf -
10710N/Acd po-sun; make; cd ..
10710N/A%endif
10710N/A%patch1 -p1
10710N/A%patch2 -p1
10710N/A%patch3 -p1
10710N/A
10710N/A# Remove DOS line end chars. Fixes #395105.
10710N/Ados2unix -ascii po/be.po po/be.po
10710N/A
10710N/A%build
10710N/A%ifos linux
10710N/Aif [ -x /usr/bin/getconf ]; then
10710N/A CPUS=`getconf _NPROCESSORS_ONLN`
10710N/Afi
10710N/A%else
10710N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10710N/A%endif
10710N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13079N/A CPUS=1
13079N/Afi
13079N/Aexport PKG_CONFIG_TOP_BUILD_DIR=${PWD}
13079N/A
10710N/Alibtoolize --force
10710N/Aintltoolize --force --copy --automake
10710N/Aaclocal $ACLOCAL_FLAGS
10710N/Aautomake -a -c -f
10710N/Aautoconf
11114N/ACFLAGS="$RPM_OPT_FLAGS -I/usr/include/libxml2" \
13303N/A ./configure \
10710N/A --prefix=%{_prefix} \
10710N/A --libexecdir=%{_libexecdir} \
12831N/A --sysconfdir=%{_sysconfdir} \
12831N/A --disable-comics \
10710N/A --mandir=%{_mandir}
10710N/Amake -j $CPUS
10710N/A
10710N/A%install
10710N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
10710N/Arm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.a
10710N/Arm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la
10710N/A
10710N/A%post
10710N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
10710N/ASCHEMAS="evince.schemas evince-thumbnailer.schemas"
10710N/Afor S in $SCHEMAS; do
10710N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
11149N/Adone
12773N/A
12773N/A%clean
12773N/Arm -rf $RPM_BUILD_ROOT
12773N/A
12773N/A%files
10710N/A%defattr (-, root, root)
10710N/A%{_bindir}/*
10710N/A%{_libdir}/nautilus/extensions-2.0/*.so*
10710N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
10710N/A%{_datadir}/applications/*
10710N/A%{_datadir}/evince/*
10710N/A%{_datadir}/gnome/help/*
10710N/A%{_datadir}/omf/*
10710N/A%{_sysconfdir}/gconf/schemas/*
10710N/A
10710N/A%changelog
10710N/A* Tue Jan 29 2008 - damien.carbery@sun.com
10710N/A- Bump to 2.21.90.
10710N/A* Fri Jan 11 2008 - damien.carbery@sun.com
10710N/A- Add patch 03-nautilus-dir to determine nautilus extension dir via pkgconfig.
10710N/A* Fri Dec 07 2007 - ghee.teo@sun.com
10710N/A- added --disable-comics to configure option as it failed on Solaris.
12831N/A* Tue Dec 04 2007 - damien.carbery@sun.com
13282N/A- Bump to 2.21.1.
13282N/A* Tue Nov 27 2007 - damien.carbery@sun.com
13079N/A- Bump to 2.20.2. Remove upstream patch, 03-zero-pages-up.
13079N/A* Mon Nov 19 2007 - darren.kenny@sun.com
13079N/A- Add a new patch, evince-03-zero-pages-up.diff, to fix bug#6631614
13466N/A* Fri Oct 19 2007 - damien.carbery@sun.com
12831N/A- Bump to 2.20.1.
10710N/A* Tue Sep 18 2007 - damien.carbery@sun.com
10710N/A- Bump to 2.20.0.
10710N/A* Thu Aug 30 2007 - damien.carbery@sun.com
10710N/A- Add intltoolize call to update intltool scripts.
10710N/A* Tue Aug 28 2007 - damien.carbery@sun.com
10710N/A- Bump to 2.19.4.
10710N/A* Tue Jul 31 2007 - damien.carbery@sun.com
12741N/A- Bump to 0.9.3.
10710N/A* Tue Jul 10 2007 - damien.carbery@sun.com
10710N/A- Bump to 0.9.2.
10710N/A* Tue Jun 19 2007 - damien.carbery@sun.com
12557N/A- Bump to 0.9.1.
11867N/A* Tue May 15 2007 - damien.carbery@sun.com
11867N/A- Bump to 0.9.0.
10881N/A* Thu May 10 2007 - darren.kenny@sun.com
10881N/A- Add bug#6553312 ref for gs-sfw patch.
10881N/A* Thu Apr 19 2007 - laca@sun.com
11947N/A- add -ascii option to dos2unix so that utf8 strings are not messed up
12741N/A* Thu Apr 12 2007 - damien.carbery@sun.com
12741N/A- Bump to 0.8.1.
10710N/A* Tue Mar 13 2007 - damien.carbery@sun.com
10710N/A- Bump to 0.8.0.
10710N/A* Tue Feb 13 2007 - takao.fujiwara@sun.com
10710N/A- Add l10n tarball.
10710N/A* Tue Feb 13 2007 - damien.carbery@sun.com
10710N/A- Bump to 0.7.2.
10710N/A* Wed Jan 10 2006 - damien.carbery@sun.com
10710N/A- Bump to 0.7.1. Remove upstream patch, 03-lc-measurement. Add code to dos2unix
10710N/A po/be.po to fix #395105.
10710N/A* Wed Jan 10 2007 - damien.carbery@sun.com
10710N/A- Add dir to CFLAGS so that libxml headers can be found.
10710N/A* Wed Dec 20 2006 - damien.carbery@sun.com
10710N/A- Add patch, 03-lc-measurement, to fix #387887. Patch written by Glynn.
10710N/A* Tue Dec 19 2006 - damien.carbery@sun.com
12831N/A- Bump to 0.7.0.
12831N/A* Tue Oct 10 2006 - damien.carbery@sun.com
12831N/A- Bump to 0.6.1.
12831N/A* Tue Sep 05 2006 - brian.cameron@sun.com
10710N/A- Bump to 0.6.0.
10710N/A* Tue Aug 08 2006 - brian.cameron@sun.com
10710N/A- Bump to 0.5.5.
10710N/A* Wed Jul 20 2006 - dermot.mccluskey@sun.com
10710N/A- Bump to 0.5.4.
10710N/A And remove patch 03 (upstream)
10710N/A* Thu Jun 15 2006 - ghee.teo@sun.com
10710N/A- Fixed 6437235 stop evince from crashing on PAPI print backend.
10710N/A* Fri Jun 02 2006 - glynn.foster@sun.com
10710N/A- Bump to 0.5.3
10710N/A* Fri Apr 28 2006 - glynn.foster@sun.com
13510N/A- Add patch to install into Office submenu
13510N/A with 'Evince Document Viewer'.
13510N/A* Tue Mar 14 2006 - damien.carbery@sun.com
13466N/A- Bump to 0.5.2.
13466N/A* Fri Jan 20 2006 - damien.carbery@sun.com
13466N/A- Bump to 0.5.0.
13466N/A* Tue Nov 08 2005 - glynn.foster@sun.com
13466N/A- Show the .desktop file entry for the moment.
13466N/A* Fri Sep 30 2005 - brian.cameron@sun.com
13303N/A- Bump to 0.4.0
13303N/A* Wed Aug 24 2005 - damien.carbery@sun.com
13466N/A- Add libgnomeprintui dependency.
13282N/A* Tue Aug 16 2005 - glynn.foster@sun.com
13282N/A- New spec file for evince
13282N/A