seahorse.spec revision 14157
#
# 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
Group: System/GUI/GNOME
Version: 2.23.91
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Seahorse
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.23/%{name}-%{version}.tar.bz2
%if %build_l10n
Source1: l10n-configure.sh
%endif
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
%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 $ACLOCAL_FLAGS -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}
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
* 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