File jp.spec of Package jp

#
# spec file for package jp
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2018-2021, 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:           jp
Version:        1.1.12
Release:        0
Summary:        JSON/CSV data plotting program for the terminal
License:        MIT
Group:          Productivity/File utilities
URL:            https://github.com/sgreben/jp
#Git-Clone:     https://github.com/sgreben/jp.git
Source:         https://github.com/sgreben/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
%if 0%{?suse_version} >= 1550
BuildRequires:  golang(API) >= 1.13
%else
BuildRequires:  golang(API) >= 1.9
%endif
BuildRequires:  fdupes
BuildRequires:  golang-packaging
Conflicts:      python2-jmespath
Conflicts:      python3-jmespath
Conflicts:      python3dist(jmespath)
%{go_provides}

%description
This program generates terminal plots from JSON (or CSV) data. Bar charts,
line charts, scatter plots, histograms and heatmaps are supported.

%prep
%setup -q

%build
GO111MODULE=off
export GO111MODULE
%{goprep} github.com/sgreben/jp
%{gobuild} ...

%install
GO111MODULE=off
export GO111MODULE
%{goinstall}
%{gosrc}
%{gofilelist}
%fdupes -s %{buildroot}

%files -f file.lst
%doc README.md
%license LICENSE
%{_bindir}/jp

%changelog
openSUSE Build Service is sponsored by