diff --git a/0003-fix-googletest-version.patch b/0003-fix-googletest-version.patch new file mode 100644 index 0000000000000000000000000000000000000000..49410c55c00ea64326cef896ebc2a9a37d2cd74e --- /dev/null +++ b/0003-fix-googletest-version.patch @@ -0,0 +1,19 @@ +From a0fdb1104615684cfb0c4e39319b48237a5447ec Mon Sep 17 00:00:00 2001 +From: geruijun +Date: Wed, 23 Mar 2022 16:01:47 +0800 +Subject: [PATCH] fix googletest version + +Signed-off-by: geruijun +--- + get-gmock.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/get-gmock.sh b/get-gmock.sh +index 2e5d2ae..164ee04 100755 +--- a/get-gmock.sh ++++ b/get-gmock.sh +@@ -1,3 +1,3 @@ + #!/bin/sh -e + +-git clone https://github.com/google/googletest ++git clone https://github.com/google/googletest --branch release-1.10.0 --depth 1 \ No newline at end of file diff --git a/thin-provisioning-tools.spec b/thin-provisioning-tools.spec index a6e4b1234d69dc23860dce3b133fc2b09b2e9ffe..4f1bef90737442f1e27276e60cf3e5208d319a06 100644 --- a/thin-provisioning-tools.spec +++ b/thin-provisioning-tools.spec @@ -1,12 +1,13 @@ Name: thin-provisioning-tools Version: 0.9.0 -Release: 3 +Release: 4 Summary: Tools for manipulating Device-mapper metadata License: GPLv3+ URL: https://github.com/jthornber/thin-provisioning-tools Source0: https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}.tar.gz Patch1: 0001-device-mapper-persistent-data-avoid-strip.patch Patch2: 0002-build-remove-lboost_iostreams-linker-flag.patch +Patch3: 0003-fix-googletest-version.patch BuildRequires: autoconf, expat-devel BuildRequires: libaio-devel, libstdc++-devel @@ -41,6 +42,11 @@ autoconf %install make DESTDIR=%{buildroot} MANDIR=%{_mandir} install +%check +sh get-gmock.sh +./configure --enable-testing +make unit_test + %files %doc README.md %license COPYING @@ -51,6 +57,9 @@ make DESTDIR=%{buildroot} MANDIR=%{_mandir} install %{_mandir}/man*/* %changelog +* Wed Mar 23 2022 Ge Ruijun - 0.9.0-4 +- fix googletest version + * Wed Sep 15 2021 Liu Zixian - 0.9.0-3 - Remove redundant dependency