Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
757c5efdf2
commit
f5c569a098
@ -40,28 +40,17 @@ gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if test ! -e "obj"; then
|
|
||||||
mkdir obj
|
|
||||||
fi
|
|
||||||
pushd obj
|
|
||||||
%cmake \
|
%cmake \
|
||||||
-DUNIT_TESTING=ON \
|
-DUNIT_TESTING=ON
|
||||||
%{_builddir}/%{name}-%{version}
|
%cmake_build
|
||||||
|
|
||||||
make %{?_smp_mflags} VERBOSE=1
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd obj
|
%cmake_install
|
||||||
make DESTDIR=%{buildroot} install
|
|
||||||
popd
|
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd obj
|
%ctest
|
||||||
make test || cat $(find Testing -name "*.log")
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS README.md ChangeLog
|
%doc AUTHORS README.md ChangeLog
|
||||||
|
Loading…
Reference in New Issue
Block a user