1 # 2 # spec file for package gnome-keyring-manager 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: dkenny 9 # 10 Name: gnome-keyring-manager 11 License: GPL 12 Group: System/GUI/GNOME 13 Version: 2.16.0 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: GNOME Keyring Manager 18 Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-keyring-manager/2.16/%{name}-%{version}.tar.bz2 19 Patch1: gnome-keyring-manager-01-Wall-remove.diff 20 URL: http://www.gnome.org 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 Docdir: %{_defaultdocdir}/%{name} 23 Autoreqprov: on 24 25 %define gtk2_version 2.6.0 26 %define libglade_version 2.0.0 27 %define libgnomeui_version 2.6.0 28 %define gnome_keyring_version 0.3.2 29 %define scrollkeeper_version 0.3.12 30 31 Requires: gtk2 >= %{gtk2_version} 32 Requires: libgnomeui >= %{libgnomeui_version} 33 Requires: libglade >= %{libglade_version} 34 Requires: gnome-keyring >= %{gnome_keyring_version} 35 BuildRequires: gtk2-devel >= %{gtk2_version} 36 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} 37 BuildRequires: libglade-devel >= %{libglade_version} 38 BuildRequires: gnome-keyring-devel >= %{gnome_keyring_version} 39 BuildRequires: scrollkeeper >= %{scrollkeeper_version} 40 41 %description 42 Keyring manager for the GNOME desktop. 43 44 %prep 45 %setup -q 46 %patch1 -p1 47 48 %build 49 %ifos linux 50 if [ -x /usr/bin/getconf ]; then 51 CPUS=`getconf _NPROCESSORS_ONLN` 52 fi 53 %else 54 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 55 %endif 56 if test "x$CPUS" = "x" -o $CPUS = 0; then 57 CPUS=1 58 fi 59 60 # Don't need these steps for released tarball. 61 %ifos DISABLE 62 libtoolize --force 63 aclocal $ACLOCAL_FLAGS 64 autoheader 65 automake -a -c -f 66 autoconf 67 %endif 68 CFLAGS="$RPM_OPT_FLAGS" \ 69 ./configure \ 70 --prefix=%{_prefix} \ 71 --sysconfdir=%{_sysconfdir} \ 72 --mandir=%{_mandir} \ 73 --enable-compile-warnings=no 74 make -j $CPUS 75 76 %install 77 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 78 make -i install DESTDIR=$RPM_BUILD_ROOT 79 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 80 rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper 81 rmdir $RPM_BUILD_ROOT/var/lib 82 rmdir $RPM_BUILD_ROOT/var 83 84 %post 85 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 86 SCHEMAS="gnome-keyring-manager.schemas" 87 for S in $SCHEMAS; do 88 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null 89 done 90 91 %clean 92 rm -rf $RPM_BUILD_ROOT 93 94 %files 95 %defattr (-, root, root) 96 %{_bindir}/* 97 %{_datadir}/locale/*/LC_MESSAGES/*.mo 98 %{_datadir}/applications/ 99 %{_datadir}/gnome-keyring-manager/ 100 %{_datadir}/gnome/help/ 101 %{_datadir}/omf/ 102 %{_mandir}/* 103 %{_sysconfdir}/gconf/schemas/ 104 105 %changelog 106 * Tue Sep 05 2006 - damien.carbery@sun.com 107 - Bump to 2.16.0. 108 * Tue Aug 22 2006 - damien.carbery@sun.com 109 - Bump to 2.15.92. 110 * Thu Jul 27 2006 - matt.keenan@sun.com 111 - Remove scrollkeeper files form $RPM_BUILD_ROOT 112 * Mon Mar 13 2006 - damien.carbery@sun.com 113 - Bump to 2.14.0. 114 * Sat Sep 17 2005 - glynn.foster@sun.com 115 - Bump to 2.12.0 116 * Mon Sep 05 2005 - damien.carbery@sun.com 117 - Bump to 2.11.92. 118 * Thu Aug 18 2005 - glynn.foster@sun.com 119 - Initial spec for gnome-keyring-manager 120