forked from pool/python-yq
Accepting request 891039 from home:susnux:branches:devel:languages:python
Update to 2.12.0 OBS-URL: https://build.opensuse.org/request/show/891039 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yq?expand=0&rev=15
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-yq
|
||||
#
|
||||
# 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
|
||||
@@ -17,13 +17,16 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-yq
|
||||
Version: 2.10.1
|
||||
Version: 2.12.0
|
||||
Release: 0
|
||||
Summary: Command-line YAML processor - jq wrapper for YAML documents
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/kislyuk/yq
|
||||
Source: https://files.pythonhosted.org/packages/source/y/yq/yq-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM skip-broken-test.py -- https://github.com/kislyuk/yq/issues/114
|
||||
Patch0: skip-broken-test.py
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -31,7 +34,7 @@ Requires: jq
|
||||
Requires: python-PyYAML >= 3.11
|
||||
Requires: python-argcomplete >= 1.8.1
|
||||
Requires: python-setuptools
|
||||
Requires: python-toml >= 0.9.4
|
||||
Requires: python-toml >= 0.10.0
|
||||
Requires: python-xmltodict >= 0.11.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
@@ -39,7 +42,7 @@ BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyYAML >= 3.11}
|
||||
BuildRequires: %{python_module argcomplete >= 1.8.1}
|
||||
BuildRequires: %{python_module toml >= 0.9.4}
|
||||
BuildRequires: %{python_module toml >= 0.10.0}
|
||||
BuildRequires: %{python_module xmltodict >= 0.11.0}
|
||||
BuildRequires: jq
|
||||
# /SECTION
|
||||
@@ -49,7 +52,7 @@ BuildRequires: jq
|
||||
yq: Command-line YAML processor - jq wrapper for YAML documents
|
||||
|
||||
%prep
|
||||
%setup -q -n yq-%{version}
|
||||
%autosetup -p1 -n yq-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -58,15 +61,18 @@ yq: Command-line YAML processor - jq wrapper for YAML documents
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/yq
|
||||
%python_clone -a %{buildroot}%{_bindir}/xq
|
||||
%python_clone -a %{buildroot}%{_bindir}/tomlq
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative yq
|
||||
%python_install_alternative xq
|
||||
%python_install_alternative tomlq
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative yq
|
||||
%python_uninstall_alternative xq
|
||||
%python_uninstall_alternative tomlq
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
@@ -77,6 +83,7 @@ export LANG=en_US.UTF-8
|
||||
%doc README.rst
|
||||
%python_alternative %{_bindir}/yq
|
||||
%python_alternative %{_bindir}/xq
|
||||
%python_alternative %{_bindir}/tomlq
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user