diff --git a/.gitignore b/.gitignore
index 825a634..9a9b9bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-SOURCES/libnl-3.4.0.tar.gz
-SOURCES/libnl-doc-3.4.0.tar.gz
+SOURCES/libnl-3.5.0.tar.gz
+SOURCES/libnl-doc-3.5.0.tar.gz
diff --git a/.libnl3.metadata b/.libnl3.metadata
index aba00bc..f62ef88 100644
--- a/.libnl3.metadata
+++ b/.libnl3.metadata
@@ -1,2 +1,2 @@
-4fc4c3b6812dc7e68ef8acb69287583685266a0b SOURCES/libnl-3.4.0.tar.gz
-96c58cb6a5490f6c68838b74f68ec1d7d9a0eb54 SOURCES/libnl-doc-3.4.0.tar.gz
+54c476a3103add175a6a055fcf45c0a29d2c0948 SOURCES/libnl-3.5.0.tar.gz
+e0857124974053ee7be34fbda6812b57961f0ae8 SOURCES/libnl-doc-3.5.0.tar.gz
diff --git a/SPECS/libnl3.spec b/SPECS/libnl3.spec
index 472c368..e74a692 100644
--- a/SPECS/libnl3.spec
+++ b/SPECS/libnl3.spec
@@ -1,6 +1,6 @@
 Name: libnl3
-Version: 3.4.0
-Release: 4%{?dist}
+Version: 3.5.0
+Release: 1%{?dist}
 Summary: Convenience library for kernel netlink sockets
 Group: Development/Libraries
 License: LGPLv2
@@ -67,7 +67,7 @@ Requires: %{name} = %{version}-%{release}
 
 %description -n python2-libnl3
 Python 2 bindings for libnl3
-%endif # with python2
+%endif
 
 %package -n python3-libnl3
 Summary: libnl3 binding for Python 3
@@ -80,9 +80,7 @@ Requires: %{name} = %{version}-%{release}
 Python 3 bindings for libnl3
 
 %prep
-%setup -q -n libnl-%{fullversion}
-
-#%patch1 -p1
+%autosetup -p1 -n libnl-%{fullversion}
 
 tar -xzf %SOURCE1
 
@@ -99,7 +97,7 @@ CFLAGS="$RPM_OPT_FLAGS" %py3_build
 %if %{with python2}
 CFLAGS="$RPM_OPT_FLAGS" %py2_build
 CFLAGS="$RPM_OPT_FLAGS" %py2_build
-%endif # with python2
+%endif
 popd
 
 %install
@@ -111,7 +109,7 @@ pushd ./python/
 %py3_install
 %if %{with python2}
 %py2_install
-%endif # with python2
+%endif
 popd
 
 %check
@@ -121,7 +119,7 @@ pushd ./python/
 %{__python3} setup.py check
 %if %{with python2}
 %{__python2} setup.py check
-%endif # with python2
+%endif
 popd
 
 %post -p /sbin/ldconfig
@@ -164,7 +162,7 @@ popd
 %defattr(-,root,root,-)
 %{python2_sitearch}/netlink
 %{python2_sitearch}/netlink-*.egg-info
-%endif # with python2
+%endif
 
 %files -n python3-libnl3
 %defattr(-,root,root,-)
@@ -172,6 +170,12 @@ popd
 %{python3_sitearch}/netlink-*.egg-info
 
 %changelog
+* Tue Nov 26 2019 Thomas Haller <thaller@redhat.com> - 3.5.0-1
+- Update to 3.5.0
+
+* Tue Aug 27 2019 Thomas Haller <thaller@redhat.com> - 3.4.0-5
+- Fix issues found by coverity (rh #1606988)
+
 * Fri Mar 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.4.0-4
 - Conditionalize the Python 2 subpackage