commit 2a0951e26a06221fa90a03d987106073d807203c4d861c1863e2f5db702313e6 Author: Michael Vetter Date: Mon Feb 17 09:33:06 2020 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jc-1.7.3.tar.gz b/jc-1.7.3.tar.gz new file mode 100644 index 0000000..5f7759d --- /dev/null +++ b/jc-1.7.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:997df32d650f4c82a6d89d21e7aea5599fa229304ee7918e0d6113e533826155 +size 846382 diff --git a/jc.changes b/jc.changes new file mode 100644 index 0000000..1bc77cb --- /dev/null +++ b/jc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Feb 16 20:24:09 UTC 2020 - Martin Hauke + +- Initial package, version 1.7.3 diff --git a/jc.spec b/jc.spec new file mode 100644 index 0000000..7f95261 --- /dev/null +++ b/jc.spec @@ -0,0 +1,66 @@ +# +# spec file for jc +# +# Copyright (c) 2020, Martin Hauke +# +# 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