forked from pool/python-md2workflow
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-md2workflow?expand=0&rev=27
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 5 09:33:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 2 08:48:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user