14
0
forked from pool/python-pyhcl

Accepting request 864191 from devel:languages:python

- Switch from python3_only to python_alternative for hcltool.

OBS-URL: https://build.opensuse.org/request/show/864191
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyhcl?expand=0&rev=3
This commit is contained in:
2021-01-26 13:45:58 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 19 05:00:15 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Switch from python3_only to python_alternative for hcltool.
-------------------------------------------------------------------
Fri Aug 7 14:13:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyhcl
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -43,14 +45,21 @@ HCL configuration parser for python
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/hcltool
%check
%pytest
%post
%python_install_alternative hcltool
%postun
%python_uninstall_alternative hcltool
%files %{python_files}
%doc CHANGELOG.md README.rst
%license LICENSE
%python3_only %{_bindir}/hcltool
%python_alternative %{_bindir}/hcltool
%{python_sitelib}/*
%changelog