libgnome-keyring.spec revision 20848
16969N/A#
16969N/A# spec file for package gnome-keyring
16969N/A#
16969N/A# Copyright 2009 Sun Microsystems, Inc.
16969N/A# This file and all modifications and additions to the pristine
16969N/A# package are under the same license as the package itself.
16969N/A#
16969N/A%define owner jefftsai
16969N/A#
16969N/A
16969N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
16969N/A
16969N/AName: libgnome-keyring
16969N/ALicense: LGPL v2
16969N/AGroup: System/GUI/GNOME
16969N/AVersion: 2.30.1
16969N/ARelease: 4
16969N/ADistribution: Java Desktop System
16969N/AVendor: Gnome Community
16969N/AURL: http://www.gnome.org
16969N/ASummary: GNOME Keyring
16969N/ASource: http://download.gnome.org/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
16969N/A%if %build_l10n
16969N/ASource1: l10n-configure.sh
16969N/A%endif
16969N/A# date:2010-01-26 owner:jefftsai type:branding
16969N/APatch1: libgnome-keyring-01-disable-eggdbus.diff
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
The library libgnome-keyring is used by applications to integrate with
the gnome keyring system.
%package devel
Summary: GNOME Keyring Library
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: gtk2-devel >= %{gtk2_version}
%description devel
The library libgnome-keyring is used by applications to integrate with
the gnome keyring system.
%prep
%setup -q
%patch1 -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
aclocal $ACLOCAL_FLAGS -I .
autoconf
autoheader
automake -a -c -f
export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
export LDFLAGS="%_ldflags"
./configure --prefix=%{_prefix} \
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--disable-pam \
--libexecdir=%{_libexecdir}
# FIXME: hack: stop the build from looping
touch po/stamp-it
make -j $CPUS
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make -i install DESTDIR=$RPM_BUILD_ROOT
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
#%check
make check
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%{_datadir}/locale/*/LC_MESSAGES/*
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_libexecdir}/gnome-keyring-ask
%files devel
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gnome-keyring-1/*
%{_libdir}/lib*.so
%changelog
* Mon Apr 26 2010 - christian.kelly@oracle.com
- Bump to 2.30.1.
* Jan 26 2010 - jeff.cai@sun.com
- Split libgnome-keyring from SUNWgnome-keyring