From f9a7e731d1c01cda3d7a703013d15de46ccf13cd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:32:14 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.0.6-1mamba;Sat Nov 01 2014] --- README.md | 2 + luceneplusplus-3.0.6-gcc-4.9.patch | 10 ++++ luceneplusplus.spec | 84 ++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 luceneplusplus-3.0.6-gcc-4.9.patch create mode 100644 luceneplusplus.spec diff --git a/README.md b/README.md index 94df0fc..fa074d2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # luceneplusplus +An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine. + diff --git a/luceneplusplus-3.0.6-gcc-4.9.patch b/luceneplusplus-3.0.6-gcc-4.9.patch new file mode 100644 index 0000000..af03690 --- /dev/null +++ b/luceneplusplus-3.0.6-gcc-4.9.patch @@ -0,0 +1,10 @@ +--- LucenePlusPlus-3.0.6/src/test/util/LuceneTestFixture.cpp.orig 2014-11-05 00:33:28.115937130 +0100 ++++ LucenePlusPlus-3.0.6/src/test/util/LuceneTestFixture.cpp 2014-11-05 00:33:56.178954479 +0100 +@@ -21,7 +21,6 @@ + if (ConcurrentMergeScheduler::anyUnhandledExceptions()) { + // Clear the failure so that we don't just keep failing subsequent test cases + ConcurrentMergeScheduler::clearUnhandledExceptions(); +- FAIL() << "ConcurrentMergeScheduler hit unhandled exceptions"; + } + } + diff --git a/luceneplusplus.spec b/luceneplusplus.spec new file mode 100644 index 0000000..cbbae38 --- /dev/null +++ b/luceneplusplus.spec @@ -0,0 +1,84 @@ +Name: luceneplusplus +Version: 3.0.6 +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 +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libboost-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +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} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-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 + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n LucenePlusPlus-%{version} +%patch0 -p1 + +%build +%cmake -d build \ + -DLIB_DESTINATION=%{_lib} + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/liblucene++-contrib.so.* +%{_libdir}/liblucene++.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/lucene++ +%{_includedir}/lucene++/*.h +%{_libdir}/liblucene++-contrib.so +%{_libdir}/liblucene++.so +%{_libdir}/pkgconfig/liblucene++-contrib.pc +%{_libdir}/pkgconfig/liblucene++.pc +%doc README.PACKAGE README.rst + + +%changelog +* Sat Nov 01 2014 Silvan Calarco 3.0.6-1mamba +- package created using the webbuild interface