11
0

Accepting request 1288869 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1288869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-checkdmarc?expand=0&rev=8
This commit is contained in:
2025-06-27 21:02:32 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 27 15:07:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Wed Jun 18 11:26:03 UTC 2025 - Martin Hauke <mardnh@gmx.de>

View File

@@ -17,6 +17,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-checkdmarc
Version: 5.8.6
@@ -30,8 +31,10 @@ 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
@@ -42,8 +45,6 @@ Requires: python-pyleri >= 1.3.2
Requires: python-requests >= 2.25.0
Requires: python-timeout-decorator >= 0.4.1
Requires: python-xmltodict
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module dnspython >= 2.0.0}
@@ -73,11 +74,8 @@ A Python module and command line parser for SPF and DMARC records.
%python_clone -a %{buildroot}%{_bindir}/checkdmarc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative checkdmarc
%postun
%python_uninstall_alternative checkdmarc
%pre
%python_libalternatives_reset_alternative checkdmarc
%check
%pyunittest -v tests.py