commit 5634dd9948169e450531e720084cb56e362e0da9
Author: Marcin Krol <[email protected]>
Date:   Fri Dec 8 22:39:24 2023 +0100

    - fix time.h detection, fixes build with recent headers

 clucene-core.spec |  4 +++-
 time.patch        | 12 ++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
---
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 <sys/time.h> and <time.h>. */
+ //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")))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clucene-core.git/commitdiff/5634dd9948169e450531e720084cb56e362e0da9

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to