tab could become an essential tool for command-line operations, since it allows numeric operations and things for which users would normally use Perl or Ruby one-liners OBS-URL: https://build.opensuse.org/request/show/849876 OBS-URL: https://build.opensuse.org/package/show/utilities/tab?expand=0&rev=1
60 lines
2.1 KiB
RPMSpec
60 lines
2.1 KiB
RPMSpec
# spec file for package tab
|
|
#
|
|
# Copyright (c) 2020 Fabio Pesari
|
|
#
|
|
# 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: tab
|
|
Version: 7.2
|
|
Release: 0
|
|
Summary: A modern text/number processing language for the shell
|
|
License: BSL-1.0
|
|
Group: Development/Languages/Other
|
|
URL: https://tkatchev.bitbucket.io/tab/
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: dos2unix
|
|
|
|
%description
|
|
This is a tutorial and reference for tab, a kind of programming language/shell calculator.
|
|
|
|
Why another programming language? Because tab is a special programming language unlike any other:
|
|
* It's statically-typed and type-infered.
|
|
* It also infers memory consumption and guarantees O(n) memory use.
|
|
* It is designed for concise one-liner computations right in the shell prompt.
|
|
* It features both a mathematics library and a set of data slicing and aggregation primitives.
|
|
* It is faster than all other interpreted languages with a similar scope. (Perl, Python, awk, ...)
|
|
* It is not Turing-complete. (But can compute virtually anything nonetheless.)
|
|
* It is self-contained: distributed as a single statically linked binary and nothing else.
|
|
* It has no platform dependencies.
|
|
|
|
You can think of tab as a kind of general-purpose query language for text files.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%make_build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
sed -i -E s:/usr/local:%{buildroot}%{_prefix}: Makefile
|
|
dos2unix README.md
|
|
%make_install
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
%{_bindir}/tab
|
|
|
|
%changelog |