evince.spec revision 12184
10858N/A#
10858N/A# spec file for package evince
10858N/A#
10858N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10858N/A# This file and all modifications and additions to the pristine
10858N/A# package are under the same license as the package itself.
10858N/A#
10858N/A# Owner: dkenny
10858N/A#
10858N/A%include l10n.inc
10858N/AName: evince
10858N/ALicense: GPL
10858N/AGroup: System/GUI/GNOME
10858N/A# poppler should be bumped at the same time - evince depends on poppler.
10858N/AVersion: 2.21.1
10858N/ARelease: 1
10858N/ADistribution: Java Desktop System
10858N/AVendor: Sun Microsystems, Inc.
10858N/ASummary: Document viewer
10858N/ASource: http://ftp.gnome.org/pub/GNOME/sources/evince/2.21/%{name}-%{version}.tar.bz2
10858N/ASource1: %{name}-po-sun-%{po_sun_version}.tar.bz2
10858N/A# date:2006-06-06 type:branding owner:gman
10858N/APatch1: evince-01-menu-entry.diff
10858N/A# date:2006-05-29 type:branding owner:dkenny bugster:6430428,6431474,6553312
10858N/APatch2: evince-02-gs-sfw.diff
10858N/A# date:2008-01-11 type:bug owner:dcarbery bugzilla:508808
10858N/APatch3: evince-03-nautilus-dir.diff
10858N/AURL: http://www.gnome.org
10858N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10858N/ADocdir: %{_defaultdocdir}/%{name}
10858N/AAutoreqprov: on
10858N/A
10858N/A%define gtk2_version 2.6.0
10858N/A%define libgnomeui_version 2.6.0
10858N/A%define dbus_version 0.33
10858N/A%define poppler_version 0.4.0
10858N/A%define libgnomeprintui_version 2.5.1
10858N/A
10858N/ARequires: gtk2 >= %{gtk2_version}
10858N/ARequires: libgnomeui >= %{libgnomeui_version}
10858N/ARequires: dbus >= %{dbus_version}
10858N/ARequires: poppler >= %{poppler_version}
10858N/ARequires: libgnomeprintui >= %{libgnomeprintui_version}
17844N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10858N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
10858N/ABuildRequires: dbus-devel >= %{dbus_version}
10858N/ABuildRequires: poppler-devel >= %{poppler_version}
10858N/ABuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
10858N/A
10858N/A%description
10858N/AEvince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
10858N/A
10858N/A%prep
10858N/A%setup -q
10858N/A%if %build_l10n
10858N/Abzcat %SOURCE1 | tar xf -
10858N/Acd po-sun; make; cd ..
10858N/A%endif
10858N/A%patch1 -p1
10858N/A%patch2 -p1
10858N/A%patch3 -p1
13804N/A
13804N/A# Remove DOS line end chars. Fixes #395105.
13804N/Ados2unix -ascii po/be.po po/be.po
13804N/A
13804N/A%build
13804N/A%ifos linux
13804N/Aif [ -x /usr/bin/getconf ]; then
10858N/A CPUS=`getconf _NPROCESSORS_ONLN`
10858N/Afi
10858N/A%else
12802N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10858N/A%endif
10858N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10858N/A CPUS=1
10858N/Afi
10858N/Aexport PKG_CONFIG_TOP_BUILD_DIR=${PWD}
10858N/A
12802N/Alibtoolize --force
10858N/Aintltoolize --force --copy --automake
10858N/Aaclocal $ACLOCAL_FLAGS
10858N/Aautomake -a -c -f
10858N/Aautoconf
10858N/ACFLAGS="$RPM_OPT_FLAGS -I/usr/include/libxml2" \
10858N/A ./configure \
10858N/A --prefix=%{_prefix} \
10858N/A --libexecdir=%{_libexecdir} \
10858N/A --sysconfdir=%{_sysconfdir} \
10858N/A --disable-comics \
10858N/A --mandir=%{_mandir}
10858N/Amake -j $CPUS
10858N/A
10858N/A%install
10858N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
10858N/Arm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.a
10858N/Arm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la
17678N/A
10858N/A%post
10858N/Aexport GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
10858N/ASCHEMAS="evince.schemas evince-thumbnailer.schemas"
10858N/Afor S in $SCHEMAS; do
10858N/A gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
10858N/Adone
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%{_bindir}/*
%{_libdir}/nautilus/extensions-2.0/*.so*
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_datadir}/applications/*
%{_datadir}/evince/*
%{_datadir}/gnome/help/*
%{_datadir}/omf/*
%{_sysconfdir}/gconf/schemas/*
%changelog
* Fri Jan 11 2008 - damien.carbery@sun.com
- Add patch 03-nautilus-dir to determine nautilus extension dir via pkgconfig.
* Fri Dec 07 2007 - ghee.teo@sun.com
- added --disable-comics to configure option as it failed on Solaris.
* Tue Dec 04 2007 - damien.carbery@sun.com
- Bump to 2.21.1.
* Tue Nov 27 2007 - damien.carbery@sun.com
- Bump to 2.20.2. Remove upstream patch, 03-zero-pages-up.
* Mon Nov 19 2007 - darren.kenny@sun.com
- Add a new patch, evince-03-zero-pages-up.diff, to fix bug#6631614
* Fri Oct 19 2007 - damien.carbery@sun.com
- Bump to 2.20.1.
* Tue Sep 18 2007 - damien.carbery@sun.com
- Bump to 2.20.0.
* Thu Aug 30 2007 - damien.carbery@sun.com
- Add intltoolize call to update intltool scripts.
* Tue Aug 28 2007 - damien.carbery@sun.com
- Bump to 2.19.4.
* Tue Jul 31 2007 - damien.carbery@sun.com
- Bump to 0.9.3.
* Tue Jul 10 2007 - damien.carbery@sun.com
- Bump to 0.9.2.
* Tue Jun 19 2007 - damien.carbery@sun.com
- 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