miller/miller.spec

71 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package miller
#
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 23:10:10 +02:00
# 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.
Accepting request 642014 from home:alois:branches:utilities - Update to version 5.4.0 Features: * The new clean-whitespace verb resolves #190 from @aborruso. Along with the new functions strip, lstrip, rstrip, collapse_whitespace, and clean_whitespace, there is now both coarse-grained and fine-grained control over whitespace within field names and/or values. See the linked-to documentation for examples. * The new altkv verb resolves #184 which was originally opened via an email request. This supports mapping value-lists such as a,b,c,d to alternating key-value pairs such as a=b,c=d. * The new fill-down verb resolves #189 by @aborruso. See the linked-to documentation for examples. * The uniq verb now has a uniq -a which resolves #168 from @sjackman. * The new regextract and regextract_or_else functions resolve #183 by @aborruso. * The new ssub function arises from #171 by @dohse, as a simplified way to avoid escaping characters which are special to regular-expression parsers. * There are new localtime functions in response to #170 by @sitaramc. However note that as discussed on #170 these do not undo one another in all circumstances. This is a non-issue for timezones which do not do DST. Otherwise, please use with disclaimers: localdate, localtime2sec, sec2localdate, sec2localtime, strftime_local, and strptime_local. * Travis builds at https://travis-ci.org/johnkerl/miller/builds now run on OSX as well as Linux. * An Ubuntu 17 build issue was fixed by @singalen on #164. Documentation: * put/filter documentation was confusing as reported by @NikosAlexandris on #169. * The new FAQ entry http://johnkerl.org/miller-releases/miller-head/doc/faq.html#How_ to_rectangularize_after_joins_with_unpaired? resolves #193 by @aborruso. * The new cookbook entry http://johnkerl.org/miller/doc/cookbook.html#Options_for_dealing_ with_duplicate_rows arises from #168 from @sjackman. * The unsparsify documentation had some words missing as reported by @tst2005 on #194. * There was a typo in the cookpage page http://johnkerl.org/miller/doc/cookbook.html#Full_field_renames_a nd_reassigns as fixed by @tst2005 in #192. Bugfixes: * There was a memory leak for TSV-format files only as reported by @treynr on #181. * Dollar sign in regular expressions were not being escaped properly as reported by @dohse on #171. OBS-URL: https://build.opensuse.org/request/show/642014 OBS-URL: https://build.opensuse.org/package/show/utilities/miller?expand=0&rev=13
2018-10-15 09:36:40 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: miller
Accepting request 1090954 from home:sbradnick - 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
2023-06-05 17:43:29 +02:00
Version: 6.8.0+git20230604.4050f566
Release: 0
Summary: Name-indexed data processing tool
# c/lib/netbsd_strptime.c is BSD-4-Clause
Accepting request 642014 from home:alois:branches:utilities - Update to version 5.4.0 Features: * The new clean-whitespace verb resolves #190 from @aborruso. Along with the new functions strip, lstrip, rstrip, collapse_whitespace, and clean_whitespace, there is now both coarse-grained and fine-grained control over whitespace within field names and/or values. See the linked-to documentation for examples. * The new altkv verb resolves #184 which was originally opened via an email request. This supports mapping value-lists such as a,b,c,d to alternating key-value pairs such as a=b,c=d. * The new fill-down verb resolves #189 by @aborruso. See the linked-to documentation for examples. * The uniq verb now has a uniq -a which resolves #168 from @sjackman. * The new regextract and regextract_or_else functions resolve #183 by @aborruso. * The new ssub function arises from #171 by @dohse, as a simplified way to avoid escaping characters which are special to regular-expression parsers. * There are new localtime functions in response to #170 by @sitaramc. However note that as discussed on #170 these do not undo one another in all circumstances. This is a non-issue for timezones which do not do DST. Otherwise, please use with disclaimers: localdate, localtime2sec, sec2localdate, sec2localtime, strftime_local, and strptime_local. * Travis builds at https://travis-ci.org/johnkerl/miller/builds now run on OSX as well as Linux. * An Ubuntu 17 build issue was fixed by @singalen on #164. Documentation: * put/filter documentation was confusing as reported by @NikosAlexandris on #169. * The new FAQ entry http://johnkerl.org/miller-releases/miller-head/doc/faq.html#How_ to_rectangularize_after_joins_with_unpaired? resolves #193 by @aborruso. * The new cookbook entry http://johnkerl.org/miller/doc/cookbook.html#Options_for_dealing_ with_duplicate_rows arises from #168 from @sjackman. * The unsparsify documentation had some words missing as reported by @tst2005 on #194. * There was a typo in the cookpage page http://johnkerl.org/miller/doc/cookbook.html#Full_field_renames_a nd_reassigns as fixed by @tst2005 in #192. Bugfixes: * There was a memory leak for TSV-format files only as reported by @treynr on #181. * Dollar sign in regular expressions were not being escaped properly as reported by @dohse on #171. OBS-URL: https://build.opensuse.org/request/show/642014 OBS-URL: https://build.opensuse.org/package/show/utilities/miller?expand=0&rev=13
2018-10-15 09:36:40 +02:00
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