From: Jerzy Drozdz <jerzy.drozdz@gmail.com>
Date: Mon, 8 Jun 2020 14:42:49 +0000 (+0200)
Subject: Fixed python2 build problem
X-Git-Tag: 1.11~4
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b03c205a8cc4804cda90c3d706cf565443c65d78;p=deb_pkgs%2Fautorandr.git

Fixed python2 build problem
---

diff --git a/contrib/packaging/rpm/autorandr.spec b/contrib/packaging/rpm/autorandr.spec
index 0553c4f..9bd576d 100644
--- a/contrib/packaging/rpm/autorandr.spec
+++ b/contrib/packaging/rpm/autorandr.spec
@@ -38,6 +38,10 @@ BuildRequires: bash-completion
 BuildRequires: python%{py_ver}-devel
 BuildRequires: systemd
 BuildRequires: udev
+%if %{py_ver} == 2
+BuildRequires: python3-devel
+%endif
+
 
 %description
 # autorandr