File dovecot24-plugin-wormhole.spec of Package dovecot24-plugin-wormhole
#
# spec file for package dovecot24-plugin-wormhole
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%global plugin_name wormhole
Name: dovecot24-plugin-wormhole
Version: 0.7
Release: 0
Summary: Replication support for Dovecot >= 2.4 as plugin
License: LGPL-2.1
URL: https://people.mpi-klsb.mpg.de/~pcernko/wormhole.shtml
Source0: https://codeberg.org/errror/wormhole/releases/download/v%{version}/wormhole-%{version}.tar.gz
BuildRequires: dovecot24-devel
%requires_eq dovecot24
%description
This is wormhole, a project to bring back Dovecot's replication feature for
Dovecot 2.4 and later. It is mainly a fork of the Dovecot 2.3 replication code
ported to Dovecot 2.4. The forked code was removed by the Dovecot maintainers
from Dovecot starting with Version 2.4. This project aims to provide the
feature as a plugin for Dovecot 2.4 and higher.
%prep
%autosetup -p1 -n %{plugin_name}-%{version}
%build
%if %{__isa_bits} == 32
export CFLAGS="%{optflags} -Wno-error=sign-compare"
%endif
%configure --with-dovecot=%{_libdir}/dovecot/
%make_build
%install
%make_install
find %{buildroot}%{_libdir}/ -type f \
'(' -name \*.la -o -name \*.a ')' \
-print -delete
%files
%license COPYING
%doc README.md
%{_prefix}/lib/dovecot/aggregator
%{_prefix}/lib/dovecot/replicator
%{_libdir}/dovecot/modules/doveadm/lib20_doveadm_repl_plugin.so
%{_libdir}/dovecot/modules/doveadm/lib20_doveadm_replicator_plugin.so
%{_libdir}/dovecot/modules/lib20_replication_plugin.so
%{_libdir}/dovecot/modules/settings/libaggregator_settings.so
%{_libdir}/dovecot/modules/settings/libreplication_settings.so
%{_libdir}/dovecot/modules/settings/libreplicator_settings.so
%changelog