File dovecot23-fts-flatcurve.spec of Package dovecot23-fts-flatcurve

#
# spec file for package dovecot23-fts-flatcurve
#
# Copyright (c) 2019 SUSE LINUX 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:           dovecot23-fts-flatcurve
Version:        0
Release:        0
%define pkg_name dovecot-fts-flatcurve
%define pkg_version 1.0.0
Summary:        Dovecot FTS Flatcurve plugin based on Xapian
License:        LGPL-2.1
Group:          Productivity/Networking/Email/Servers
Url:            https://github.com/slusarz/dovecot-fts-flatcurve/releases
Source:         %{pkg_name}-%{version}.tar.xz
BuildRequires:  dovecot23-fts
BuildRequires:  dovecot23-devel >= 2.3.17
BuildRequires:  pkgconfig(xapian-core) >= 1.4
BuildRequires:  pkgconfig(icu-i18n) >= 64
BuildRequires:  automake
BuildRequires:  autoconf
BuildRequires:  libtool
%requires_ge    dovecot23
%requires_ge    dovecot23-fts
Conflicts:      dovecot-fts-flatcurve
Provides:       dovecot-fts-flatcurve = %{version}-%{release}
Provides:       dovecot_fts_backend = %{version}-%{release}

%description
A straightforward and simple way to configure FTS Flatcurve plugin for Dovecot,
leveraging the efforts by the Xapian.org team.

%prep
%setup -q -n %{pkg_name}-%{version}

%build
autoreconf -fi
export PANDOC=false
%configure --with-dovecot=%{_libdir}/dovecot/ --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -name \*.h -delete
find %{buildroot} -name \*.la -delete

%files
%doc AUTHORS README.md
%license COPYING
%{_libdir}/dovecot/modules/doveadm/lib21_doveadm_fts_flatcurve_plugin.so
%{_libdir}/dovecot/modules/lib21_fts_flatcurve_plugin.so

%changelog
openSUSE Build Service is sponsored by