From 240b46db5f4ac02de3c280c52066469656f1a9dc Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Mar 01 2022 00:31:20 +0000 Subject: Initial package (close RHBZ#2059247) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ecf646 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/jello-1.5.2.tar.gz diff --git a/jello.spec b/jello.spec new file mode 100644 index 0000000..de81c59 --- /dev/null +++ b/jello.spec @@ -0,0 +1,57 @@ +Name: jello +Version: 1.5.2 +Release: %autorelease +Summary: Query JSON at the command line with Python syntax + +License: MIT +URL: https://github.com/kellyjonbrazil/jello +# GitHub archive contains tests; PyPI sdist does not. +Source0: %{url}/archive/v%{version}/jello-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel + +# requirements.txt (soft dependency) +Recommends: python3dist(pygments) + +%description +Query, filter, and transform JSON and JSON Lines at the command line with +Python syntax. + + +%prep +%autosetup + + +%generate_buildrequires +%pyproject_buildrequires -r requirements.txt + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files jello + +install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 man/* + + +%check +PYTHONPATH='%{buildroot}%{python3_sitelib}' ./runtests.sh + + +%files -f %{pyproject_files} +# pyproject_files handles LICENSE; verify with “rpm -qL -p …” +%doc ADVANCED_USAGE.md +%doc CHANGELOG +%doc README.md + +%{_bindir}/jello +%{_mandir}/man1/jello.1* + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..b7d96d6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jello-1.5.2.tar.gz) = f6a6efec4ab20351543a54a9a4332d856f28b985c7bb7b61fe7535dc5d3991dc95dae84e570fe7bbc2d6e082ef43fda8679503ebaaae66b3fb6ff2211d220d59