From c5641545c13fe6352a6ae0767b4da42ac6dc6a05 Mon Sep 17 00:00:00 2001
From: Germano Massullo <germano.massullo(a)gmail.com>
Date: Feb 28 2018 21:56:38 +0000
Subject: added macros for cmake 3 on EPEL7
---
diff --git a/qesteidutil.spec b/qesteidutil.spec
index ce1149f..5d891c5 100644
--- a/qesteidutil.spec
+++ b/qesteidutil.spec
@@ -4,7 +4,7 @@
Name: qesteidutil
Version: 3.12.10
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Estonian ID card utility
License: LGPLv2+
URL:
https://github.com/open-eid/qesteidutil
@@ -17,7 +17,12 @@ Source4: config.qrc
Patch0: sandbox-compilation.patch
-BuildRequires: cmake
+
+%if 0%{?el7}
+BuildRequires: cmake3 >= 3.1
+%else
+BuildRequires: cmake
+%endif
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(Qt5Designer)
@@ -51,7 +56,11 @@ rm -rf COPING
%build
+%if 0%{?el7}
+%{cmake3} . -DBREAKPAD=FALSE
+%else
%{cmake} . -DBREAKPAD=FALSE
+%endif
%make_build
@@ -84,6 +93,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_mandir}/man1/qesteidutil.1*
%changelog
+* Wed Feb 28 2018 Germano Massullo <germano.massullo(a)gmail.com> - 3.12.10-3
+- added macros for cmake 3 on EPEL7
+
* Thu Feb 15 2018 Germano Massullo <germano.massullo(a)gmail.com> - 3.12.10-2
- added missing %%patch0 -p1
https://src.fedoraproject.org/rpms/qesteidutil/c/c5641545c13fe6352a6ae076...