From 4c40ec336d4d3394c74968c76941803e207648e6 Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro@hroncok.cz>
Date: Jan 28 2019 13:14:49 +0000
Subject: Subpackage python2-librepo has been removed


See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

---

diff --git a/librepo.spec b/librepo.spec
index 6734d9e..c39ac9e 100644
--- a/librepo.spec
+++ b/librepo.spec
@@ -8,8 +8,8 @@
 %bcond_without tests
 %endif
 
-%if 0%{?rhel} && 0%{?rhel} > 7
-# Do not build bindings for python2 for RHEL > 7
+%if 0%{?rhel} > 7 || 0%{?fedora} > 29
+# Do not build bindings for python2 for RHEL > 7 or Fedora > 29
 %bcond_with python2
 %else
 %bcond_without python2
@@ -20,7 +20,7 @@
 
 Name:           librepo
 Version:        1.9.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Repodata downloading library
 
 License:        LGPLv2+
@@ -178,6 +178,10 @@ popd
 %endif
 
 %changelog
+* Mon Jan 28 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-2
+- Subpackage python2-librepo has been removed
+  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
+
 * Tue Sep 25 2018 Jaroslav Mracek <jmracek@redhat.com> - 1.9.2-1
 - Update to 1.9.2
 - Fix major performance regression with libcurl-7.61.1