diff --git a/libbrasero-burn/Makefile.am b/libbrasero-burn/Makefile.am
index 3c723ce..5b31a87 100644
--- a/libbrasero-burn/Makefile.am
+++ b/libbrasero-burn/Makefile.am
@@ -204,20 +204,20 @@ EXTRA_DIST =			\
 
 if HAVE_INTROSPECTION
 girdir = $(INTROSPECTION_GIRDIR)
-gir_DATA = BraseroBurn-@BRASERO_VERSION@.gir
+gir_DATA = BraseroBurn-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.gir
 
 typelibsdir = $(INTROSPECTION_TYPELIBDIR)
-typelibs_DATA = BraseroBurn-@BRASERO_VERSION@.typelib
+typelibs_DATA = BraseroBurn-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.typelib
 
-BraseroBurn-@BRASERO_VERSION@.gir: libbrasero-burn3.la $(INTROSPECTION_SCANNER)
-	$(INTROSPECTION_SCANNER) -v --namespace=BraseroBurn --nsversion=1.0 \
+BraseroBurn-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.gir: libbrasero-burn3.la $(INTROSPECTION_SCANNER)
+	$(INTROSPECTION_SCANNER) -v --namespace=BraseroBurn --nsversion=@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@ \
 	    -I$(top_srcdir)/libbrasero-media	\
 	    -I$(top_builddir)/libbrasero-media	\
 	    -I$(top_srcdir)/libbrasero-burn		\
 	    -I$(top_builddir)/libbrasero-burn	\
             --include=Gtk-3.0 \
             --add-include-path=$(top_builddir)/libbrasero-media	\
-	    --include=BraseroMedia-@BRASERO_VERSION@ \
+	    --include=BraseroMedia-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@ \
 	    --library=brasero-burn3 \
 	    --libtool="$(LIBTOOL)" \
             --output $@ \
@@ -247,7 +247,7 @@ BraseroBurn-@BRASERO_VERSION@.gir: libbrasero-burn3.la $(INTROSPECTION_SCANNER)
 	    $(top_srcdir)/libbrasero-burn/brasero-sum-dialog.h					\
 	    $(top_srcdir)/libbrasero-burn/*.c	    
 
-BraseroBurn-@BRASERO_VERSION@.typelib: $(gir_DATA) $(INTROSPECTION_COMPILER)
+BraseroBurn-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.typelib: $(gir_DATA) $(INTROSPECTION_COMPILER)
 	$(INTROSPECTION_COMPILER) $(top_builddir)/libbrasero-burn/$(gir_DATA) --shared-library=libbrasero-burn3 -o $(typelibs_DATA) --includedir=$(top_builddir)/libbrasero-media
 endif
 
diff --git a/libbrasero-media/Makefile.am b/libbrasero-media/Makefile.am
index 22307b8..2684935 100644
--- a/libbrasero-media/Makefile.am
+++ b/libbrasero-media/Makefile.am
@@ -152,13 +152,13 @@ endif
 
 if HAVE_INTROSPECTION
 girdir = $(INTROSPECTION_GIRDIR)
-gir_DATA = BraseroMedia-@BRASERO_VERSION@.gir
+gir_DATA = BraseroMedia-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.gir
 
 typelibsdir = $(INTROSPECTION_TYPELIBDIR)
-typelibs_DATA = BraseroMedia-@BRASERO_VERSION@.typelib
+typelibs_DATA = BraseroMedia-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.typelib
 
-BraseroMedia-@BRASERO_VERSION@.gir: libbrasero-media3.la $(INTROSPECTION_SCANNER)
-	$(INTROSPECTION_SCANNER) -v --namespace=BraseroMedia --nsversion=1.0 \
+BraseroMedia-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.gir: libbrasero-media3.la $(INTROSPECTION_SCANNER)
+	$(INTROSPECTION_SCANNER) -v --namespace=BraseroMedia --nsversion=@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@ \
             --include=Gtk-3.0 \
 	    -I$(top_srcdir)/libbrasero-media	\
 	    --library=brasero-media3 \
@@ -176,7 +176,7 @@ BraseroMedia-@BRASERO_VERSION@.gir: libbrasero-media3.la $(INTROSPECTION_SCANNER
 	    $(top_srcdir)/libbrasero-media/brasero-drive-selection.h	\
             $(top_srcdir)/libbrasero-media/*.c	    
 
-BraseroMedia-@BRASERO_VERSION@.typelib: $(gir_DATA) $(INTROSPECTION_COMPILER)
+BraseroMedia-@BRASERO_MAJOR_VERSION@.@BRASERO_MINOR_VERSION@.typelib: $(gir_DATA) $(INTROSPECTION_COMPILER)
 	$(INTROSPECTION_COMPILER) $(top_builddir)/libbrasero-media/$(gir_DATA) --shared-library=libbrasero-media3 -o $(typelibs_DATA)
 endif
 
