=> Use macro %cmake
=> Remove useless cp command for LICENSE.
Since rpm 4.11 the license is managed by rpm (by using %license macro in file section)
Change-Id: If68cf57c6f39ec036d34f0a0394b6960e9dbfce7
Signed-off-by: Baptiste DURAND <baptiste.durand@eurogiciel.fr>
export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed"
-cmake . -DVERSION=%{version} \
+%cmake . -DVERSION=%{version} \
-DDPL_LOG="OFF" \
-DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
%{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS} \
make %{?jobs:-j%jobs}
%install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
%make_install