- update to 5.4.0:

- Option to continuously display result while editing
    expression
  - Option to specify number of displayed significant digits,
    instead of using precision
  - New functions: tripleProduct(), multilimit()
  - Improve decision to automatically convert unchanged quantity
    with unit
  - Improve ability to abort matrix functions
  - Add plot() function example, and support expression in y=f(x)
    format
  - Place "approx." on same line as value (instead of as equals
    sign) in qalc
  - Display "aborted" for long aborted result in qalc
  - Updated French translation
  - Fix case conversion of µ to M and similar
  - Fix segfault with very large integer raised by very large
    integer
  - Fix wrong output of converted unit with non-numerical
    exponent in some cases (e.g. ft^x converted to m without
    expansion)
  - Fix "sqrt(x-1/x)+sqrt(1-1/x)-x=0" when approximation is not
    exact
  - Fix clear using Ctrl+L when input line is not empty
  - Minor bug fixes and feature enhancements
- update to 5.3.0:
  - Fix memory leaks
  - Fix segfault with recursive (self-referencing) function
  - Fix input of negative exponent in scientific e notation with
    RPN syntax
  - Fix parsing of 1°2'3" as 1°+2'+3"
  - Fix definite integral for 1/sqrt(1-x^2), with limits
    higher/lower than or equal to -1 and 1
  - Fix crash with empty vector in plot function, e.g. plot([])
  - Fix "did you mean..." warning for two implicitly
    multiplicated functions without space between (e.g.
    "atan2(a,b)atan2(c,d)")
  - Fix inability to abort randpoisson() with very high rate
    value
  - Fix Calculator::reset()
  - Improve handling of "where" expressions with inequalities
  - Place n and C last in variable isolation priority order
  - Remove unnecessary calculation for output of integers
    with non-decimal number base (fixes delay with very high
    precision)
  - Add nmi symbol for nautical mile
  - Add free_thread_caches() function
  - Add Calculator::parseToExpression()
  - Disable load() and export() functions when --disable-insecure
    compile option is enabled
  - Fix saving of percentage interpretation in qalc
  - Fix save definitions option in qalc
  - Fix interpretation of mH₂O, and related units with Unicode
    subscript in qalc
  - Fix line break for output from command line expression or
    file, before interactive mode
  - Avoid asking questions when reading commands/expressions from
    file before interactive mode
  - "unkeep" command (reverse of "keep")
  - Support abbreviations for scientific (sci) and engineering
    (eng) as options for scientific notation (exp)
  - Show error for unrecognized command line options when
    expression is separated from options by "--"
  - Do not show single input decimal number as fraction by
    default if small or large enough to be displayed using
    scientific notation
  - Minor bug fixes and feature enhancements

OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=26
This commit is contained in:
Atri Bhattacharya 2024-12-18 05:25:03 +00:00 committed by Git OBS Bridge
commit 56d2f7bc55
7 changed files with 1343 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6130ed28f7fb8688bccede4f3749b7f75e4a000b8080840794969d21d1c1bf0f
size 2639589

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20be13a39aea7f0371af789539cb285892f2e15d8240f29f9f380984e3446830
size 2694752

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1fe956877ff1bbb1f4b470c41cdf3d971cebbeda6a35e92282f0eea5193ac343
size 2720059

1183
qalculate.changes Normal file

File diff suppressed because it is too large Load Diff

127
qalculate.spec Normal file
View File

@ -0,0 +1,127 @@
#
# spec file for package qalculate
#
# Copyright (c) 2022 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/
#
%define major 23
%define libname libqalculate
Name: qalculate
Version: 5.4.0
Release: 0
Summary: Multi-purpose desktop calculator application
License: GPL-2.0-or-later
Group: Productivity/Scientific/Math
URL: https://qalculate.github.io/
Source: https://github.com/Qalculate/libqalculate/releases/download/v%{version}/%{libname}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: gmp-devel
BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: libnghttp2-devel
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(mpfr)
Requires: %{name}-data >= %{version}
%description
Qalculate is a multi-purpose desktop calculator. Features include
customizable functions, units, arbitrary precision, plotting, and a
graphical interface that uses a one-line fault-tolerant expression
entry (although it supports optional traditional buttons).
This is the commandline interface, named qalc.
%package -n %{libname}%{major}
Summary: Calulator Library
Group: System/Libraries
Recommends: %{name}-data >= %{version}
Provides: %{libname} = %{version}
%description -n %{libname}%{major}
Qalculate is a multi-purpose desktop calculator. Features include
customizable functions, units, arbitrary precision, plotting, and a
graphical interface that uses a one-line fault-tolerant expression
entry.
This is the shared library package.
%package data
Summary: Additional data for the qalculator calulator library
Group: Productivity/Scientific/Math
Requires: %{libname} = %{version}
# Files were split out into -data with 2.6.2
Conflicts: %{name} < 2.6.2
Provides: %{name}:%{_datadir}/%{name}/units.xml
BuildArch: noarch
%description data
Qalculate is a multi-purpose desktop calculator. Features include
customizable functions, units, arbitrary precision, plotting, and a
graphical interface that uses a one-line fault-tolerant expression
entry.
This provides definitions of additional units, functions, etc. on top
of the built-in ones.
%package -n %{libname}-devel
Summary: Header files, libraries and development documentation for %{libname}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: gmp-devel
Requires: pkgconfig(libxml-2.0)
Requires: pkgconfig(mpfr)
%description -n %{libname}-devel
This package contains the header files and development
documentation for %{libname}. If you like to develop programs using %{libname},
you will need to install %{libname}-devel.
%prep
%setup -q -n %{libname}-%{version}
%build
%configure --disable-static
%make_build
%install
%make_install
%find_lang libqalculate
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{libname}%{major} -p /sbin/ldconfig
%postun -n %{libname}%{major} -p /sbin/ldconfig
%files -f libqalculate.lang
%license COPYING
%doc README ChangeLog INSTALL AUTHORS TODO
%{_bindir}/qalc
%{_mandir}/man1/qalc.1%{?ext_man}
%files -n %{name}-data
%{_datadir}/%{name}
%files -n %{libname}%{major}
%license COPYING
%{_libdir}/%{libname}.so.%{major}
%{_libdir}/%{libname}.so.%{major}.*
%files -n %{libname}-devel
%license COPYING
%{_includedir}/%{libname}
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/%{libname}.pc
%changelog