18187N/A#
18187N/A# spec file for package gnome-keyring
18187N/A#
20888N/A# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
18187N/A# This file and all modifications and additions to the pristine
18187N/A# package are under the same license as the package itself.
18187N/A#
18187N/A%define owner jefftsai
18187N/A#
18187N/A
18603N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
18187N/A
18187N/AName: libgnome-keyring
18187N/ALicense: LGPL v2
18187N/AGroup: System/GUI/GNOME
18685N/AVersion: 2.30.1
18187N/ARelease: 4
18187N/ADistribution: Java Desktop System
18616N/AVendor: Gnome Community
18187N/AURL: http://www.gnome.org
18187N/ASummary: GNOME Keyring
18536N/ASource: http://download.gnome.org/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
18187N/A%if %build_l10n
18187N/ASource1: l10n-configure.sh
18187N/A%endif
18187N/A# date:2010-01-26 owner:jefftsai type:branding
18187N/APatch1: libgnome-keyring-01-disable-eggdbus.diff
18187N/A
18187N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18187N/AAutoreqprov: on
18187N/APrereq: /sbin/ldconfig
18187N/A
18187N/A%define gtk2_version 2.4.0
18187N/A%define pkgconfig_version 0.15.0
18187N/A%define gtk_doc_version 1.1
18187N/A
18187N/ARequires: gtk2 >= %{gtk2_version}
18187N/ABuildRequires: gtk2-devel >= %{gtk2_version}
18187N/ABuildRequires: gtk-doc >= %{gtk_doc_version}
18187N/ABuildRequires: pkgconfig >= %{pkgconfig_version}
18187N/A
18187N/A%description
18187N/A
18187N/AThe library libgnome-keyring is used by applications to integrate with
18187N/Athe gnome keyring system.
18187N/A
18187N/A%package devel
18187N/ASummary: GNOME Keyring Library
18187N/AGroup: Development/Libraries/GNOME
18187N/ARequires: %{name} = %{version}
18187N/ARequires: gtk2-devel >= %{gtk2_version}
18187N/A
18187N/A%description devel
18187N/AThe library libgnome-keyring is used by applications to integrate with
18187N/Athe gnome keyring system.
18187N/A
18187N/A%prep
18187N/A%setup -q
18187N/A%patch1 -p1
18187N/A
18187N/A%build
18187N/A%ifos linux
18187N/Aif [ -x /usr/bin/getconf ]; then
18187N/A CPUS=`getconf _NPROCESSORS_ONLN`
18187N/Afi
18187N/A%else
18187N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18187N/A%endif
18187N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18187N/A CPUS=1
18187N/Afi
18187N/A
18187N/Alibtoolize --force
18187N/Aintltoolize -f -c --automake
18187N/A
18187N/A%if %build_l10n
18187N/Abash -x %SOURCE1 --enable-copyright
18187N/A%endif
18187N/A
18187N/Aaclocal $ACLOCAL_FLAGS -I .
18187N/Aautoconf
18187N/Aautoheader
18187N/Aautomake -a -c -f
18187N/A
20848N/Aexport CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
20848N/Aexport LDFLAGS="%_ldflags"
20848N/A
18187N/A./configure --prefix=%{_prefix} \
20891N/A --libdir=%{_libdir} \
18187N/A --sysconfdir=%{_sysconfdir} \
18187N/A --mandir=%{_mandir} \
18187N/A --disable-pam \
18187N/A --libexecdir=%{_libexecdir}
18187N/A
18187N/A# FIXME: hack: stop the build from looping
18187N/Atouch po/stamp-it
18187N/A
18187N/Amake -j $CPUS
18187N/A
18187N/A%install
18187N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
18187N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
18187N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
18187N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
18187N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
18187N/A
18187N/A#%check
18187N/Amake check
18187N/A
18187N/A%clean
18187N/Arm -rf $RPM_BUILD_ROOT
18187N/A
18187N/A%post
18187N/A/sbin/ldconfig
18187N/A
18187N/A%postun
18187N/A/sbin/ldconfig
18187N/A
18187N/A%files
18187N/A%{_datadir}/locale/*/LC_MESSAGES/*
18187N/A%{_bindir}/*
18187N/A%{_libdir}/lib*.so.*
18187N/A%{_libexecdir}/gnome-keyring-ask
18187N/A
18187N/A%files devel
18187N/A%{_libdir}/pkgconfig/*.pc
18187N/A%{_includedir}/gnome-keyring-1/*
18187N/A%{_libdir}/lib*.so
18187N/A
18187N/A%changelog
20888N/A* Fri Feb 17 2012 - brian.cameron@oracle.com
20888N/A- Changes needed to build 64-bit version.
18685N/A* Mon Apr 26 2010 - christian.kelly@oracle.com
18685N/A- Bump to 2.30.1.
18187N/A* Jan 26 2010 - jeff.cai@sun.com
18187N/A- Split libgnome-keyring from SUNWgnome-keyring