evince.spec revision 20841
10139N/A#
10139N/A# spec file for package evince
10139N/A#
10139N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
10139N/A# This file and all modifications and additions to the pristine
20903N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner gheet
10139N/A#
17185N/A
10139N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
10139N/A
10139N/A%include l10n.inc
10139N/AName: evince
13948N/ALicense: GPLv2
13948N/AGroup: System/GUI/GNOME
13948N/A# poppler should be bumped at the same time - evince depends on poppler.
13948N/AVersion: 3.2.0
13948N/ARelease: 1
13948N/ADistribution: Java Desktop System
10139N/AVendor: Gnome Community
10139N/ASummary: Document viewer
10139N/ASource: http://ftp.gnome.org/pub/GNOME/sources/evince/3.2/%{name}-%{version}.tar.bz2
18688N/ASource1: %{name}-po-sun-%{po_sun_version}.tar.bz2
18688N/A%if %build_l10n
10139N/ASource2: l10n-configure.sh
10139N/A%endif
10139N/A# date:2006-06-06 type:branding owner:gman
12676N/APatch1: evince-01-menu-entry.diff
19094N/A# date:2011-11-12 type:branding owner:padraig bugster:7042562
10139N/APatch2: evince-02-fix-doc.diff
10139N/APatch3: evince-03-fix-l10n-doc.diff
10139N/AURL: http://www.gnome.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20857N/ADocdir: %{_defaultdocdir}/%{name}
20903N/AAutoreqprov: on
20903N/A
20903N/A%define gtk2_version 2.6.0
20903N/A%define libgnomeui_version 2.6.0
20903N/A%define dbus_version 0.33
20903N/A%define poppler_version 0.4.0
20903N/A%define libgnomeprintui_version 2.5.1
20903N/A
20903N/ARequires: gtk2 >= %{gtk2_version}
20903N/ARequires: libgnomeui >= %{libgnomeui_version}
10139N/ARequires: dbus >= %{dbus_version}
10139N/ARequires: poppler >= %{poppler_version}
10139N/ARequires: libgnomeprintui >= %{libgnomeprintui_version}
10139N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10139N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
10139N/ABuildRequires: dbus-devel >= %{dbus_version}
10139N/ABuildRequires: poppler-devel >= %{poppler_version}
10139N/ABuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
20857N/A
20903N/A%description
10139N/AEvince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
10139N/A
10139N/A%prep
10139N/A%setup -q
13948N/A%if %build_l10n
13948N/Abzcat %SOURCE1 | tar xf -
13948N/Acd po-sun; make; cd ..
13948N/A%endif
13948N/A%patch1 -p1
13948N/A#%patch2 -p1
13948N/A#%patch3 -p1
10139N/A
10139N/A# Remove DOS line end chars. Fixes #395105.
10139N/Ados2unix -ascii po/be.po po/be.po
10139N/A
13948N/A%build
10139N/A%ifos linux
13948N/Aif [ -x /usr/bin/getconf ]; then
13948N/A CPUS=`getconf _NPROCESSORS_ONLN`
13948N/Afi
13948N/A%else
13948N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13948N/A%endif
13948N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
13999N/Aexport PKG_CONFIG_TOP_BUILD_DIR=${PWD}
13948N/A
13948N/Alibtoolize --force
13948N/Aintltoolize --force --copy --automake
13948N/A
13948N/A%if %build_l10n
13948N/Abash -x %SOURCE2 --enable-copyright
13948N/A%endif
13948N/A
10139N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautomake -a -c -f
10139N/Aautoconf
10139N/ACFLAGS="$RPM_OPT_FLAGS -I/usr/include/libxml2" \
10139N/A ./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --disable-comics \
10139N/A --enable-thumbnailer \
10139N/A --mandir=%{_mandir}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
16307N/A
10139N/A%post
10139N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
16307N/ASCHEMAS="evince.schemas evince-thumbnailer.schemas"
10139N/Afor S in $SCHEMAS; do
10139N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
14244N/Adone
20832N/A
14244N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
20780N/A%defattr (-, root, root)
20780N/A%{_bindir}/*
10139N/A%{_libdir}/nautilus/extensions-2.0/*.so*
20903N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
20780N/A%{_datadir}/applications/*
13948N/A%{_datadir}/evince/*
13948N/A%{_datadir}/gnome/help/*
20780N/A%{_datadir}/omf/*
14004N/A%{_sysconfdir}/gconf/schemas/*
18543N/A
14004N/A%changelog
20903N/A* Wed Oct 05 2011 - brian.cameron@oracle.com
13948N/A- Bump to 3.2.0.
10139N/A* Thu May 12 2011 - padraig.obriain@oracle.com
20780N/A- Add -fix-doc patch to fix CR 7042562
20903N/A* Wed Oct 20 2010 - brian.cameron@oracle.com
10139N/A- Bump to 2.30.3.
10139N/A* Mon Apr 26 2010 - christian.kelly@oracle.com
10139N/A- Bump to 2.30.1.
10139N/A* Tue Mar 30 2010 - christian.kelly@sun.com
10139N/A- Bump to 2.30.0.
10139N/A* Sat Mar 13 2010 - christian.kelly@sun.com
10139N/A- Bump to 2.29.92.
10139N/A* Tue Oct 20 2009 - dave.lin@sun.com
10139N/A- Bump to 2.28.1
10139N/A* Wed Sep 23 2009 - dave.lin@sun.com
10139N/A- Bump to 2.28.0
14004N/A- Sun Aug 20 2009 - darren.kenny@sun.com
14004N/A- Bump to 2.27.90 and remove upstreamed patches.
14004N/A* Mon Sep 22 2008 - darren.kenny@sun.com
14004N/A- Add patch evince-03-remember-page-size.diff, which is a backport of the
14004N/A 2.26 fix to remember page size (A4, US Letter, etc) - bugzilla:525185.
10139N/A* Mon Sep 22 2008 - darren.kenny@sun.com
10139N/A- Re-introduce patch evince-02-static-enum.diff to make GEnum types be "static const".
10139N/A fixing bug#6724495 since we've reverted back to GNOME 2.22 version.
10139N/A* Fri Aug 15 2008 - darren.kenny@sun.com
10139N/A- Reverting back to evince 2.22 due to no libspectre or libgs.so on Solaris
10139N/A yet. When these appear I will bump evince again.
20903N/A* Thu Aug 07 2008 - damien.carbery@sun.com
20903N/A- Bump to 2.23.6.
20780N/A* Wed Jul 23 2008 - damien.carbery@sun.com
20780N/A- Bump to 2.23.5. Remove upstream patch 02-static-enum.
19094N/A* Mon Jul 14 2008 - darren.kenny@sun.com
19094N/A- Add patch evince-03-static-enum.diff to make GEnum types be "static const".
16307N/A fixing bug#6724495, logged upstream bug#542924
16307N/A* Sat Jun 21 2008 - patrick.ale@gmail.com
16239N/A- Change download URI to fetch from 2.23 branch (URI correction)
16239N/A* Fri Jun 20 2008 - darren.kenny@sun.com
16239N/A- Remove unnecessary patch for sfw since gs is now in /usr/bin.
16239N/A* Thu May 29 2008 - damien.carbery@sun.com
16239N/A- Bump to 2.22.2.
16239N/A* Wed Apr 09 2008 - damien.carbery@sun.com
16239N/A- Bump to 2.22.1.1.
16239N/A* Tue Mar 11 2008 - damien.carbery@sun.com
16239N/A- Bump to 2.22.0.
16239N/A* Tue Feb 12 2008 - damien.carbery@sun.com
16224N/A- Bump to 2.21.91.
16224N/A* Tue Jan 29 2008 - damien.carbery@sun.com
16224N/A- Bump to 2.21.90. Remove upstream patch 03-nautilus-dir.
14244N/A* Fri Jan 11 2008 - damien.carbery@sun.com
14244N/A- Add patch 03-nautilus-dir to determine nautilus extension dir via pkgconfig.
14004N/A* Fri Dec 07 2007 - ghee.teo@sun.com
14004N/A- added --disable-comics to configure option as it failed on Solaris.
13948N/A* Tue Dec 04 2007 - damien.carbery@sun.com
13948N/A- Bump to 2.21.1.
13005N/A* Tue Nov 27 2007 - damien.carbery@sun.com
13005N/A- Bump to 2.20.2. Remove upstream patch, 03-zero-pages-up.
12676N/A* Mon Nov 19 2007 - darren.kenny@sun.com
12676N/A- Add a new patch, evince-03-zero-pages-up.diff, to fix bug#6631614
11314N/A* Fri Oct 19 2007 - damien.carbery@sun.com
11314N/A- Bump to 2.20.1.
10139N/A* Tue Sep 18 2007 - damien.carbery@sun.com
10139N/A- Bump to 2.20.0.
10139N/A* Thu Aug 30 2007 - damien.carbery@sun.com
10139N/A- Add intltoolize call to update intltool scripts.
10139N/A* Tue Aug 28 2007 - damien.carbery@sun.com
10139N/A- Bump to 2.19.4.
10139N/A* Tue Jul 31 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.9.3.
10139N/A* Tue Jul 10 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.9.2.
10139N/A* Tue Jun 19 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.9.1.
10139N/A* Tue May 15 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.9.0.
10139N/A* Thu May 10 2007 - darren.kenny@sun.com
10139N/A- Add bug#6553312 ref for gs-sfw patch.
10139N/A* Thu Apr 19 2007 - laca@sun.com
10139N/A- add -ascii option to dos2unix so that utf8 strings are not messed up
10139N/A* Thu Apr 12 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.8.1.
10139N/A* Tue Mar 13 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.8.0.
10139N/A* Tue Feb 13 2007 - takao.fujiwara@sun.com
10139N/A- Add l10n tarball.
10139N/A* Tue Feb 13 2007 - damien.carbery@sun.com
10139N/A- Bump to 0.7.2.
10139N/A* Wed Jan 10 2006 - damien.carbery@sun.com
10139N/A- Bump to 0.7.1. Remove upstream patch, 03-lc-measurement. Add code to dos2unix
10139N/A po/be.po to fix #395105.
10139N/A* Wed Jan 10 2007 - damien.carbery@sun.com
10139N/A- Add dir to CFLAGS so that libxml headers can be found.
10139N/A* Wed Dec 20 2006 - damien.carbery@sun.com
10139N/A- Add patch, 03-lc-measurement, to fix #387887. Patch written by Glynn.
16401N/A* Tue Dec 19 2006 - damien.carbery@sun.com
- Bump to 0.7.0.
* Tue Oct 10 2006 - damien.carbery@sun.com
- Bump to 0.6.1.
* Tue Sep 05 2006 - brian.cameron@sun.com
- Bump to 0.6.0.
* Tue Aug 08 2006 - brian.cameron@sun.com
- Bump to 0.5.5.
* Wed Jul 20 2006 - dermot.mccluskey@sun.com
- Bump to 0.5.4.
And remove patch 03 (upstream)
* Thu Jun 15 2006 - ghee.teo@sun.com
- Fixed 6437235 stop evince from crashing on PAPI print backend.
* Fri Jun 02 2006 - glynn.foster@sun.com
- Bump to 0.5.3
* Fri Apr 28 2006 - glynn.foster@sun.com
- Add patch to install into Office submenu
with 'Evince Document Viewer'.
* Tue Mar 14 2006 - damien.carbery@sun.com
- Bump to 0.5.2.
* Fri Jan 20 2006 - damien.carbery@sun.com
- Bump to 0.5.0.
* Tue Nov 08 2005 - glynn.foster@sun.com
- Show the .desktop file entry for the moment.
* Fri Sep 30 2005 - brian.cameron@sun.com
- Bump to 0.4.0
* Wed Aug 24 2005 - damien.carbery@sun.com
- Add libgnomeprintui dependency.
* Tue Aug 16 2005 - glynn.foster@sun.com
- New spec file for evince