File mingw32-lucene++.spec of Package mingw32-lucene++

#
# spec file for package mingw32-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:           mingw32-lucene++
Version:        3.0.9+10
Release:        0
Summary:        C++ port of Java Lucene library
License:        LGPL-3.0-only
Group:          System/Libraries
Url:            https://github.com/luceneplusplus/LucenePlusPlus
Source:         lucene++-%{version}.tar.xz
BuildRequires:  mingw32-boost-devel
BuildRequires:  mingw32-cross-cmake
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-libbz2-devel
BuildRequires:  mingw32-libicu-devel
BuildRequires:  mingw32-lzma-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  mingw32-zstd-devel
%_mingw32_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.

%_mingw32_debug_package

%prep
%autosetup -p1 -n lucene++-%{version}

%build
%{_mingw32_cmake} \
   -DENABLE_TEST=OFF

%{_mingw32_cmake_build}

%install
%{_mingw32_cmake_install}
mv %{buildroot}%{_mingw32_libdir}/liblucene++-contrib.dll  %{buildroot}%{_mingw32_bindir}/liblucene++-contrib.dll

%files
%defattr(-,root,root)
# %doc doc/*
%{_mingw32_bindir}/liblucene++.dll
%{_mingw32_bindir}/liblucene++-contrib.dll

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/lucene++/
%{_mingw32_libdir}/liblucene++.dll.a
%{_mingw32_libdir}/liblucene++-contrib.dll.a
%{_mingw32_libdir}/cmake

%changelog
openSUSE Build Service is sponsored by