diff --git a/python-md2workflow.changes b/python-md2workflow.changes index ea4d165..3a8e347 100644 --- a/python-md2workflow.changes +++ b/python-md2workflow.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 5 09:33:24 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 2 08:48:06 UTC 2025 - Markéta Machová diff --git a/python-md2workflow.spec b/python-md2workflow.spec index 05dd717..bc8fa74 100644 --- a/python-md2workflow.spec +++ b/python-md2workflow.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-md2workflow Version: 1.4.18 Release: 0 @@ -35,12 +36,12 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-redmine} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-icalendar Requires: python-md2workflow-common -Requires(post): alts -Requires(postun): alts Provides: md2workfow = %{version} BuildArch: noarch %python_subpackages @@ -95,11 +96,11 @@ cp %{_sourcedir}/LICENSE LICENSE %python_expand %fdupes %{buildroot}%{$python_sitelib} ln -s -f %{_datadir}/md2workflow/config %{buildroot}%{_sysconfdir}/md2workflow -%post -%python_install_alternative md2workflow +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative md2workflow -%postun -%python_uninstall_alternative md2workflow +# post and postun alternatives calls are not needed anymore %files %{python_files} %license LICENSE