File dovecot-imaptest.spec of Package dovecot-imaptest
#
# spec file for package dovecot-imaptest
#
# Copyright (c) 2016 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: dovecot-imaptest
Version: 0.0~git1568112081.074d3e3
Release: 0
%define _shortname imaptest
License: MIT
Summary: IMAP server tester
Url: https://github.com/dovecot/imaptest
Group: Productivity/Networking/Email/Servers
Source: %{_shortname}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: dovecot23-devel
BuildRequires: pkgconfig(openssl)
%description
ImapTest is a generic IMAP server compliancy tester that works with all IMAP servers. It supports:
- Stress testing with state tracking. ImapTest sends random commands to the
server and verifies that server's output looks correct.
- Scripted testing where it runs a list of predefined scripted tests and
verifies that server returns expected output.
- Benchmarking
%prep
%setup -q -n %{_shortname}-%{version}
%build
export LD_RUN_PATH="%{_libdir}/dovecot"
autoreconf -fi
%configure \
--with-dovecot=%{_libdir}/dovecot/
%make_build
%install
%make_install
# Copy test files for shipping
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{_shortname}/
cp -pr src/tests/ $RPM_BUILD_ROOT%{_datadir}/%{_shortname}/
%files
%defattr(-,root,root)
%doc *conf AUTHORS
%license COPYING*
%{_bindir}/%{_shortname}
%{_datadir}/%{_shortname}