luceneplusplus/luceneplusplus.spec

105 lines
3.4 KiB
RPMSpec

Name: luceneplusplus
Version: 3.0.9
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
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libboost-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libz-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}
%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++.so.*
%{_libdir}/liblucene++-contrib.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
%dir %{_libdir}/cmake/liblucene++-contrib
%{_libdir}/cmake/liblucene++-contrib/liblucene++-contrib*.cmake
%dir %{_libdir}/cmake/liblucene++
%{_libdir}/cmake/liblucene++/liblucene++Config*.cmake
%doc README.PACKAGE
%changelog
* Tue Feb 27 2024 Automatic Build System <autodist@openmamba.org> 3.0.9-1mamba
- automatic version update by autodist
* Mon Jul 12 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.8-2mamba
- fix pkgconfig and cmake files installation path
* 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