Accepting request 774737 from home:mnhauke
Initial package for jc OBS-URL: https://build.opensuse.org/request/show/774737 OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
jc-1.7.3.tar.gz
Normal file
3
jc-1.7.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:997df32d650f4c82a6d89d21e7aea5599fa229304ee7918e0d6113e533826155
|
||||
size 846382
|
4
jc.changes
Normal file
4
jc.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 16 20:24:09 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Initial package, version 1.7.3
|
66
jc.spec
Normal file
66
jc.spec
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# spec file for jc
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
|
||||
|
||||
Name: jc
|
||||
Version: 1.7.3
|
||||
Release: 0
|
||||
Summary: JSON CLI output utility
|
||||
License: MIT
|
||||
Group: Productivity/Text/Utilities
|
||||
URL: https://github.com/kellyjonbrazil/jc
|
||||
Source: https://files.pythonhosted.org/packages/source/j/jc/jc-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-setuptools
|
||||
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-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
|
||||
chmod -x README.md
|
||||
sed -i -e '/^#!\//, 1d' jc/cli.py
|
||||
|
||||
%build
|
||||
%python3_build
|
||||
|
||||
%install
|
||||
%python3_install
|
||||
rm -rf %{buildroot}/%{python3_sitelib}/tests
|
||||
%fdupes %{buildroot}%{python3_sitelib}
|
||||
|
||||
%check
|
||||
python3 -m pytest -v
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_bindir}/jc
|
||||
%{python3_sitelib}/jc*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user