2017-02-28 13:08:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package miller
|
|
|
|
#
|
2019-09-01 08:44:03 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
2019-09-13 08:07:22 +02:00
|
|
|
Version: 5.6.0
|
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
|
2017-02-28 13:08:31 +01:00
|
|
|
Group: Productivity/File 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
|
2018-01-07 09:48:53 +01:00
|
|
|
# PATCH-FIX-UPSTREAM miller-5.3.0-gcc43.patch
|
|
|
|
Patch0: miller-5.3.0-gcc43.patch
|
2017-02-28 13:08:31 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: flex >= 2.5.35
|
2017-04-15 09:56:24 +02:00
|
|
|
BuildRequires: libtool
|
2017-02-28 13:08:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
2018-01-07 09:48:53 +01:00
|
|
|
%patch0 -p1
|
2017-02-28 13:08:31 +01:00
|
|
|
|
|
|
|
%build
|
2017-06-14 18:11:26 +02:00
|
|
|
autoreconf -fiv
|
2017-02-28 13:08:31 +01:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-01-07 09:48:53 +01:00
|
|
|
%doc LICENSE.txt README.md c/draft-release-notes.md
|
2017-02-28 13:08:31 +01:00
|
|
|
%{_bindir}/mlr
|
|
|
|
%{_mandir}/man1/mlr.1%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|