Commit a43b7389 authored by jehan's avatar jehan

update spec file to be able to use both %cmake and %cmake3

parent ca286991
......@@ -38,6 +38,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: i686
%if 0%{?rhel} && 0%{?rhel} <= 7
%global cmake_name cmake3
%define ctest_name ctest3
%global cmake_name cmake
%define ctest_name ctest
oRTP is a LGPL licensed C library implementing the RTP protocol
(rfc3550). It is available for most unix clones (primilarly Linux and
......@@ -71,14 +79,14 @@ develop programs using the oRTP library.
%setup -n %{name}-%{version}-%build_number
%cmake3 .
%{expand:%%%cmake_name} .
make %{?_smp_mflags}
make install DESTDIR=%{buildroot}
ctest3 -V %{?_smp_mflags}
%{ctest_name} -V %{?_smp_mflags}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment