17436
|
1 |
#
|
|
2 |
# spec file for package gnome-keyring
|
|
3 |
#
|
|
4 |
# Copyright 2009 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 |
%define owner jefftsai
|
|
9 |
#
|
|
10 |
|
17852
|
11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
17436
|
12 |
|
|
13 |
Name: libgnome-keyring
|
|
14 |
License: LGPL v2
|
|
15 |
Group: System/GUI/GNOME
|
17934
|
16 |
Version: 2.30.1
|
17436
|
17 |
Release: 4
|
|
18 |
Distribution: Java Desktop System
|
17865
|
19 |
Vendor: Gnome Community
|
17436
|
20 |
URL: http://www.gnome.org
|
|
21 |
Summary: GNOME Keyring
|
17785
|
22 |
Source: http://download.gnome.org/sources/%{name}/2.30/%{name}-%{version}.tar.bz2
|
17436
|
23 |
%if %build_l10n
|
|
24 |
Source1: l10n-configure.sh
|
|
25 |
%endif
|
|
26 |
# date:2010-01-26 owner:jefftsai type:branding
|
|
27 |
Patch1: libgnome-keyring-01-disable-eggdbus.diff
|
|
28 |
|
|
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
30 |
Autoreqprov: on
|
|
31 |
Prereq: /sbin/ldconfig
|
|
32 |
|
|
33 |
%define gtk2_version 2.4.0
|
|
34 |
%define pkgconfig_version 0.15.0
|
|
35 |
%define gtk_doc_version 1.1
|
|
36 |
|
|
37 |
Requires: gtk2 >= %{gtk2_version}
|
|
38 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
39 |
BuildRequires: gtk-doc >= %{gtk_doc_version}
|
|
40 |
BuildRequires: pkgconfig >= %{pkgconfig_version}
|
|
41 |
|
|
42 |
%description
|
|
43 |
|
|
44 |
The library libgnome-keyring is used by applications to integrate with
|
|
45 |
the gnome keyring system.
|
|
46 |
|
|
47 |
%package devel
|
|
48 |
Summary: GNOME Keyring Library
|
|
49 |
Group: Development/Libraries/GNOME
|
|
50 |
Requires: %{name} = %{version}
|
|
51 |
Requires: gtk2-devel >= %{gtk2_version}
|
|
52 |
|
|
53 |
%description devel
|
|
54 |
The library libgnome-keyring is used by applications to integrate with
|
|
55 |
the gnome keyring system.
|
|
56 |
|
|
57 |
%prep
|
|
58 |
%setup -q
|
|
59 |
%patch1 -p1
|
|
60 |
|
|
61 |
%build
|
|
62 |
%ifos linux
|
|
63 |
if [ -x /usr/bin/getconf ]; then
|
|
64 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
65 |
fi
|
|
66 |
%else
|
|
67 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
68 |
%endif
|
|
69 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
70 |
CPUS=1
|
|
71 |
fi
|
|
72 |
|
|
73 |
libtoolize --force
|
|
74 |
intltoolize -f -c --automake
|
|
75 |
|
|
76 |
%if %build_l10n
|
|
77 |
bash -x %SOURCE1 --enable-copyright
|
|
78 |
%endif
|
|
79 |
|
|
80 |
aclocal $ACLOCAL_FLAGS -I .
|
|
81 |
autoconf
|
|
82 |
autoheader
|
|
83 |
automake -a -c -f
|
|
84 |
|
|
85 |
CFLAGS="$RPM_OPT_FLAGS -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
|
|
86 |
./configure --prefix=%{_prefix} \
|
|
87 |
--sysconfdir=%{_sysconfdir} \
|
|
88 |
--mandir=%{_mandir} \
|
|
89 |
--disable-pam \
|
|
90 |
--libexecdir=%{_libexecdir}
|
|
91 |
|
|
92 |
# FIXME: hack: stop the build from looping
|
|
93 |
touch po/stamp-it
|
|
94 |
|
|
95 |
make -j $CPUS
|
|
96 |
|
|
97 |
%install
|
|
98 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
99 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
100 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
101 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
102 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
103 |
|
|
104 |
#%check
|
|
105 |
make check
|
|
106 |
|
|
107 |
%clean
|
|
108 |
rm -rf $RPM_BUILD_ROOT
|
|
109 |
|
|
110 |
%post
|
|
111 |
/sbin/ldconfig
|
|
112 |
|
|
113 |
%postun
|
|
114 |
/sbin/ldconfig
|
|
115 |
|
|
116 |
%files
|
|
117 |
%{_datadir}/locale/*/LC_MESSAGES/*
|
|
118 |
%{_bindir}/*
|
|
119 |
%{_libdir}/lib*.so.*
|
|
120 |
%{_libexecdir}/gnome-keyring-ask
|
|
121 |
|
|
122 |
%files devel
|
|
123 |
%{_libdir}/pkgconfig/*.pc
|
|
124 |
%{_includedir}/gnome-keyring-1/*
|
|
125 |
%{_libdir}/lib*.so
|
|
126 |
|
|
127 |
%changelog
|
17934
|
128 |
* Mon Apr 26 2010 - [email protected]
|
|
129 |
- Bump to 2.30.1.
|
17436
|
130 |
* Jan 26 2010 - [email protected]
|
|
131 |
- Split libgnome-keyring from SUNWgnome-keyring
|