Files
tj/tj.spec
Michael Vetter 0b4cdab518 Accepting request 1300504 from home:matz2:updategodeps
This is required to get rid of very old and unmaintained go versions
in the distro, which in turn now is required to upgrade binutils.
I've verified that the resulting program runs.

- Use current distro go default version.  As these are oldish
  sources, also use GO111MODULE=off.

OBS-URL: https://build.opensuse.org/request/show/1300504
OBS-URL: https://build.opensuse.org/package/show/utilities/tj?expand=0&rev=6
2025-09-01 13:05:09 +00:00

63 lines
1.7 KiB
RPMSpec

#
# spec file for package tj
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2018, 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: tj
Version: 7.0.0
Release: 0
Summary: Timestamp input
License: MIT
Group: System/Base
URL: https://github.com/sgreben/tj
#Git-Clone: https://github.com/sgreben/tj.git
Source: https://github.com/sgreben/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: golang-packaging
%if 0%{?suse_version} >= 1550
BuildRequires: golang(API) >= 1.13
%else
BuildRequires: golang(API) >= 1.9
%endif
%{go_provides}
%description
tj adds a timestamp to the beginning of each line of input.
It supports several time-formats and can also colorize the output.
Users could also define custom output formats via templates.
%prep
%setup -q
%build
%{goprep} github.com/sgreben/tj
GO111MODULE=off
export GO111MODULE
%{gobuild} ...
%install
GO111MODULE=off
export GO111MODULE
%{goinstall}
%{gosrc}
%{gofilelist}
%files -f file.lst
%doc README.md
%{_bindir}/tj
%changelog