diff --git a/ding-libs-0.4.0.tar.gz b/ding-libs-0.4.0.tar.gz
deleted file mode 100644
index f2620a9..0000000
--- a/ding-libs-0.4.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:bdeb90b07ceaa9145e6784ce40a71b69a37fffc7373c51fee258ffffd5390457
-size 827058
diff --git a/ding-libs-0.4.0.tar.gz.asc b/ding-libs-0.4.0.tar.gz.asc
deleted file mode 100644
index 1108385..0000000
--- a/ding-libs-0.4.0.tar.gz.asc
+++ /dev/null
@@ -1,11 +0,0 @@
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1
-
-iQEcBAABAgAGBQJThcdbAAoJEG9akOtE+8fHTusH/jDLtQ6EtfGTPeyiivdAk38l
-NVp+ByfLAPC07INL8Vi+PTxQWqgprq53aCgUQk2XgH3rBM3BNzTBUSd93iSdat+T
-vgFGnt/vw7XpxGopXhnYxi5vi6p0XPORxOgyeAx7qVDkdDa1AQ7M6PyO1SefJ6uD
-6pFZlVeFm4rp25sHciMTWhzHP3VmM3ysjai8nZJUZcU7euJ/hwCNlNcaEE6DNb+K
-tKds6dSgTY2m/xR2z2h5UOCckgBwIS/HB2h7/mXB9Jqgi8DOroQ1vmIPCPWld8vQ
-F7cyjc4xkoippwSyaadOEHuMBt7qd1yfs0K8QzpfJfqmq2Jp5MKM66mM860w9ts=
-=onSd
------END PGP SIGNATURE-----
diff --git a/ding-libs-0.5.0.tar.gz b/ding-libs-0.5.0.tar.gz
new file mode 100644
index 0000000..0102f86
--- /dev/null
+++ b/ding-libs-0.5.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dab937537a05d7a7cbe605fdb9b3809080d67b124ac97eb321255b35f5b172fd
+size 868840
diff --git a/ding-libs-0.5.0.tar.gz.asc b/ding-libs-0.5.0.tar.gz.asc
new file mode 100644
index 0000000..8c220d8
--- /dev/null
+++ b/ding-libs-0.5.0.tar.gz.asc
@@ -0,0 +1,11 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1
+
+iQEcBAABAgAGBQJViXHfAAoJEG9akOtE+8fHt9YH/AjFIgBSaA3hf6ep499JHlNg
+i/t9yCupDZCQAef/dCmqOTaP7bHmh01TGj8CakTek1uGJ97PmBncSVGxyedvTMo+
+AfwrxzkgfhFp6ToMONljaDE9/IlN6FN5fIT7NnARC0Bck4OZ3jz4sK3fYzCghkyK
+b3W9uIrLIn1n/bURK/pKELjlSDtca+pMSETJmjetixVLudOJ8CWE4AEMhzQdsmEl
+FDpmbui4sYCAQ4D2C/5qL2FEzQFDYPFQQXROsZ5E78vQYWt7JG07Qh7eqsGMR9vu
+WF5yUVyQpEezw6XeGnWuqJx/xXSJtZo1Y/6xsxMJ83qWNDAL/2r2DjmESbG8wgo=
+=pLYw
+-----END PGP SIGNATURE-----
diff --git a/ding-libs.changes b/ding-libs.changes
index 4ad8013..a5b7f26 100644
--- a/ding-libs.changes
+++ b/ding-libs.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Wed Feb 10 11:23:05 UTC 2016 - hguo@suse.com
+
+- Upgrade to latest upstream version 0.5.0.
+  The new version if ABI compatible with 0.4.0.
+
 -------------------------------------------------------------------
 Sun Aug 10 13:39:44 UTC 2014 - jengelh@inai.de
 
diff --git a/ding-libs.spec b/ding-libs.spec
index b9b360e..309f242 100644
--- a/ding-libs.spec
+++ b/ding-libs.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package ding-libs
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,15 +16,15 @@
 #
 
 
-%global basicobjects_version 0.1.1
-%global collection_version 0.6.2
-%global dhash_version 0.4.3
-%global ini_config_version 1.1.0
 %global path_utils_version 0.2.1
-%global ref_array_version 0.1.4
+%global dhash_version 0.4.3
+%global collection_version 0.6.2
+%global ref_array_version 0.1.1
+%global basicobjects_version 0.1.0
+%global ini_config_version 1.1.0
 
 Name:           ding-libs
-Version:        0.4.0
+Version:        0.5.0
 Release:        0
 Summary:        "Ding is not GLib" assorted utility libraries
 License:        GPL-3.0+ and LGPL-3.0+
@@ -158,7 +158,7 @@ Utility functions to manipulate filesystem pathnames
 
 %package -n libref_array1
 Summary:        A refcounted array for C
-License:        GPL-3.0+
+License:        LGPL-3.0+
 Group:          System/Libraries
 Version:        %ref_array_version
 Release:        0
@@ -168,7 +168,7 @@ A dynamically-growing, reference-counted array
 
 %package -n libref_array-devel
 Summary:        Development files for libref_array
-License:        GPL-3.0+
+License:        LGPL-3.0+
 Group:          Development/Libraries/C and C++
 Requires:       libref_array1 = %ref_array_version
 Version:        %ref_array_version
@@ -188,9 +188,8 @@ make %{?_smp_mflags} all docs
 make %{?_smp_mflags} check
 
 %install
-b="%buildroot"
-make install DESTDIR="$b"
-rm -f "$b/%_libdir"/*.la
+make install DESTDIR="%{buildroot}"
+rm -f "%{buildroot}/%_libdir"/*.la
 
 # Remove the example files from the output directory
 # We will copy them directly from the source directory