- update to version 2.7.1, no changelog provided - Fix build and clean up spec file OBS-URL: https://build.opensuse.org/request/show/1224629 OBS-URL: https://build.opensuse.org/package/show/science/ised?expand=0&rev=4
73 lines
2.2 KiB
RPMSpec
73 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package ised
|
|
#
|
|
# Copyright (c) 2024 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: ised
|
|
Version: 2.7.1
|
|
Release: 0
|
|
Summary: Command-Line Tool for Number Sequences and Arithmetic Evaluation
|
|
Source: https://prdownloads.sourceforge.net/ised/ised-%{version}.tar.bz2
|
|
Patch1: ised-fix_missing_return_in_nonvoid_functions.patch
|
|
URL: https://ised.sourceforge.net/
|
|
Group: Productivity/Scientific/Math
|
|
License: GPL-3.0
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: make
|
|
BuildRequires: readline-devel
|
|
|
|
%description
|
|
ised is a command-line tool for generating number sequences and arithmetic
|
|
evaluation.
|
|
|
|
Unlike big GUI-based software (such as Mathematica, Derive, Matlab, or Octave),
|
|
ised is intended for use in shell scripting, together with the GNU core
|
|
utilities.
|
|
|
|
Its main advantage is that all functions are generalized to operate on
|
|
one-dimensional arrays. It can be used for loop indexing (much like seq),
|
|
line-by-line arithmetic processing of files, floating point math for shells
|
|
that don't support it natively, or interactive expression evaluation (i.e. as
|
|
an extended calculator).
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%configure
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
# Only install the man page for the unicode version
|
|
mv %{buildroot}%{_mandir}/man1/ised{-utf8,}.1
|
|
|
|
%find_lang "%{name}" || echo -n > "%{name}.lang"
|
|
|
|
%check
|
|
%{buildroot}%{_bindir}/ised --v
|
|
%{buildroot}%{_bindir}/ised --d , '[5 1]' | grep '5,4,3,2,1'
|
|
|
|
|
|
%files -f "%{name}.lang"
|
|
%doc AUTHORS NEWS README
|
|
%license COPYING
|
|
%{_bindir}/ised
|
|
%doc %{_mandir}/man1/ised.1%{ext_man}
|
|
|
|
%changelog
|