Files
miller/miller.spec
Scott Bradnick 5bf3c7ba2d Accepting request 1290734 from home:sbradnick
- Update to version 6.14.0+git20250704.313731386:
  * Release-specific docs for 6.14.0
  * Update `main` version to 6.14.0-dev
  * Update release docs on xattr trick for MacOS
  * Miller 6.14.0 (#1828)
  * Doc copy edits (#1827)
  * Add `-c`, `-t`, `-j` to doc matrix in PR 1824 (#1826)
  * Add Keystroke savers for same format (#1824)
  * cut: Consider `-o` flag even when using regexes with `-r` (#1823)
  * Bump github/codeql-action from 3.29.1 to 3.29.2 (#1825)
  * Bump github/codeql-action from 3.29.0 to 3.29.1 (#1822)
  * Argument parsing is different in `mlr -s` scripts (#1817)
  * Bump github/codeql-action from 3.28.19 to 3.29.0 (#1814)
  * Bump golang.org/x/text from 0.25.0 to 0.26.0 (#1813)
  * Bump github/codeql-action from 3.28.18 to 3.28.19 (#1812)
  * Bump github/codeql-action from 3.28.17 to 3.28.18 (#1808)
  * Docs for new `surv` verb (#1807)
  * Bump golang.org/x/term from 0.29.0 to 0.32.0 (#1799)
  * Bump golang.org/x/text from 0.22.0 to 0.25.0 (#1800)
  * Bump golang.org/x/sys from 0.30.0 to 0.33.0 (#1801)
  * Add surv Verb to Estimate a Survival Curve (#1788)
  * Bump actions/setup-go from 5.4.0 to 5.5.0 (#1802)
  * Improve help message on non-existent verb (#1798)
  * Bump github/codeql-action from 3.28.16 to 3.28.17 (#1796)
  * Fix `print` within `begin{}`/`end{}` (#1795)
  * Fix `joinv` with `""` separator (#1794)
  * Bump github/codeql-action from 3.28.15 to 3.28.16 (#1790)
  * Bump github/codeql-action from 3.28.14 to 3.28.15 (#1783)
  * Bump github/codeql-action from 3.28.13 to 3.28.14 (#1779)
  * Bump goreleaser/goreleaser-action from 6.2.1 to 6.3.0 (#1778)

OBS-URL: https://build.opensuse.org/request/show/1290734
OBS-URL: https://build.opensuse.org/package/show/utilities/miller?expand=0&rev=64
2025-07-04 20:23:16 +00:00

73 lines
2.2 KiB
RPMSpec

#
# spec file for package miller
#
# Copyright (c) 2025 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: miller
Version: 6.14.0+git20250704.313731386
Release: 0
Summary: Name-indexed data processing tool
# c/lib/netbsd_strptime.c is BSD-4-Clause
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: update-VERSION.diff
Patch1: buildmode-pie.diff
### Can be swapped to a specific go version what what's required isn't default
BuildRequires: golang-packaging
#BuildRequires: go >= 1.22
#####
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
%patch -P 0
%if "%{_arch}" != "ppc64"
%patch -P 1
%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