|
|
|
@ -30,24 +30,20 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
rm -rf build && mkdir build && pushd build
|
|
|
|
|
export LDFLAGS="-Wl,--as-needed"
|
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
../
|
|
|
|
|
%make_build
|
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
pushd build
|
|
|
|
|
%make_install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
# Remove docs and use the rpmbuild macro instead
|
|
|
|
|
rm -rf %{buildroot}%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd build
|
|
|
|
|
make test
|
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|