1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define glib2_version 2.24.0 |
---|
4 | %define dbus_version 1.0 |
---|
5 | %define eggdbus_version 0.4 |
---|
6 | %define gcrypt_version 1.2.2 |
---|
7 | |
---|
8 | Summary: Framework for managing passwords and other secrets |
---|
9 | Name: libgnome-keyring |
---|
10 | Version: 2.30.1 |
---|
11 | Release: 1%{?_dist_release} |
---|
12 | License: GPLv2+ and LGPLv2+ |
---|
13 | Group: System Environment/Libraries |
---|
14 | Source: http://ftp.gnome.org/pub/GNOME/sources/libgnome-keyring/2.30/libgnome-keyring-%{version}.tar.bz2 |
---|
15 | URL: http://live.gnome.org/GnomeKeyring |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
19 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
20 | BuildRequires: eggdbus-devel >= %{eggdbus_version} |
---|
21 | BuildRequires: libgcrypt-devel >= %{gcrypt_version} |
---|
22 | BuildRequires: intltool |
---|
23 | Conflicts: gnome-keyring < 2.29.4 |
---|
24 | |
---|
25 | |
---|
26 | %description |
---|
27 | gnome-keyring is a program that keep password and other secrets for |
---|
28 | users. The library libgnome-keyring is used by applications to integrate |
---|
29 | with the gnome-keyring system. |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Development files for libgnome-keyring |
---|
33 | License: LGPLv2+ |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | Requires: glib2-devel |
---|
37 | Requires: pkgconfig |
---|
38 | Requires: gtk-doc |
---|
39 | Conflicts: gnome-keyring-devel < 2.29.4 |
---|
40 | |
---|
41 | %description devel |
---|
42 | The libgnome-keyring-devel package contains the libraries and |
---|
43 | header files needed to develop applications that use libgnome-keyring. |
---|
44 | |
---|
45 | |
---|
46 | # compat32 |
---|
47 | %package -n compat32-%{name} |
---|
48 | Summary: Framework for managing passwords and other secrets |
---|
49 | Group: System Environment/Libraries |
---|
50 | Requires: %{name} = %{version}-%{release} |
---|
51 | |
---|
52 | %description -n compat32-%{name} |
---|
53 | gnome-keyring is a program that keep password and other secrets for |
---|
54 | users. The library libgnome-keyring is used by applications to integrate |
---|
55 | with the gnome-keyring system. |
---|
56 | |
---|
57 | |
---|
58 | %package -n compat32-%{name}-devel |
---|
59 | Summary: Development files for libgnome-keyring |
---|
60 | License: LGPLv2+ |
---|
61 | Group: Development/Libraries |
---|
62 | Requires: compat32-%{name} = %{version}-%{release} |
---|
63 | Requires: compat32-glib2-devel |
---|
64 | Conflicts: compat32-gnome-keyring-devel < 2.29.4 |
---|
65 | |
---|
66 | %description -n compat32-%{name}-devel |
---|
67 | The libgnome-keyring-devel package contains the libraries and |
---|
68 | header files needed to develop applications that use libgnome-keyring. |
---|
69 | |
---|
70 | |
---|
71 | %prep |
---|
72 | %setup -q -n libgnome-keyring-%{version} |
---|
73 | |
---|
74 | %build |
---|
75 | %configure --disable-gtk-doc |
---|
76 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
77 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
78 | |
---|
79 | # avoid unneeded direct dependencies |
---|
80 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool |
---|
81 | |
---|
82 | make %{?_smp_mflags} |
---|
83 | |
---|
84 | %install |
---|
85 | rm -rf $RPM_BUILD_ROOT |
---|
86 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
87 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
88 | |
---|
89 | %find_lang libgnome-keyring |
---|
90 | |
---|
91 | %clean |
---|
92 | rm -rf $RPM_BUILD_ROOT |
---|
93 | |
---|
94 | |
---|
95 | %post -p /sbin/ldconfig |
---|
96 | |
---|
97 | %postun -p /sbin/ldconfig |
---|
98 | |
---|
99 | |
---|
100 | %files -f libgnome-keyring.lang |
---|
101 | %defattr(-, root, root, -) |
---|
102 | %doc AUTHORS NEWS README COPYING HACKING |
---|
103 | %{_libdir}/lib*.so.* |
---|
104 | |
---|
105 | %files devel |
---|
106 | %defattr(-, root, root, -) |
---|
107 | %{_libdir}/lib*.so |
---|
108 | %{_libdir}/pkgconfig/* |
---|
109 | %{_includedir}/* |
---|
110 | %doc %{_datadir}/gtk-doc/html/gnome-keyring/ |
---|
111 | |
---|
112 | # compat32 |
---|
113 | %if %{build_compat32} |
---|
114 | %files -n compat32-%{name} |
---|
115 | %defattr(-, root, root, -) |
---|
116 | %{_libdir}/lib*.so.* |
---|
117 | |
---|
118 | %files -n compat32-%{name}-devel |
---|
119 | %defattr(-, root, root, -) |
---|
120 | %{_libdir}/lib*.so |
---|
121 | %{_libdir}/pkgconfig/* |
---|
122 | %endif |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.30.1-1 |
---|
126 | - new upstream release |
---|
127 | |
---|
128 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.30.0-1 |
---|
129 | - initial build for Vine Linux |
---|
130 | |
---|
131 | |
---|
132 | * Mon Mar 22 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.29.92-git20100322.1 |
---|
133 | - Update to a new git snapshot |
---|
134 | |
---|
135 | * Wed Mar 17 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.29.92-git20100317.1 |
---|
136 | - Update to 2.29.92 git snapshot |
---|
137 | |
---|
138 | * Wed Feb 17 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.29.4-4 |
---|
139 | - When no password is found, return GNOME_KEYRING_RESULT_NO_MATCH |
---|
140 | |
---|
141 | * Tue Feb 16 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.29.4-3 |
---|
142 | - Fix assertion when password is not found |
---|
143 | |
---|
144 | * Mon Jan 25 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.29.4-2 |
---|
145 | - Fix assertion calling deprecated acl function |
---|
146 | - Clear the client's session when the service disconnects |
---|
147 | - Implement setting of Type property in gnome_keyring_item_set_info() |
---|
148 | |
---|
149 | * Thu Jan 7 2010 Tomas Bzatek <tbzatek@redhat.com> - 2.29.4-1 |
---|
150 | - Initial packaging |
---|