2017-02-28 13:08:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package miller
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: miller
|
2017-07-20 11:40:51 +02:00
|
|
|
Version: 5.2.2
|
2017-02-28 13:08:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Name-indexed data processing tool
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
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
|
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
|
|
|
|
|
|
|
|
%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)
|
|
|
|
%doc LICENSE.txt README.md
|
|
|
|
%{_bindir}/mlr
|
|
|
|
%{_mandir}/man1/mlr.1%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|