# # spec file for package python-checkdmarc # # Copyright (c) 2021 SUSE LLC # Copyright (c) 2021, Martin Hauke # # 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-%{**}} Name: python-checkdmarc Version: 4.4.1 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://files.pythonhosted.org/packages/source/c/checkdmarc/checkdmarc-%{version}.tar.gz Source1: https://raw.githubusercontent.com/domainaware/checkdmarc/master/LICENSE Source2: https://raw.githubusercontent.com/domainaware/checkdmarc/master/tests.py Patch0: skip-broken-tests.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-dnspython >= 2.0.0 Requires: python-expiringdict >= 1.1.4 Requires: python-publicsuffix2 >= 2.20191221 Requires: python-pyleri >= 1.3.2 Requires: python-requests >= 2.25.0 Requires: python-timeout-decorator >= 0.4.1 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module dnspython >= 2.0.0} BuildRequires: %{python_module expiringdict >= 1.1.4} BuildRequires: %{python_module publicsuffix2 >= 2.20191221} BuildRequires: %{python_module pyleri >= 1.3.2} BuildRequires: %{python_module requests >= 2.25.0} BuildRequires: %{python_module timeout-decorator >= 0.4.1} # /SECTION %python_subpackages %description A Python module and command line parser for SPF and DMARC records. %prep %setup -q -n checkdmarc-%{version} cp %{SOURCE1} %{SOURCE2} . %patch0 -p1 %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/checkdmarc %python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative checkdmarc %postun %python_uninstall_alternative checkdmarc %check %pyunittest -v tests.py %files %{python_files} %license LICENSE %doc README.rst %python_alternative %{_bindir}/checkdmarc %{python_sitelib}/* %changelog