From db4b133524f8abc70a518e22dd750dfb78cb2ab0 Mon Sep 17 00:00:00 2001
From: Lukáš Hrázký <lhrazky@redhat.com>
Date: Aug 07 2020 13:30:17 +0000
Subject: spec: Fix building with new cmake macros


= changelog =
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1864042

Signed-off-by: Nicola Sella <nsella@redhat.com>

---

diff --git a/librepo.spec b/librepo.spec
index 899f5cc..674def7 100644
--- a/librepo.spec
+++ b/librepo.spec
@@ -1,5 +1,7 @@
 %global libcurl_version 7.28.0
 
+%define __cmake_in_source_build 1
+
 %if 0%{?rhel} && 0%{?rhel} <= 7
 # Do not build bindings for python3 for RHEL <= 7
 %bcond_with python3
@@ -27,7 +29,7 @@
 
 Name:           librepo
 Version:        1.12.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Repodata downloading library
 
 License:        LGPLv2+
@@ -190,6 +192,9 @@ popd
 %endif
 
 %changelog
+* Fri Aug 07 2020 Nicola Sella <nsella@redhat.com> - 1.12.0-4
+spec: Fix building with new cmake macros
+
 * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
 - Second attempt - Rebuilt for
   https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild