forked from pool/python-authheaders
- Bump version to fix pypi artifacts, no code changes
- Use email.utils to parse the From header addresses (Thanks to Adam Clark
for noting this issue and providing the fix) Fixes Github #5
- Correct minimum authres version requirment in setup.py
- Catch more errors. Add DKIM temperror. (Thanks to 'niftylettuce') Fixes
Github #18
- Skip DMARC records with no 'p' tag and don't raise an error (also thanks
to 'niftylettuce') Fixes Github #14
- Fix issues with upper case characters in domain (Thanks to Mark Sapiro for
root causing the issue and providing a fix for the domain name regex)
Fixes Github #13
- Include ARC result comment is A-R header field when ARC fails. Fixes
Github #12
- Handle the case where no valid From is found. Fixes Github #15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-authheaders?expand=0&rev=10
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-authheaders
|
|
#
|
|
# Copyright (c) 2022 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-authheaders
|
|
Version: 0.14.1
|
|
Release: 0
|
|
Summary: A library wrapping email authentication header verification and generation
|
|
License: MIT
|
|
URL: https://github.com/ValiMail/authentication-headers
|
|
Source: https://files.pythonhosted.org/packages/source/a/authheaders/authheaders-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-authres >= 1.0.1
|
|
Requires: python-dkimpy >= 0.7.1
|
|
Requires: python-dnspython
|
|
Requires: python-publicsuffix2
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module authres >= 1.2.0}
|
|
BuildRequires: %{python_module dkimpy >= 0.7.1}
|
|
BuildRequires: %{python_module dnspython}
|
|
BuildRequires: %{python_module publicsuffix2}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
A library wrapping email authentication header verification and generation.
|
|
|
|
%prep
|
|
%setup -q -n authheaders-%{version}
|
|
|
|
%build
|
|
export LANG=en_US.UTF-8
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc CHANGES README.md
|
|
%license COPYING
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|