File roundcube-plugin-kolab-2fa.spec of Package roundcube-plugin-kolab-2fa
#
# spec file for package roundcube-plugin-kolab-2fa
#
# Copyright (c) 2021 SUSE LLC
#
# 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/
#
%define roundcube_plugindir /srv/www/vhosts/roundcubemail/public/plugins/
%define plugin kolab_2fa
%define user_group_name _roundcubemail
Name: roundcube-plugin-kolab-2fa
Version: 3.5.5.2+git23.797ffc6
Release: 0
Summary: Multi-Factor Authentication Plugin for Roundcube
License: GPL-3.0-or-later
URL: https://github.com/thomascube/roundcube-plugin-kolab-2fa
Source: _service
Source1: vendor.tar.xz
BuildRequires: roundcubemail
BuildRequires: rsync
%requires_ge roundcubemail
Requires: %{roundcube_php}-gd
BuildArch: noarch
%description
The plugin is designed to be a generic container for different 2nd factor
authentication mechanisms paired with different ways to store the related data
for Roundcube user accounts. Both drivers and storage backends are derived from
abstract classes which define the common interface and are configurable.
%prep
mv %{_sourcedir}/%{name}-%{version} %{_builddir}/%{name}-%{version}
%autosetup -p1 -D -T 0 -a 1
%build
%install
install -D -d -m 0755 %{buildroot}%{roundcube_plugindir}/%{plugin}/
rsync -av --chmod u=rwX,go=rX $PWD/ %{buildroot}%{roundcube_plugindir}/%{plugin}/
%files
%doc README.md
%attr(-,root,%{user_group_name}) %{roundcube_plugindir}/%{plugin}/
%changelog