diff --git a/.gitignore b/.gitignore
index f53ac97..5ff2277 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-SOURCES/tevent-0.9.37.tar.gz
+SOURCES/tevent-0.9.39.tar.gz
diff --git a/.libtevent.metadata b/.libtevent.metadata
index ea1690d..cfb1d44 100644
--- a/.libtevent.metadata
+++ b/.libtevent.metadata
@@ -1 +1 @@
-5b1c1c2bed1323ee5088b211f3e2d29d8822a10b SOURCES/tevent-0.9.37.tar.gz
+96adb8a34c6838e2b8bd2f9a874e9bb18d79ccff SOURCES/tevent-0.9.39.tar.gz
diff --git a/SPECS/libtevent.spec b/SPECS/libtevent.spec
index 510db98..a164c44 100644
--- a/SPECS/libtevent.spec
+++ b/SPECS/libtevent.spec
@@ -1,5 +1,5 @@
 Name: libtevent
-Version: 0.9.37
+Version: 0.9.39
 Release: 1%{?dist}
 Group: System Environment/Daemons
 Summary: The tevent library
@@ -69,6 +69,7 @@ for p in %patches ; do
 done 
 
 %build
+export PYTHON=/usr/bin/python2
 %configure --disable-rpath \
            --bundled-libraries=NONE \
            --builtin-libraries=replace
@@ -80,6 +81,7 @@ doxygen doxy.config
 %install
 rm -rf $RPM_BUILD_ROOT
 
+export PYTHON=/usr/bin/python2
 make install DESTDIR=$RPM_BUILD_ROOT
 
 # Shared libraries need to be marked executable for
@@ -117,6 +119,9 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p /sbin/ldconfig
 
 %changelog
+* Fri Aug  2 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.9.39-1
+- Resolves: #1736006 - Rebase libtevent to version 0.9.39 for Samba
+
 * Wed Jan 16 2019 Jakub Hrozek <jhrozek@redhat.com> - 0.9.37-1
 - Resolves: #1658748 - Rebase libtevent to version 0.9.37 for Samba