File dovecot-ceph-plugin.spec of Package dovecot-ceph-plugin
#
# spec file for package dovecot-ceph-plugin
#
# Copyright (c) 2018 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 https://bugs.opensuse.org/
#
Name: dovecot-ceph-plugin
Version: 0.0.13
Release: 0
Summary: Ceph Plugins for Dovecot
License: LGPL-2.1-or-later
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Productivity/Networking/Email/Servers
URL: https://github.com/ceph-dovecot/dovecot-ceph-plugin
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dovecot23
BuildRequires: dovecot23-devel
BuildRequires: gcc-c++
BuildRequires: googletest-source
BuildRequires: librados2-devel >= 10.2.5
BuildRequires: libradospp-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(jansson) >= 2.9
%define lib_name librmb0
%description
A storage plugin for Dovecot, which enables the storage of emails in Ceph RADOS
objects. The focus is currently on a hybrid model where the emails are stored
in RADOS objects, while all other metadata (lists, index, cache) are stored in
a file system that is located locally on the Dovecot server or on shared CephFS
volumes. The latter allows the operation of Dovecot completely on Ceph.
As a bonus, a dictionary plugin is included, which allows the storage of
Dovecot dictionaries in Ceph OMAPs.
%package -n %{lib_name}
Group: Productivity/Networking/Email/Servers
Summary: Ceph Plugins for Dovecot - Shared Library
%description -n %{lib_name}
A storage plugin for Dovecot, which enables the storage of emails in Ceph RADOS
objects. The focus is currently on a hybrid model where the emails are stored
in RADOS objects, while all other metadata (lists, index, cache) are stored in
a file system that is located locally on the Dovecot server or on shared CephFS
volumes. The latter allows the operation of Dovecot completely on Ceph.
As a bonus, a dictionary plugin is included, which allows the storage of
Dovecot dictionaries in Ceph OMAPs.
This package holds the shared library for librmb.
%package devel
Group: Productivity/Networking/Email/Servers
Requires: %{lib_name} = %{version}
Requires: pkgconfig(jansson) >= 2.9
Requires: librados2-devel >= 10.2.5
Summary: Ceph Plugins for Dovecot - Development Files
%description devel
A storage plugin for Dovecot, which enables the storage of emails in Ceph RADOS
objects. The focus is currently on a hybrid model where the emails are stored
in RADOS objects, while all other metadata (lists, index, cache) are stored in
a file system that is located locally on the Dovecot server or on shared CephFS
volumes. The latter allows the operation of Dovecot completely on Ceph.
As a bonus, a dictionary plugin is included, which allows the storage of
Dovecot dictionaries in Ceph OMAPs.
This package holds the development files.
%prep
%setup -q
%build
cp -a %{_datadir}/googletest-source/* src/tests/googletest/
./autogen.sh
%configure
make %{?_smp_mflags} #{?_smp_mflags}
%install
%make_install
%post -n %{lib_name} -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig
%files
%{_bindir}/rmb
%dir %{_libdir}/dovecot/doveadm/
%{_libdir}/dovecot/doveadm/lib10_doveadm_rbox_plugin.la
%{_libdir}/dovecot/doveadm/lib10_doveadm_rbox_plugin.so
%{_libdir}/dovecot/libdict_rados_plugin.la
%{_libdir}/dovecot/libdict_rados_plugin.so
%{_libdir}/dovecot/libstorage_rbox_plugin.la
%{_libdir}/dovecot/libstorage_rbox_plugin.so
%{_mandir}/man1/rmb.1%{?ext_man}
%files devel
%{_includedir}/dovecot-ceph-plugin/
%{_libdir}/librmb.la
%{_libdir}/librmb.so
%files -n %{lib_name}
%{_libdir}/librmb.so.0
%{_libdir}/librmb.so.0.0.0
%changelog