From 540d91481706e458b2c3973b99a40b217663f15e90c3cb14838dd6c530c3faef Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Aug 2018 08:34:07 +0000 Subject: [PATCH] Added 0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cmocka?expand=0&rev=38 --- ...EATER_EQUAL-is-not-suppored-by-cmake.patch | 25 +++++++++++++++++++ cmocka.changes | 1 + cmocka.spec | 4 +++ 3 files changed, 30 insertions(+) create mode 100644 0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch diff --git a/0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch b/0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch new file mode 100644 index 0000000..93571ef --- /dev/null +++ b/0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch @@ -0,0 +1,25 @@ +From 4114b15f01953cbe01c4cbc2018cb982815cb566 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider +Date: Thu, 30 Aug 2018 07:35:22 +0200 +Subject: [PATCH] cmake: VERSION_GREATER_EQUAL is not suppored by cmake 3.3 + +--- + doc/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt +index 24ed569..8c3426f 100644 +--- a/doc/CMakeLists.txt ++++ b/doc/CMakeLists.txt +@@ -1,7 +1,7 @@ + # + # Build the documentation + # +-if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.9.0") ++if (${CMAKE_VERSION} VERSION_GREATER "3.8.99") + + find_package(Doxygen) + +-- +2.18.0 + diff --git a/cmocka.changes b/cmocka.changes index 8ce636a..5f72b6c 100644 --- a/cmocka.changes +++ b/cmocka.changes @@ -2,6 +2,7 @@ Thu Aug 30 08:04:05 UTC 2018 - Andreas Schneider - Fix packaging the documentation +- Added 0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch ------------------------------------------------------------------- Wed Aug 29 15:15:03 UTC 2018 - Andreas Schneider diff --git a/cmocka.spec b/cmocka.spec index b19d59d..0b62979 100644 --- a/cmocka.spec +++ b/cmocka.spec @@ -30,10 +30,14 @@ Summary: Lightweight library to simplify and generalize unit tests for C License: Apache-2.0 Group: Productivity/Networking/Other URL: https://cmocka.org + Source0: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz Source1: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz.asc Source2: %{name}.keyring Source3: baselibs.conf + +Patch0: 0001-cmake-VERSION_GREATER_EQUAL-is-not-suppored-by-cmake.patch + BuildRequires: cmake BuildRequires: doxygen BuildRequires: glibc-devel