]> git.pld-linux.org Git - packages/clucene-core.git/commitdiff
- fix time.h detection, fixes build with recent headers master auto/th/clucene-core-2.3.3.4-5
authorMarcin Krol <hawk@tld-linux.org>
Fri, 8 Dec 2023 21:39:24 +0000 (22:39 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 8 Dec 2023 21:39:24 +0000 (22:39 +0100)
clucene-core.spec
time.patch [new file with mode: 0644]

index aa2392dc3d5f716cf1e21e8daff8c2851312b996..4cf937fdc4928c46b52abcdaaaf0c181ee3f401e 100644 (file)
@@ -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 (file)
index 0000000..fc7abbc
--- /dev/null
@@ -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")))
This page took 0.137538 seconds and 4 git commands to generate.