diff --git a/lmdb.spec b/lmdb.spec index e73f06f2997cd152f93094783d13f0e722fb08ac..a5b0ae552f1ebc0f376ff4a82212865ca2478ed3 100644 --- a/lmdb.spec +++ b/lmdb.spec @@ -1,7 +1,7 @@ %global commit_hash d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67 Name: lmdb Version: 0.9.30 -Release: 2 +Release: 3 Summary: An extraordinarily fast, memory-efficient database License: OLDAP-2.8 URL: http://symas.com/lmdb/ @@ -12,6 +12,7 @@ BuildRequires: gcc, make, doxygen, Patch0: lmdb-make.patch Patch1: lmdb-s390-check.patch +Patch2: support-specify-cc.patch Provides: %{name}-libs Obsoletes: %{name}-libs < %{version}-%{release} @@ -89,6 +90,9 @@ popd %license libraries/lib%{name}/LICENSE %changelog +* Mon Apr 17 2023 jammyjellyfish - 0.9.30-3 +- Support specify CC + * Fri Nov 25 2022 wangjiang - 0.9.30-2 - fix obsoletes in spec diff --git a/support-specify-cc.patch b/support-specify-cc.patch new file mode 100644 index 0000000000000000000000000000000000000000..1dfd7733eb8a4101e6dc8c2c69fd17c1ea28bd4e --- /dev/null +++ b/support-specify-cc.patch @@ -0,0 +1,12 @@ +diff -up openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile.orig2 openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile +--- openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile.orig2 2023-04-17 13:58:34.001243208 +0800 ++++ openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile 2023-04-17 14:01:51.153795000 +0800 +@@ -18,7 +18,7 @@ + # There may be other macros in mdb.c of interest. You should + # read mdb.c before changing any of them. + # +-CC = gcc ++CC ?= gcc + AR = ar + W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized + THREADS = -pthread