forked from pool/miller
Scott Bradnick
1ed078483b
- Update to version 6.8.0+git20230604.4050f566: * fix mis-spelling for head docs * Update readthedocs notes in the how-to-release page (#1308) * release 6.8.0 docs * post-6.8.0 * Update go version in .github/workflows/release.yml * go mod tidy * miller 6.8.0 * Unify the `case` verb, and add options (#1306) * Values-only `-a` option for `mlr grep` (#1305) * Bump github/codeql-action from 2.3.5 to 2.3.6 (#1303) * Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#1301) * Bump github/codeql-action from 2.3.4 to 2.3.5 (#1300) * Bump github/codeql-action from 2.3.3 to 2.3.4 (#1299) * Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 (#1296) * Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#1295) * Bump actions/setup-go from 4.0.0 to 4.0.1 (#1294) * Let `mlr help` take pre-flags, such as `--always-color` (#1292) * New `mlr json-parse -k` flag (#1291) * Bump golang.org/x/term from 0.7.0 to 0.8.0 (#1285) * Bump github/codeql-action from 2.3.2 to 2.3.3 (#1284) - Update to version 6.7.0+git20230501.6c86ef19: * Bump codespell-project/actions-codespell (#1282) * Bump github/codeql-action from 2.3.1 to 2.3.2 (#1279) * Bump github/codeql-action from 2.3.0 to 2.3.1 (#1277) * Bump github/codeql-action from 2.2.12 to 2.3.0 (#1274) * Implement `--csv-trim-leading-space` flag (#1272) * Fix precedence of coalesce operators `??` and `???` (#1270) * Treaet data-file numbers with leading + as numeric (#1269) OBS-URL: https://build.opensuse.org/request/show/1090954 OBS-URL: https://build.opensuse.org/package/show/utilities/miller?expand=0&rev=47
71 lines
2.2 KiB
RPMSpec
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.8.0+git20230604.4050f566
|
|
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
|