commit 5c9ff1365909f663d0c7adc8dad4cf12c8504e9d
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Aug 19 09:46:14 2020 +0100
Improve compatibility with new CMake macro
dynamips.spec | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/dynamips.spec b/dynamips.spec
index 79a5258..9edb786 100644
--- a/dynamips.spec
+++ b/dynamips.spec
@@ -1,3 +1,5 @@
+%undefine __cmake_in_source_build
+
Name: dynamips
Version: 0.2.21
Release: 3%{?dist}
@@ -9,7 +11,7 @@ License: Proprietary
URL:
https://github.com/GNS3/dynamips
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
-BuildRequires: cmake
+BuildRequires: cmake3
BuildRequires: gcc
BuildRequires: elfutils-libelf-devel
BuildRequires: libpcap-devel
@@ -26,21 +28,18 @@ functional routers
%build
-mkdir build
-cd build
-%{cmake} \
- ..
+%{cmake3}
# Theses options don't build yet
# -DBUILD_UDP_SEND:BOOL=True \
# -DBUILD_UDP_RECV:BOOL=True \
-%make_build
+%cmake3_build
%install
cd build
-%make_install
+%cmake3_install
# Don't install pre-installed docs
rm -rf %{buildroot}%{_docdir}/dynamips