File datamash.spec of Package datamash
#
# spec file for package datamash
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# 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/
#
# bypass https://bugzilla.opensuse.org/show_bug.cgi?id=1149348
%ifarch ppc64le ppc64 aarch64
%define _lto_cflags %{nil}
%endif
Name: datamash
Version: 1.9
Release: 0
Summary: Statistical, numerical and textual operations in the command line
License: GPL-3.0-or-later
Group: Productivity/Scientific/Math
URL: https://www.gnu.org/software/datamash/
Source: https://ftp.gnu.org/gnu/datamash/%{name}-%{version}.tar.gz
Source2: https://ftp.gnu.org/gnu/datamash/%{name}-%{version}.tar.gz.sig
# "Timothy Rice (Yubikey 5 Nano 13139911) <trice@posteo.net>" from https://ftp.gnu.org/gnu/gnu-keyring.gpg
Source3: datamash.keyring
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
%description
GNU datamash is a command-line program which performs basic numeric,
textual and statistical operations on input textual data files.
%prep
%autosetup -p1
%build
%configure \
--docdir=%{_docdir}/%{name} \
--with-openssl=yes \
--with-packager="%{vendor}" \
--with-packager-version="%{distribution} %{version}-%{release}" \
--with-packager-bug-reports="%{packager}" \
--with-bash-completion-dir=no
%make_build
%install
%make_install
%find_lang %{name}
%check
%make_build check
%files -f %{name}.lang
%license COPYING
%doc ChangeLog README AUTHORS THANKS
%{_bindir}/*
%{_mandir}/man1/*.1%{?ext_man}
%{_infodir}/%{name}.info%{?ext_info}
%{_datadir}/%{name}
%changelog