%global debug_package %{nil} %global _debugsource_packages 0 %global _debugsource_template %{nil} Name: headson Version: 0.6.1 Release: 1%{?dist} Summary: head/tail for structured data - summarize/preview JSON files License: MIT URL: https://docs.rs/headson/latest/headson/ Source0: https://github.com/kantord/%{name}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cargo rust %description Head/tail for JSON — but structure‑aware. Get a compact preview that shows both the shape and representative values of your data, all within a strict character budget. %package python Summary: python bindings for %{name} BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(wheel) %description python Python bindings for %{name}. %prep %autosetup %generate_buildrequires %pyproject_buildrequires %build cargo build --release %pyproject_wheel %install [ '%{buildroot}' != '/' ] && rm -rf %{buildroot} install -Dp -m0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} %pyproject_install %pyproject_save_files %{name} %files %license LICENSE %doc README.md %{_bindir}/%{name} %files python -f %{pyproject_files} %changelog * Thu Oct 30 2025 Philippe Kueck - 0.6.1-1 - Initial packaging