File mingw64-lucene++.spec of Package mingw64-lucene++
#
# spec file for package mingw64-lucene++
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: mingw64-lucene++
Version: 3.0.7
Release: 0
Summary: Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine
License: LGPL-3.0-only
Group: System/Libraries
Url: https://github.com/luceneplusplus/LucenePlusPlus
Source: lucene++-%{version}.tar.gz
Patch0: fix-build.diff
Patch1: boost_interprocess_file_lock_use_wchar.patch
Patch2: 0001-Fix-compilation-with-Boost-1.58.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-boost-devel
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem >= 23
%_mingw64_package_header_debug
BuildArch: noarch
%description
Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
%package devel
Summary: An extremely memory-efficient hash_map implementation
Group: Development/Libraries/C and C++
%description devel
Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
%_mingw64_debug_package
%prep
%setup -q -n LucenePlusPlus-rel_%{version}
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%build
%{_mingw64_cmake} \
-DENABLE_TEST=OFF
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files
%defattr(-,root,root)
# %doc doc/*
%{_mingw64_bindir}/liblucene++.dll
%{_mingw64_bindir}/liblucene++-contrib.dll
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/lucene++/
%{_mingw64_libdir}/liblucene++.dll.a
%{_mingw64_libdir}/liblucene++-contrib.dll.a
%changelog