seahorse.spec revision 15299
#
# spec file for package seahorse
#
# Copyright (c) 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: jefftsai
#
Name: seahorse
License: GPL v2, LGPL v2, FDL v1.1
Group: System/GUI/GNOME
# Please don't upgrade it before it goes into nevada.
Version: 2.24.1
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Seahorse
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.24/%{name}-%{version}.tar.bz2
%if %build_l10n
Source1: l10n-configure.sh
%endif
# date:2008-10-22 bugzilla:551318 owner:jefftsai type:bug
Patch1: seahorse-01-input-password.diff
# date:2008-10-22 owner:jefftsai type:branding
Patch2: seahorse-02-disable-remote.diff
# date:2008-10-23 bugzilla:557537 owner:jefftsai type:bug
Patch3: seahorse-03-a11y-hang.diff
# date:2008-10-30 bugzilla:558491 owner:jefftsai type:bug
Patch4: seahorse-04-show-error.diff
# date:2008-10-30 bugzilla:558494 owner:jefftsai type:bug
Patch5: seahorse-05-dialog-markup.diff
# date:2008-11-04 bugzilla:556670 owner:jefftsai type:bug
Patch6: seahorse-06-import-ssh.diff
URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
Prereq: /sbin/ldconfig
%define gtk2_version 2.4.0
%define pkgconfig_version 0.15.0
%define gtk_doc_version 1.1
Requires: gtk2 >= %{gtk2_version}
BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: gtk-doc >= %{gtk_doc_version}
BuildRequires: pkgconfig >= %{pkgconfig_version}
%description
Seahorse is a GNOME application for managing encryption keys. It also
integrates with nautilus, gedit and other places for encryption, decrption
and other operations.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
libtoolize --force
intltoolize -f -c --automake
%if %build_l10n
bash -x %SOURCE1 --enable-copyright
%endif
gnome-doc-prepare --force
aclocal -I /usr/share/aclocal -I m4
autoconf
autoheader
automake
CFLAGS="$RPM_OPT_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--libexecdir=%{_libexecdir} \
--disable-ldap \
--disable-hkp
make -j $CPUS
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%check
make check
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Nov 04 2008 - jeff.cai@sun.com
- Add patch -06-import-ssh, need a better patch.
* Fri Oct 31 2008 - jeff.cai@sun.com
- Change the license tag.
* Thu Oct 30 2008 - jeff.cai@sun.com
- Add comment " not upgrade it before it goes to nevada"
* Thu Oct 30 2008 - jeff.cai@sun.com
- Add patch -04-show-error to fix #558491
- Add patch -05-dialog-markup to fix #558494
* Thu Oct 23 2008 - jeff.cai@sun.com
- Add patch -03-a11y-hang to fix #557537
* Wed Oct 22 2008 - jeff.cai@sun.com
- Bump to 2.24.1.
- Remove upstream patch -01-build-thread
- Add patch -01-input-password
- Add patch -02-disable-remote since solaris doesn't
have PGP support
* Mon Sep 22 2008 - jeff.cai@sun.com
- Bump to 2.24.0.
- Add patch -01-build-thread
* Thu Sep 08 2008 - jeff.cai@sun.com
- Bump to 2.23.92.
* Thu Sep 02 2008 - christian.kelly@sun.com
- Bump to 2.23.91.
* Tue Aug 19 2008 - dave.lin@sun.com
- Bump to 2.23.90
* Tue Aug 05 2008 - damien.carbery@sun.com
- Bump to 2.23.6. Remove all patches as they are upstream.
* Wed Jul 23 2008 - jeff.cai@sun.com
- Add bug no.
* Mon Jul 21 2008 - jeff.cai@sun.com
- Initial Sun release