5546
|
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 |
#
|
8529
|
8 |
# Owner: mattman
|
|
9 |
#
|
5546
|
10 |
Name: evince
|
|
11 |
License: GPL
|
|
12 |
Group: System/GUI/GNOME
|
8312
|
13 |
# poppler should be bumped at the same time - evince depends on poppler.
|
8306
|
14 |
Version: 0.6.1
|
7373
|
15 |
Release: 1
|
5546
|
16 |
Distribution: Java Desktop System
|
|
17 |
Vendor: Sun Microsystems, Inc.
|
|
18 |
Summary: Document viewer
|
8065
|
19 |
Source: http://ftp.gnome.org/pub/GNOME/sources/evince/0.6/%{name}-%{version}.tar.bz2
|
8755
|
20 |
# date:2006-06-06 type:branding owner:gman
|
7158
|
21 |
Patch1: evince-01-menu-entry.diff
|
8755
|
22 |
# date:2006-05-29 type:bug owner:dkenny bugster:6430428,6431474
|
7333
|
23 |
Patch2: evince-02-gs-sfw.diff
|
5546
|
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
|
5557
|
32 |
%define poppler_version 0.4.0
|
5574
|
33 |
%define libgnomeprintui_version 2.5.1
|
5546
|
34 |
|
|
35 |
Requires: gtk2 >= %{gtk2_version}
|
|
36 |
Requires: libgnomeui >= %{libgnomeui_version}
|
|
37 |
Requires: dbus >= %{dbus_version}
|
|
38 |
Requires: poppler >= %{poppler_version}
|
5574
|
39 |
Requires: libgnomeprintui >= %{libgnomeprintui_version}
|
5546
|
40 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
41 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
|
|
42 |
BuildRequires: dbus-devel >= %{dbus_version}
|
|
43 |
BuildRequires: poppler-devel >= %{poppler_version}
|
5574
|
44 |
BuildRequires: libgnomeprintui-devel >= %{libgnomeprintui_version}
|
5546
|
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
|
6258
|
51 |
%patch1 -p1
|
7333
|
52 |
%patch2 -p1
|
5546
|
53 |
|
|
54 |
%build
|
|
55 |
%ifos linux
|
|
56 |
if [ -x /usr/bin/getconf ]; then
|
|
57 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
58 |
fi
|
|
59 |
%else
|
|
60 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
61 |
%endif
|
|
62 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
63 |
CPUS=1
|
|
64 |
fi
|
|
65 |
|
|
66 |
libtoolize --force
|
|
67 |
aclocal $ACLOCAL_FLAGS
|
|
68 |
automake -a -c -f
|
|
69 |
autoconf
|
|
70 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
71 |
./configure \
|
|
72 |
--prefix=%{_prefix} \
|
5557
|
73 |
--libexecdir=%{_libexecdir} \
|
5546
|
74 |
--sysconfdir=%{_sysconfdir} \
|
|
75 |
--mandir=%{_mandir}
|
|
76 |
make -j $CPUS
|
|
77 |
|
|
78 |
%install
|
|
79 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
5557
|
80 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.a
|
|
81 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
|
|
82 |
|
|
83 |
%post
|
|
84 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
85 |
SCHEMAS="evince.schemas evince-thumbnailer.schemas"
|
|
86 |
for S in $SCHEMAS; do
|
|
87 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
|
|
88 |
done
|
5546
|
89 |
|
|
90 |
%clean
|
|
91 |
rm -rf $RPM_BUILD_ROOT
|
|
92 |
|
|
93 |
%files
|
|
94 |
%defattr (-, root, root)
|
5557
|
95 |
%{_bindir}/*
|
6923
|
96 |
%{_libdir}/nautilus/extensions-1.0/*.so*
|
5557
|
97 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
|
98 |
%{_datadir}/applications/*
|
|
99 |
%{_datadir}/evince/*
|
|
100 |
%{_datadir}/gnome/help/*
|
|
101 |
%{_datadir}/omf/*
|
|
102 |
%{_sysconfdir}/gconf/schemas/*
|
5546
|
103 |
|
|
104 |
%changelog
|
8306
|
105 |
* Tue Oct 10 2006 - [email protected]
|
|
106 |
- Bump to 0.6.1.
|
8065
|
107 |
* Tue Sep 05 2006 - [email protected]
|
|
108 |
- Bump to 0.6.0.
|
7874
|
109 |
* Tue Aug 08 2006 - [email protected]
|
|
110 |
- Bump to 0.5.5.
|
|
111 |
* Wed Jul 20 2006 - [email protected]
|
7671
|
112 |
- Bump to 0.5.4.
|
|
113 |
And remove patch 03 (upstream)
|
7456
|
114 |
* Thu Jun 15 2006 - [email protected]
|
|
115 |
- Fixed 6437235 stop evince from crashing on PAPI print backend.
|
7373
|
116 |
* Fri Jun 02 2006 - [email protected]
|
|
117 |
- Bump to 0.5.3
|
7158
|
118 |
* Fri Apr 28 2006 - [email protected]
|
|
119 |
- Add patch to install into Office submenu
|
|
120 |
with 'Evince Document Viewer'.
|
6929
|
121 |
* Tue Mar 14 2006 - [email protected]
|
|
122 |
- Bump to 0.5.2.
|
6630
|
123 |
* Fri Jan 20 2006 - [email protected]
|
|
124 |
- Bump to 0.5.0.
|
6258
|
125 |
* Tue Nov 08 2005 - [email protected]
|
|
126 |
- Show the .desktop file entry for the moment.
|
6060
|
127 |
* Fri Sep 30 2005 - [email protected]
|
|
128 |
- Bump to 0.4.0
|
5574
|
129 |
* Wed Aug 24 2005 - [email protected]
|
|
130 |
- Add libgnomeprintui dependency.
|
5546
|
131 |
* Tue Aug 16 2005 - [email protected]
|
|
132 |
- New spec file for evince
|