2 Commits

2 changed files with 12 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 16 13:47:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 31 15:09:54 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Aug 31 15:09:54 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-dkimpy # spec file for package python-dkimpy
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,9 @@
# #
%{?sle15_python_module_pythons}
%define commands arcsign arcverify dkimsign dkimverify dknewkey %define commands arcsign arcverify dkimsign dkimverify dknewkey
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-dkimpy Name: python-dkimpy
Version: 1.1.8 Version: 1.1.8
Release: 0 Release: 0
@@ -29,15 +30,15 @@ Patch0: no-optional.patch
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: openssl BuildRequires: openssl
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-PyNaCl Requires: python-PyNaCl
Requires: python-authres Requires: python-authres
Requires: python-dnspython >= 1.16 Requires: python-dnspython >= 1.16
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PyNaCl} BuildRequires: %{python_module PyNaCl}
@@ -67,14 +68,9 @@ done
%check %check
%pytest %pytest
%post %pre
for c in %{commands}; do for c in %{commands}; do
%python_install_alternative $c $c.1 %python_libalternatives_reset_alternative $c
done
%postun
for c in %{commands}; do
%python_uninstall_alternative $c
done done
%files %{python_files} %files %{python_files}