seahorse.spec revision 13629
17912N/A#
17912N/A# spec file for package seahorse
17912N/A#
17912N/A# Copyright (c) 2008 Sun Microsystems, Inc.
17912N/A# This file and all modifications and additions to the pristine
20783N/A# package are under the same license as the package itself.
17912N/A#
17912N/A# Owner: jefftsai
17912N/A#
18902N/AName: seahorse
17912N/ALicense: GPL
17912N/AGroup: System/GUI/GNOME
17912N/AVersion: 2.23.5
17912N/ARelease: 1
17912N/ADistribution: Java Desktop System
18688N/AVendor: Sun Microsystems, Inc.
19846N/ASummary: Seahorse
17912N/ASource: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.23/%{name}-%{version}.tar.gz
19013N/A%if %build_l10n
17912N/ASource1: l10n-configure.sh
17912N/A%endif
19092N/A
19092N/A# date:2008-07-22 bugzilla:544262 owner:jefftsai type:bug
17912N/APatch1: seahorse-01-widget.diff
17912N/A# date:2008-07-22 bugzilla:544266 owner:jefftsai type:bug
17912N/APatch2: seahorse-02-empty-struct.diff
18052N/A# date:2008-07-22 bugzilla:544267 owner:jefftsai type:bug
19142N/APatch3: seahorse-03-socket.diff
19142N/A# date:2008-07-22 owner:jefftsai type:bug
17912N/APatch4: seahorse-04-rm-pgp.diff
17912N/A
20857N/AURL: http://www.gnome.org
17912N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
17912N/AAutoreqprov: on
17912N/APrereq: /sbin/ldconfig
20857N/A
17912N/A%define gtk2_version 2.4.0
17912N/A%define pkgconfig_version 0.15.0
17912N/A%define gtk_doc_version 1.1
17912N/A
17912N/ARequires: gtk2 >= %{gtk2_version}
17912N/ABuildRequires: gtk2-devel >= %{gtk2_version}
17912N/ABuildRequires: gtk-doc >= %{gtk_doc_version}
17912N/ABuildRequires: pkgconfig >= %{pkgconfig_version}
17912N/A
17912N/A%description
17912N/ASeahorse is a GNOME application for managing encryption keys. It also
17912N/Aintegrates with nautilus, gedit and other places for encryption, decrption
17912N/Aand other operations.
17912N/A
17912N/A%prep
17912N/A%setup -q
17912N/A%patch1 -p1
17912N/A%patch2 -p1
17912N/A%patch3 -p1
17912N/A%patch4 -p1
17912N/A
17912N/A
17912N/A%build
17912N/A%ifos linux
17912N/Aif [ -x /usr/bin/getconf ]; then
17912N/A CPUS=`getconf _NPROCESSORS_ONLN`
20247N/Afi
20247N/A%else
20247N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
17912N/A%endif
17912N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
17912N/A CPUS=1
17912N/Afi
17912N/A
17912N/Alibtoolize --force
17912N/Aintltoolize -f -c --automake
17912N/A
17912N/A%if %build_l10n
17912N/Abash -x %SOURCE1 --enable-copyright
20783N/A%endif
17912N/A
20783N/Agnome-doc-prepare --force
17912N/Aaclocal $ACLOCAL_FLAGS -I m4
20783N/Aautoconf
20783N/Aautoheader
17912N/Aautomake
17912N/A
17912N/ACFLAGS="$RPM_OPT_FLAGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
17912N/A./configure --prefix=%{_prefix} \
17912N/A --sysconfdir=%{_sysconfdir} \
17912N/A --mandir=%{_mandir} \
20783N/A --libexecdir=%{_libexecdir}
18113N/Amake -j $CPUS
18113N/A
18113N/A%install
18070N/Amake DESTDIR=$RPM_BUILD_ROOT install
18070N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
17912N/A
17912N/A%check
17912N/Amake check
17912N/A
17912N/A%clean
17912N/Arm -rf $RPM_BUILD_ROOT
17912N/A
17912N/A%changelog
17912N/A
17912N/A* Mon Jul 21 2008 - jeff.cai@sun.com
17912N/A- Initial Sun release
17912N/A