libgnome-keyring.spec revision 20891
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard#
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard# spec file for package gnome-keyring
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard#
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard# This file and all modifications and additions to the pristine
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard# package are under the same license as the package itself.
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard#
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard%define owner jefftsai
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard#
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard%define OSR LFI#105446 (gnome Exec. summary):n/a
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardName: libgnome-keyring
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardLicense: LGPL v2
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardGroup: System/GUI/GNOME
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardVersion: 2.30.1
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardRelease: 4
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardDistribution: Java Desktop System
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardVendor: Gnome Community
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardURL: http://www.gnome.org
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardSummary: GNOME Keyring
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardSource: http://download.gnome.org/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
940d71d237794874e18a0eb72f6564821a823517eschrock%if %build_l10n
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardSource1: l10n-configure.sh
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard%endif
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard# date:2010-01-26 owner:jefftsai type:branding
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardPatch1: libgnome-keyring-01-disable-eggdbus.diff
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardBuildRoot: %{_tmppath}/%{name}-%{version}-build
940d71d237794874e18a0eb72f6564821a823517eschrockAutoreqprov: on
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willardPrereq: /sbin/ldconfig
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard%define gtk2_version 2.4.0
ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28willard%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
* Fri Feb 17 2012 - brian.cameron@oracle.com
- Changes needed to build 64-bit version.
* 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