From bf527165a8bdee0be2c5dc7be71f2cf56ed0f52f476730e72ad13da079e1d19f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Aug 2018 10:15:20 +0000 Subject: [PATCH] Use bcond OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cmocka?expand=0&rev=42 --- cmocka.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmocka.spec b/cmocka.spec index a404656..012cd32 100644 --- a/cmocka.spec +++ b/cmocka.spec @@ -16,11 +16,11 @@ # -%global with_docs 1 +%bcond_without docs %if 0%{?suse_version} < 1500 || 0%{?sle_version} < 150000 # We need cmake >= 3.9 to build docs -%global with_docs 0 +%bcond_with docs %endif Name: cmocka @@ -115,9 +115,9 @@ Static cmocka unit testing library. -DUNIT_TESTING=ON make %{?_smp_mflags} -%if %{with_docs} +%if %{with docs} make docs -%endif # with_docs +%endif # with docs %install %cmake_install @@ -137,9 +137,9 @@ popd %{_libdir}/libcmocka.so.* %files -n libcmocka-devel -%if %{with_docs} +%if %{with docs} %doc build/doc/html -%endif # with_docs +%endif # with docs %{_includedir}/cmocka.h %{_includedir}/cmocka_pbc.h %dir %{_includedir}/cmockery