SHA256
1
0
forked from pool/jc
jc/jc.spec
Ondřej Súkup 990fdbe5b0 Accepting request 826543 from home:mnhauke
- Update to version 1.13.4
  * Update crontab and crontab-u parsers to tighten up variable
    detection
  * Update ping parser to tighten linux/bsd detection
- Update to version 1.13.3
  * Update ping parser for Raspberry Pi compatibility
- Update to versino 1.13.2
  * Add key/value file parser (wrapper for ini parser)
  * Add date command parser
  * Update traceroute parser to more gracefully handle missing
    header row
  * Update traceroute parser to handle annotations
  * Update traceroute parser to only return successful probes
- Update to versino 1.13.1
  * Add route -6 tests
- Update to version 1.13.0
  * Add ping and ping6 command parser tested on linux
  * Add traceroute and traceroute6 command parser tested on linux
  * Add tracepath command parser tested on linux
  * Update ini parser to support files only containing key/value
    pairs
  * Update uname parser exception with a hint to use "uname -a"
  * Update route parser to support IPv6 tables
- Update to version 1.12.1
  * Fix tests when using older version of pygments library
- Update to version 1.12.0
  * Add sysctl command parser tested on linux
  * Update the cli code to allow older versions of the pygments
    library (2.3.0) for debian packaging
  * Code cleanup on the cli

OBS-URL: https://build.opensuse.org/request/show/826543
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=5
2020-08-20 13:26:34 +00:00

69 lines
1.9 KiB
RPMSpec

#
# spec file for package jc
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020, 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.13.4
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-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
%fdupes %{buildroot}%{python3_sitelib}
%check
python3 -m pytest -v
%files
%license LICENSE.md
%doc CHANGELOG README.md
%{_bindir}/jc
%{python3_sitelib}/jc*
%changelog