diff -ur gnome-keyring-2.28.0/configure.in gnome-keyring-2.28.0.new/configure.in
--- gnome-keyring-2.28.0/configure.in	2009-09-21 19:36:44 +0400
+++ gnome-keyring-2.28.0.new/configure.in	2009-10-14 16:26:03 +0400
@@ -370,6 +370,31 @@
 	AC_MSG_ERROR(asn1Parser tool is not installed)
 fi
 
+# -------------------------------------------------------------------
+# Checks for GObject Introspection
+#
+have_introspection=false
+PKG_CHECK_MODULES(INTROSPECTION, gobject-introspection-1.0 >= 0.6.4, have_introspection=true, have_introspection=false)
+AM_CONDITIONAL(HAVE_INTROSPECTION, $have_introspection)
+
+G_IR_SCANNER=
+G_IR_COMPILER=
+G_IR_GENERATE=
+GIRDIR=
+TYPELIBDIR=
+if $have_introspection; then
+   G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
+   G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
+   G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
+   GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
+   TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+fi
+AC_SUBST(G_IR_SCANNER)
+AC_SUBST(G_IR_COMPILER)
+AC_SUBST(G_IR_GENERATE)
+AC_SUBST(GIRDIR)
+AC_SUBST(TYPELIBDIR)
+
 # --------------------------------------------------------------------
 # Debug mode
 
diff -ur gnome-keyring-2.28.0/library/Makefile.am gnome-keyring-2.28.0.new/library/Makefile.am
--- gnome-keyring-2.28.0/library/Makefile.am	2009-04-18 06:51:49 +0400
+++ gnome-keyring-2.28.0.new/library/Makefile.am	2009-10-14 16:46:03 +0400
@@ -63,3 +63,34 @@
 
 SUBDIRS = . \
 	$(TESTS_DIR)
+
+BUILT_GIRSOURCES = GnomeKeyring-2.0.gir
+
+GnomeKeyring-2.0.gir: $(libgnomekeyringinclude_HEADERS)
+GnomeKeyring-2.0.gir: $(libgnome_keyring_la_SOURCES)
+GnomeKeyring-2.0.gir: libgnome-keyring.la
+GnomeKeyring-2.0.gir: $(G_IR_SCANNER) Makefile
+	$(AM_V_GEN) $(G_IR_SCANNER) -v --namespace GnomeKeyring --nsversion=2.0 \
+	    --add-include-path=$(srcdir) --add-include-path=. \
+	    --include=GObject-2.0 \
+	    --library=libgnome-keyring.la \
+	    --libtool="$(LIBTOOL)" \
+	    --output $@ \
+	    --pkg gnome-keyring-1 \
+	    -I$(top_srcdir) \
+	    $(libgnomekeyringinclude_HEADERS) \
+	    $(libgnome_keyring_la_SOURCES)
+
+if HAVE_INTROSPECTION
+
+girdir = $(GIRDIR)
+gir_DATA = $(BUILT_GIRSOURCES)
+
+typelibsdir = $(TYPELIBDIR)
+typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
+
+%.typelib: %.gir $(G_IR_COMPILER)
+	$(AM_V_GEN) LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $(builddir)/$(@F)
+
+endif # HAVE_INTROSPECTION
+
