SHA256
8
0
forked from pool/lucene__
Files
lucene__/lucene++.spec

88 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package lucene++
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: lucene++
Version: 3.0.7
Release: 0
Summary: A high-performance, full-featured text search engine written in C++
License: Apache-2.0 OR LGPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/luceneplusplus/LucenePlusPlus
Source: https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: 0001-Fix-compilation-with-Boost-1.58.patch
BuildRequires: cmake >= 2.8.6
BuildRequires: gcc-c++
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_iostreams-devel
BuildRequires: libboost_regex-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
BuildRequires: pkgconfig
BuildRequires: subversion
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(zlib)
%description
An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
%package -n liblucene++0
Summary: A high-performance, full-featured text search engine written in C++
Group: Development/Libraries/C and C++
%description -n liblucene++0
An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
%package devel
Summary: Development files for lucene++
Group: Development/Libraries/C and C++
Requires: liblucene++0 = %{version}
%description devel
Development files for lucene++, a high-performance, full-featured text search engine written in C++
%prep
%setup -q -n LucenePlusPlus-rel_%{version}
%patch1 -p1
%build
%cmake
%make_build lucene++
%make_build lucene++-contrib
%install
%cmake_install
%post -n liblucene++0 -p /sbin/ldconfig
%postun -n liblucene++0 -p /sbin/ldconfig
%files -n liblucene++0
%{_libdir}/liblucene++.so.*
%{_libdir}/liblucene++-contrib.so.*
%license COPYING APACHE.license GPL.license LGPL.license
%doc AUTHORS README* REQUESTS
%files devel
%license COPYING APACHE.license GPL.license LGPL.license
%{_includedir}/lucene++/
%{_libdir}/liblucene++.so
%{_libdir}/liblucene++-contrib.so
%{_libdir}/pkgconfig/liblucene++.pc
%{_libdir}/pkgconfig/liblucene++-contrib.pc
%changelog