2017-02-28 13:08:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package miller
|
|
|
|
#
|
2023-03-29 23:10:10 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-02-28 13:08:31 +01:00
|
|
|
#
|
|
|
|
# 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/
|
2017-02-28 13:08:31 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: miller
|
2023-06-05 17:43:29 +02:00
|
|
|
Version: 6.8.0+git20230604.4050f566
|
2017-02-28 13:08:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Name-indexed data processing tool
|
2017-08-24 17:19:24 +02:00
|
|
|
# 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
|
2022-08-26 20:00:29 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2019-09-01 08:44:03 +02:00
|
|
|
URL: http://johnkerl.org/miller/doc
|
|
|
|
Source0: https://github.com/johnkerl/miller/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2022-08-26 20:00:29 +02:00
|
|
|
Source1: vendor.tar.gz
|
2022-11-30 20:01:38 +01:00
|
|
|
Patch0: buildmode-pie.diff
|
2022-08-26 20:00:29 +02:00
|
|
|
#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
|
2017-02-28 13:08:31 +01:00
|
|
|
|
|
|
|
%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
|
2022-08-26 20:00:29 +02:00
|
|
|
%setup -q -a 1
|
2022-08-26 21:03:07 +02:00
|
|
|
%if "%{_arch}" != "ppc64"
|
2022-08-26 20:00:29 +02:00
|
|
|
%patch0
|
2022-08-26 21:03:07 +02:00
|
|
|
%endif
|
2022-08-26 20:00:29 +02:00
|
|
|
# Not sure if this is still required
|
|
|
|
#%%ifarch %%ix86
|
|
|
|
#sed -e 's/-pg//' -i c/Makefile.am
|
|
|
|
#%%endif
|
2017-02-28 13:08:31 +01:00
|
|
|
|
|
|
|
%build
|
2022-08-26 20:00:29 +02:00
|
|
|
%make_build
|
2017-02-28 13:08:31 +01:00
|
|
|
|
|
|
|
%install
|
2022-08-26 20:00:29 +02:00
|
|
|
%make_install PREFIX=%{_prefix}
|
|
|
|
# Add provided example.csv
|
|
|
|
cp -v %{_builddir}/%{name}-%{version}/docs/src/example.csv %{_builddir}/%{name}-%{version}
|
2017-02-28 13:08:31 +01:00
|
|
|
|
|
|
|
%files
|
2020-08-04 09:21:33 +02:00
|
|
|
%license LICENSE.txt
|
2022-08-26 20:00:29 +02:00
|
|
|
%doc README.md example.csv
|
2017-02-28 13:08:31 +01:00
|
|
|
%{_bindir}/mlr
|
|
|
|
%{_mandir}/man1/mlr.1%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|