luceneplusplus/luceneplusplus.spec

103 lines
3.2 KiB
RPMSpec

Name: luceneplusplus
Version: 3.0.8
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 <silvan.calarco@mambasoft.it>
URL: https://github.com/luceneplusplus/LucenePlusPlus
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
BuildRequires: libboost-devel
BuildRequires: libbzip2-devel
BuildRequires: libgcc
BuildRequires: libicu-devel
BuildRequires: liblzma-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
%package -n liblucene++
Group: System/Libraries
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 < 3.0.8
%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 liblucene++-devel
Group: Development/Libraries
Summary: Development files for liblucene++
Requires: liblucene++ = %{?epoch:%epoch:}%{version}-%{release}
Provides: libluceneplusplus-devel
Obsoletes: libluceneplusplus-devel < 3.0.8
Requires: pkg-config
%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}
#%patch1 -p1
%build
%cmake -d build \
-DLIB_DESTINATION=%{_lib} \
-DENABLE_TEST=OFF
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n liblucene++ -p /sbin/ldconfig
%postun -n liblucene++ -p /sbin/ldconfig
%files -n liblucene++
%defattr(-,root,root)
#%{_libdir}/liblucene++-contrib.so.*
%{_libdir}/liblucene++.so.*
%doc COPYING
%files -n liblucene++-devel
%defattr(-,root,root)
%dir %{_includedir}/lucene++
%{_includedir}/lucene++/*.h
%{_includedir}/pkgconfig/liblucene++-contrib.pc
%{_includedir}/pkgconfig/liblucene++.pc
%{_libdir}/liblucene++-contrib.so
%{_libdir}/liblucene++.so
%{_includedir}/cmake/liblucene++*.cmake
%doc README.PACKAGE
%changelog
* Sat May 15 2021 Automatic Build System <autodist@mambasoft.it> 3.0.8-1mamba
- automatic version update by autodist
* Tue Jun 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.7-2mamba
- rebuilt with current libboost
* Wed Mar 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.7-1mamba
- update to 3.0.7
* Sat Nov 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.6-1mamba
- package created using the webbuild interface