File roundcubemail-plugin-authres_status.spec of Package roundcubemail-plugin-authres_status
#
# spec file for package roundcubemail-plugin-authres_status
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2007 Dirk Stoecker <opensuse@dstoecker.de>.
#
# 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 plugin_name authres_status
%define filename authres_status
%define instdir /srv/www/roundcubemail/plugins/
Name: roundcubemail-plugin-%{plugin_name}
Version: 0.6.3
Release: 0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc
BuildRequires: make
BuildRequires: unzip
URL: https://github.com/pimlie/authres_status
Summary: Roundcube plugin to check Authentication-Results headers
License: MIT
Group: Productivity/Networking/Email/Clients
Source: https://github.com/pimlie/authres_status/archive/refs/tags/0.6.3.tar.gz#/%{filename}-%{version}.tar.gz
Source2: https://github.com/pimlie/php-dkim/archive/refs/tags/v0.2.2.tar.gz#/php-dkim-0.2.2.tar.gz
# PATCH-FIX-UPSTREAM add newest changes of Git
Patch1: git_2025_03-10.diff
# PATCH-FIX-OPENSUSE support PHP7
Patch2: php7.diff
# PATCH-FIX-OPENSUSE inline DKIM class
Patch3: dkiminline.diff
# PATCH-FIX-UPSTREAM fix German translation
Patch4: german.diff
# PATCH-FIX-UPSTREAM fix larry skin
Patch5: larry.diff
# PATCH-FIX-OPENSUSE prevent memory outage for large mails when calling internal verifier
Patch6: skip_internal_large_mails.diff
# PATCH-FIX-UPSTREAM reduce memory footprint of external verifier (see also Patch6)
Patch50: memory_footprint_dkim.diff
# PATCH-FIX-WARNING remove warning
Patch51: php-dkim-0.2.2_warning.diff
# only for directories
# Force php7 usage for Leap
%if 0%{?sle_version} == 150600 || 0%{?sle_version} == 150500
BuildRequires: php7
%endif
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: roundcubemail
Requires: roundcubemail
%description
This plugin checks the Authentication-Results headers that were added by your
MTA and displays an icon to show the verification status. Parsing of the
Authentication-Results headers is more or less done according to RFC5451
which supports DKIM, DomainKeys, SPF, Sender-ID, iprev and SMTP AUTH result
values.
%prep
%autosetup -n %{filename}-%{version} -N
tar -xf %{SOURCE2}
%patch -p1 -P1
%patch -p1 -P2
%patch -p1 -P3
%patch -p1 -P4
%patch -p1 -P5
%patch -p1 -P6
%patch -p1 -P50
%patch -p1 -P51
%build
%check
%install
mkdir -p %{buildroot}%{instdir}/%{plugin_name}
chmod 644 localization/* *.js *.php skins/*/*.css LICENSE README.md
dos2unix README.md
cp -pr skins localization images *.php *.js config.inc.php.dist %{buildroot}%{instdir}/%{plugin_name}
mkdir -p %{buildroot}%{instdir}/%{plugin_name}/DKIM
cp php-dkim-*/DKIM.php %{buildroot}%{instdir}/%{plugin_name}
chmod 644 php-dkim-*/DKIM/Verify.php
cp php-dkim-*/DKIM/Verify.php %{buildroot}%{instdir}/%{plugin_name}/DKIM/
%fdupes -s %{buildroot}%{instdir}/%{plugin_name}
%files
%license LICENSE
%doc README.md
%{instdir}/%{plugin_name}
%changelog