miller/miller.spec
Scott Bradnick 21b4aa15fa Accepting request 1075352 from home:sbradnick
- Update to version 6.7.0+git20230328.dc14420f:
  * Bump github/codeql-action from 2.2.8 to 2.2.9 (#1250)
  * Fix issue links in README-dev.md (#1248)
  * `index` DSL function [WIP] (#1247)
  * Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18 (#1243)
  * Bump golang.org/x/term from 0.0.0-20210927222741-03fcf44c2211 to 0.6.0 (#1222)
  * Bump minimum compiler version from Go 1.15 to 1.18 (#1246)
  * Bump actions/checkout from 3.4.0 to 3.5.0 (#1245)
  * Add optional second base argument to `int` DSL function (#1244)
  * Bump github/codeql-action from 2.2.7 to 2.2.8 (#1242)
  * Bump actions/checkout from 3.3.0 to 3.4.0 (#1234)
  * Bump actions/setup-go from 3.5.0 to 4.0.0 (#1233)
  * Bump github/codeql-action from 2.2.6 to 2.2.7 (#1232)
  * Bump actions/cache from 3.2.6 to 3.3.1 (#1229)
  * Bump github/codeql-action from 2.2.5 to 2.2.6 (#1230)
  * Add `mlr step -a rprod` for running products (#1228)
  * Label head docs as "Miller Dev Documentation"
  * doc note for #1218
  * Run go mod tidy (#1220)
  * Include tools in the release tarball (#1221)
  * Add new `upcase` and `downcase` verbs (#1217)
  * Docs re `tail -f` and `--records-per-batch 1` (#1218)
  * typofix
  * Fix bug on DSL comment with no final newline (#1216)
  * release docs
  * build artifacts
  * miller 6.7.0-dev
  * miller 6.7.0
  * Support more backslashed special characters in DSL strings (#1212)
  * unit-test files

OBS-URL: https://build.opensuse.org/request/show/1075352
OBS-URL: https://build.opensuse.org/package/show/utilities/miller?expand=0&rev=45
2023-03-29 21:10:10 +00:00

71 lines
2.2 KiB
RPMSpec

#
# spec file for package miller
#
# Copyright (c) 2023 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.7.0+git20230328.dc14420f
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.diff
#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
%if "%{_arch}" != "ppc64"
%patch0
%endif
# 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