evince.spec revision 11439
10139N/A#
10139N/A# spec file for package evince
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
16307N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: dkenny
10139N/A#
17185N/A%include l10n.inc
10139N/AName: evince
10139N/ALicense: GPL
10139N/AGroup: System/GUI/GNOME
10139N/A# poppler should be bumped at the same time - evince depends on poppler.
10139N/AVersion: 2.20.1
18688N/ARelease: 1
18688N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
19013N/ASummary: Document viewer
10139N/ASource: http://ftp.gnome.org/pub/GNOME/sources/evince/2.20/%{name}-%{version}.tar.bz2
12711N/ASource1: %{name}-po-sun-%{po_sun_version}.tar.bz2
10139N/A# date:2006-06-06 type:branding owner:gman
10139N/APatch1: evince-01-menu-entry.diff
10139N/A# date:2006-05-29 type:bug owner:dkenny bugster:6430428,6431474,6553312
10139N/APatch2: evince-02-gs-sfw.diff
10139N/AURL: http://www.gnome.org
18993N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16307N/ADocdir: %{_defaultdocdir}/%{name}
17615N/AAutoreqprov: on
10139N/A
18993N/A%define gtk2_version 2.6.0
17615N/A%define libgnomeui_version 2.6.0
18993N/A%define dbus_version 0.33
10139N/A%define poppler_version 0.4.0
10139N/A%define libgnomeprintui_version 2.5.1
10139N/A
10139N/ARequires: gtk2 >= %{gtk2_version}
10139N/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}
10139N/A
10139N/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
17483N/A%setup -q
10139N/A%if %build_l10n
10139N/Abzcat %SOURCE1 | tar xf -
10139N/Acd po-sun; make; cd ..
10139N/A%endif
10139N/A%patch1 -p1
10139N/A%patch2 -p1
10139N/A
10139N/A# Remove DOS line end chars. Fixes #395105.
10139N/Ados2unix -ascii po/be.po po/be.po
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16307N/A CPUS=1
10139N/Afi
10139N/Aexport PKG_CONFIG_TOP_BUILD_DIR=${PWD}
14337N/A
14337N/Alibtoolize --force
14337N/Aintltoolize --force --copy --automake
10139N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautomake -a -c -f
10139N/Aautoconf
10139N/ACFLAGS="$RPM_OPT_FLAGS -I/usr/include/libxml2" \
14433N/A ./configure \
10139N/A --prefix=%{_prefix} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --mandir=%{_mandir}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.a
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
10139N/A
10139N/A%post
10139N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
10139N/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
17615N/Adone
17615N/A
16307N/A%clean
16307N/Arm -rf $RPM_BUILD_ROOT
14433N/A
14433N/A%files
14337N/A%defattr (-, root, root)
14337N/A%{_bindir}/*
11388N/A%{_libdir}/nautilus/extensions-1.0/*.so*
11388N/A%{_datadir}/locale/*/LC_MESSAGES/*.mo
11388N/A%{_datadir}/applications/*
10524N/A%{_datadir}/evince/*
10524N/A%{_datadir}/gnome/help/*
10524N/A%{_datadir}/omf/*
10139N/A%{_sysconfdir}/gconf/schemas/*
10139N/A
10139N/A%changelog
10139N/A* Fri Oct 19 2007 - damien.carbery@sun.com
10139N/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.
* Tue May 15 2007 - damien.carbery@sun.com
- Bump to 0.9.0.
* Thu May 10 2007 - darren.kenny@sun.com
- Add bug#6553312 ref for gs-sfw patch.
* Thu Apr 19 2007 - laca@sun.com
- add -ascii option to dos2unix so that utf8 strings are not messed up
* Thu Apr 12 2007 - damien.carbery@sun.com
- Bump to 0.8.1.
* Tue Mar 13 2007 - damien.carbery@sun.com
- Bump to 0.8.0.
* Tue Feb 13 2007 - takao.fujiwara@sun.com
- Add l10n tarball.
* Tue Feb 13 2007 - damien.carbery@sun.com
- Bump to 0.7.2.
* Wed Jan 10 2006 - damien.carbery@sun.com
- Bump to 0.7.1. Remove upstream patch, 03-lc-measurement. Add code to dos2unix
po/be.po to fix #395105.
* Wed Jan 10 2007 - damien.carbery@sun.com
- Add dir to CFLAGS so that libxml headers can be found.
* Wed Dec 20 2006 - damien.carbery@sun.com
- Add patch, 03-lc-measurement, to fix #387887. Patch written by Glynn.
* 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