miller/miller.spec
Scott Bradnick 447c1cdd9c Accepting request 999453 from home:sbradnick
- Adding Group definition
- Removing unnecessary 'golang' requirement which isn't present in 15.3

- Update to version v6.4.0+git20220823.cdbe8b82e:
  * Account for varying mlr locations (#1086)
  * Restore --quote-all for CSV output (#1084)
  * Restore the --jvquoteall flag (#1083)
  * forgot to make a branch/PR for --quote-all
  * make dev: for doc-build artifacts
  * unit-test case
  * Restore --quote-all flag for CSV output
  * post-6.4.0
  * 6.4.0 release (#1081)
  * codespell

OBS-URL: https://build.opensuse.org/request/show/999453
OBS-URL: https://build.opensuse.org/package/show/utilities/miller?expand=0&rev=35
2022-08-26 18:00:29 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package miller
#
# Copyright (c) 2022 SUSE LLC
#
# 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: miller
Version: 6.4.0+git20220823.cdbe8b82e
Release: 0
Summary: Name-indexed data processing tool
# c/lib/netbsd_strptime.c is BSD-4-Clause
License: BSD-2-Clause AND BSD-4-Clause
Group: Productivity/Text/Utilities
URL: http://johnkerl.org/miller/doc
Source0: https://github.com/johnkerl/miller/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Patch0: buildmode-pie.patch
#BuildRequires: golang
BuildRequires: golang-packaging
BuildRequires: gcc
BuildRequires: systemd-rpm-macros
# Switched to a golang build sometime after 5.10.3
#BuildRequires: automake
#BuildRequires: flex >= 2.5.35
#BuildRequires: libtool
%description
Miller (mlr) allows name-indexed data such as CSV and JSON files to be
processed with functions equivalent to sed, awk, cut, join, sort etc. It can
convert between formats, preserves headers when sorting or reversing, and
streams data where possible so its memory requirements stay small. It works
well with pipes and can feed "tail -f".
%prep
%setup -q -a 1
%patch0
# Not sure if this is still required
#%%ifarch %%ix86
#sed -e 's/-pg//' -i c/Makefile.am
#%%endif
%build
%make_build
%install
%make_install PREFIX=%{_prefix}
# Add provided example.csv
cp -v %{_builddir}/%{name}-%{version}/docs/src/example.csv %{_builddir}/%{name}-%{version}
%files
%license LICENSE.txt
%doc README.md example.csv
%{_bindir}/mlr
%{_mandir}/man1/mlr.1%{ext_man}
%changelog