15
0
Files
python-checkdmarc/python-checkdmarc.spec
Matej Cepl 40fda6a8de - Update to version 5.10.6
* Fix BIMI certificate validation error generation.
  * Add support for the avp bimi tag.
- Update to version 5.10.5
  * Switch from DNS over UDP to DNS over TCP for DNSSEC and TLSA
    queries.
- Update to version 5.9.3
  * Clarify warnings for DMARC p=none and sp=none.
  * Use a different warning if DMARC pct is set to 0.
  * Add location to the JSON output for BIMI.
- Update to version 5.9.1
  * Fix BIMI record parsing error introduced in 5.9.0.
- Update to version 5.9.0
  Bug fixes:
  * Remove zero-width characters from domain inputs.
  * Add a warning when the DMARC record p or sp value is none.
  * Evaluate DMARC when checking BIMI.
  * Do lot show a BIMI certificate warning when the l tag is set
    to "".
  * Include warnings if a domain is using BIMI, but does not have
    an enforced DMARC policy.
  New features:
  * Parsed SPF record details are now provided even if it uses
    too many DNS lookups.
  API changes:
  * Require keyword arguments to be passed as keyword=value pairs
    instead of positional arguments.
  * Add the option ignore_too_many_lookups to
    checkdmarc.spf.parse_spf_record()
    + This option will stop checkdmarc.spf.parse_spf_record() from

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-checkdmarc?expand=0&rev=19
2025-09-12 21:39:25 +00:00

90 lines
3.0 KiB
RPMSpec

#
# spec file for package python-checkdmarc
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2021-2025, Martin Hauke <mardnh@gmx.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/
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-checkdmarc
Version: 5.10.6
Release: 0
Summary: A Python module and command line parser for SPF and DMARC records
License: Apache-2.0
URL: https://domainaware.github.io/checkdmarc
Source: https://github.com/domainaware/checkdmarc/archive/refs/tags/%{version}.tar.gz#/checkdmarc-%{version}.tar.gz
Patch0: skip-network-tests.patch
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module importlib_resources >= 6.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-cryptography
Requires: python-dnspython >= 2.0.0
Requires: python-expiringdict >= 1.1.4
Requires: python-pem >= 23.1.0
Requires: python-publicsuffixlist
Requires: python-pyOpenSSL >= 24.2.1
Requires: python-pyleri >= 1.3.2
Requires: python-requests >= 2.25.0
Requires: python-timeout-decorator >= 0.4.1
Requires: python-xmltodict
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module dnspython >= 2.0.0}
BuildRequires: %{python_module expiringdict >= 1.1.4}
BuildRequires: %{python_module pem >= 23.1.0}
BuildRequires: %{python_module publicsuffixlist}
BuildRequires: %{python_module pyOpenSSL >= 24.2.1}
BuildRequires: %{python_module pyleri >= 1.3.2}
BuildRequires: %{python_module requests >= 2.25.0}
BuildRequires: %{python_module timeout-decorator >= 0.4.1}
BuildRequires: %{python_module xmltodict}
# /SECTION
%python_subpackages
%description
A Python module and command line parser for SPF and DMARC records.
%prep
%autosetup -p1 -n checkdmarc-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/checkdmarc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%pre
%python_libalternatives_reset_alternative checkdmarc
%check
%pyunittest -v tests.py
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/checkdmarc
%{python_sitelib}/checkdmarc
%{python_sitelib}/checkdmarc-*.dist-info
%changelog