From fa4a256888ae32f137086f55c86f46f119f7b7ac Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:32:14 +0100 Subject: [PATCH] update to 3.0.7 [release 3.0.7-1mamba;Wed Mar 30 2016] --- luceneplusplus-3.0.7-libboost-1.58.patch | 37 ++++++++++++++++++++++ luceneplusplus.spec | 39 ++++++++++++++---------- 2 files changed, 60 insertions(+), 16 deletions(-) create mode 100644 luceneplusplus-3.0.7-libboost-1.58.patch diff --git a/luceneplusplus-3.0.7-libboost-1.58.patch b/luceneplusplus-3.0.7-libboost-1.58.patch new file mode 100644 index 0000000..9ff33fd --- /dev/null +++ b/luceneplusplus-3.0.7-libboost-1.58.patch @@ -0,0 +1,37 @@ +commit 1987082cf9278a639d772b4f35a8ae2d34944177 +Author: Václav Slavík +Date: Mon May 4 18:04:46 2015 +0200 + + Fix compilation with Boost 1.58 + + 1.58 introduces strict type checking in boost::get() and while that's + good in theory, the VariantUtils code makes it impractical to use. + Instead, use relaxed_get() to get the old behavior. relaxed_get() didn't + exist in older versions of Boost, so the code must check BOOST_VERSION. + + Fixes #93. + +diff --git a/include/VariantUtils.h b/include/VariantUtils.h +index 1e6c243..5a72e59 100644 +--- a/include/VariantUtils.h ++++ b/include/VariantUtils.h +@@ -8,6 +8,7 @@ + #define VARIANTUTILS_H + + #include ++#include + #include "Lucene.h" + #include "MiscUtils.h" + +@@ -22,7 +23,11 @@ public: + + template + static TYPE get(VAR var) { ++#if BOOST_VERSION < 105800 + return var.type() == typeid(TYPE) ? boost::get(var) : TYPE(); ++#else ++ return var.type() == typeid(TYPE) ? boost::relaxed_get(var) : TYPE(); ++#endif + } + + template diff --git a/luceneplusplus.spec b/luceneplusplus.spec index cbbae38..a241272 100644 --- a/luceneplusplus.spec +++ b/luceneplusplus.spec @@ -1,5 +1,5 @@ Name: luceneplusplus -Version: 3.0.6 +Version: 3.0.7 Release: 1mamba Summary: An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine Group: System/Libraries @@ -10,6 +10,7 @@ URL: https://github.com/luceneplusplus/LucenePlusPlus ## GITSOURCE https://github.com/luceneplusplus/LucenePlusPlus.git master Source: https://github.com/luceneplusplus/LucenePlusPlus.git/rel_%{version}/LucenePlusPlus-%{version}.tar.bz2 Patch0: luceneplusplus-3.0.6-gcc-4.9.patch +Patch1: luceneplusplus-3.0.7-libboost-1.58.patch License: Apache License 2.0 ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -24,28 +25,31 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine. -%package -n lib%{name} +%package -n liblucene++ Group: System/Libraries -Summary: Shared libraries for %{name} +Summary: An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine +Provides: libluceneplusplus +Obsoletes: libluceneplusplus -%description -n lib%{name} -This package contains shared libraries for %{name}. +%description -n liblucene++ +An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine. -%package -n lib%{name}-devel +%package -n liblucene++-devel Group: Development/Libraries -Summary: Development files for %{name} -Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} -## note: you can add this requirement if .pc files are provided by this package -#Requires: pkg-config +Summary: Development files for liblucene++ +Requires: liblucene++ = %{?epoch:%epoch:}%{version}-%{release} +Provides: libluceneplusplus-devel +Obsoletes: libluceneplusplus-devel +Requires: pkg-config -%description -n lib%{name}-devel +%description -n liblucene++-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q -n LucenePlusPlus-%{version} -%patch0 -p1 +%patch1 -p1 %build %cmake -d build \ @@ -60,15 +64,15 @@ This package contains libraries and header files for developing applications tha %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -n lib%{name} -p /sbin/ldconfig -%postun -n lib%{name} -p /sbin/ldconfig +%post -n liblucene++ -p /sbin/ldconfig +%postun -n liblucene++ -p /sbin/ldconfig -%files -n lib%{name} +%files -n liblucene++ %defattr(-,root,root) %{_libdir}/liblucene++-contrib.so.* %{_libdir}/liblucene++.so.* -%files -n lib%{name}-devel +%files -n liblucene++-devel %defattr(-,root,root) %dir %{_includedir}/lucene++ %{_includedir}/lucene++/*.h @@ -80,5 +84,8 @@ This package contains libraries and header files for developing applications tha %changelog +* Wed Mar 30 2016 Silvan Calarco 3.0.7-1mamba +- update to 3.0.7 + * Sat Nov 01 2014 Silvan Calarco 3.0.6-1mamba - package created using the webbuild interface