miller/miller.spec

59 lines
1.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package miller
#
# Copyright (c) 2021 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
Version: 5.10.3
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
URL: http://johnkerl.org/miller/doc
Source0: https://github.com/johnkerl/miller/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
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
%ifarch %ix86
sed -e 's/-pg//' -i c/Makefile.am
%endif
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
%make_install
%files
%license LICENSE.txt
%doc README.md c/draft-release-notes.md
%{_bindir}/mlr
%{_mandir}/man1/mlr.1%{ext_man}
%changelog