- Update to version 1.25.2 * Add apt-cache-show command parser. * Add apt-get-sqq command parser. * Add ethtool command parser. * Add needrestart command parser. * Enhance df parser to add human readable output support. * Enhance free parser to add human readable output support. * Enhance iptables parser to handle -x output. * Enhance /proc/pid/stat parser to support "Idle" state. * Enhance rpm_qi and pkg_index_deb parsers to split list fields into arrays. * Fix iwconfig parser to handle more special characters in the SSID name. * Fix xrandr parser to ignore extra horizontal and vertical stats lines. - Update to version 1.25.1 * Fix for crash when optional libraries are not installed. * Fix for ini parser crashing with some keys with no values. * Fix xrandr parser to extract more EDID data. * Enhance uptime parser to support output with no user information * Enhance --quiet CLI option to cover more warning messages. * Add tests for missing optional libraries. - Update to version 1.25.0 * Add --slurp functionality to wrap output from multiple lines into a single array. * Streaming parsers are not supported. Use jc -hhh to find parsers compatible with the slurp option. * Enhance /proc file magic syntax to allow slurping when multiple files are selected. * Enhance --meta-out functionality to include a list of the input OBS-URL: https://build.opensuse.org/request/show/1161103 OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=31
77 lines
2.4 KiB
RPMSpec
77 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package jc
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2020-2024, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: jc
|
|
Version: 1.25.2
|
|
Release: 0
|
|
Summary: JSON CLI output utility
|
|
License: MIT
|
|
Group: Productivity/Text/Utilities
|
|
URL: https://github.com/kellyjonbrazil/jc
|
|
Source: https://github.com/kellyjonbrazil/jc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-setuptools
|
|
Requires: python3-Pygments >= 2.3.0
|
|
Requires: python3-ifconfig-parser >= 0.0.5
|
|
Requires: python3-ruamel.yaml >= 0.15.0
|
|
Requires: python3-xmltodict >= 0.12.0
|
|
Recommends: jq
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: python3-Faker
|
|
BuildRequires: python3-Pygments >= 2.3.0
|
|
BuildRequires: python3-ifconfig-parser >= 0.0.5
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-ruamel.yaml >= 0.15.0
|
|
BuildRequires: python3-xmltodict >= 0.12.0
|
|
# /SECTION
|
|
|
|
%description
|
|
jc is used to JSONify the output of many standard linux cli tools
|
|
and file types for easier parsing in scripts.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%python3_build
|
|
|
|
%install
|
|
%python3_install
|
|
install -Dpm 0644 man/jc.1 %{buildroot}/%{_mandir}/man1/jc.1
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
%check
|
|
# checks disabled for now since checks need to be run with specific timezone settings.
|
|
# For some reason this does not correctly work in the OBS chroot.
|
|
# * https://github.com/kellyjonbrazil/jc/issues/126
|
|
# * https://github.com/kellyjonbrazil/jc/issues/148
|
|
#export TZ="America/Los_Angeles"
|
|
#python3 -m pytest -v
|
|
|
|
%files
|
|
%license LICENSE.md
|
|
%doc CHANGELOG README.md
|
|
%{_bindir}/jc
|
|
%{_mandir}/man1/jc.1%{?ext_man}
|
|
%{python3_sitelib}/jc*
|
|
|
|
%changelog
|