luceneplusplus/luceneplusplus.spec

97 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: luceneplusplus
Version: 3.0.7
Release: 2mamba
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
## 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
BuildRequires: ldconfig
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 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
%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
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}
%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
%{_libdir}/liblucene++-contrib.so
%{_libdir}/liblucene++.so
%{_libdir}/pkgconfig/liblucene++-contrib.pc
%{_libdir}/pkgconfig/liblucene++.pc
%doc README.PACKAGE README.rst
%changelog
* 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