forked from pool/python-pyhcl
- Switch from python3_only to python_alternative for hcltool.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyhcl?expand=0&rev=6
This commit is contained in:
@@ -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>
|
Fri Aug 7 14:13:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyhcl
|
# 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
|
# 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
|
||||||
@@ -29,6 +29,8 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -43,14 +45,21 @@ HCL configuration parser for python
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/hcltool
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative hcltool
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative hcltool
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.md README.rst
|
%doc CHANGELOG.md README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/hcltool
|
%python_alternative %{_bindir}/hcltool
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user