From: Marcin Krol Date: Fri, 8 Dec 2023 21:39:24 +0000 (+0100) Subject: - fix time.h detection, fixes build with recent headers X-Git-Tag: auto/th/clucene-core-2.3.3.4-5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fclucene-core.git;a=commitdiff_plain;h=HEAD - fix time.h detection, fixes build with recent headers --- diff --git a/clucene-core.spec b/clucene-core.spec index aa2392d..4cf937f 100644 --- a/clucene-core.spec +++ b/clucene-core.spec @@ -2,13 +2,14 @@ Summary: An indexing and searching API Summary(pl.UTF-8): API do indeksowania i wyszukiwania Name: clucene-core Version: 2.3.3.4 -Release: 4 +Release: 5 License: LGPL or Apache v2.0 Group: Libraries Source0: http://downloads.sourceforge.net/clucene/%{name}-%{version}.tar.gz # Source0-md5: 48d647fbd8ef8889e5a7f422c1bfda94 Patch0: %{name}-2.3.3.4-install_contribs_lib.patch Patch1: remove-boost-headers.patch +Patch2: time.patch URL: http://clucene.sourceforge.net/ BuildRequires: cmake BuildRequires: libstdc++-devel @@ -52,6 +53,7 @@ Statyczna biblioteka CLucene. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build install -d build diff --git a/time.patch b/time.patch new file mode 100644 index 0000000..fc7abbc --- /dev/null +++ b/time.patch @@ -0,0 +1,12 @@ +diff -ur clucene-core-2.3.3.4.orig/src/shared/CLucene/clucene-config.h.cmake clucene-core-2.3.3.4/src/shared/CLucene/clucene-config.h.cmake +--- clucene-core-2.3.3.4.orig/src/shared/CLucene/clucene-config.h.cmake 2011-03-17 01:21:07.000000000 +0100 ++++ clucene-core-2.3.3.4/src/shared/CLucene/clucene-config.h.cmake 2023-12-08 22:34:57.498531196 +0100 +@@ -101,7 +101,7 @@ + + /* Define to 1 if you can safely include both and . */ + //not actually used for anything... +-//#cmakedefine _CL_TIME_WITH_SYS_TIME 1 ++#cmakedefine _CL_TIME_WITH_SYS_TIME 1 + + /* Define that we will be using -fvisibility=hidden, and + * make public classes visible using __attribute__ ((visibility("default")))