2010-09-24 01:08:06 +02:00
|
|
|
#
|
2011-09-01 14:54:52 +02:00
|
|
|
# spec file for package qalculate
|
2010-09-24 01:08:06 +02:00
|
|
|
#
|
2021-01-10 11:06:36 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2010-09-24 01:08:06 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-06 15:37:57 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-09-24 01:08:06 +02:00
|
|
|
#
|
|
|
|
|
2012-11-28 16:33:17 +01:00
|
|
|
|
Accepting request 909169 from home:polslinux:branches:science
- Update to 3.20.1:
* Save answer to dot and temperature questions in non-interactive
mode and do not show the questions in non-interactive terse mode
* Fix saving of sub functions with default values
* Add support for function creation in save() function and with
associated operator (e.g. func1():=x*y^2)
* Add operators (.', .*, ./, .^) and functions (replace multiply(),
divide(), and pow()) for transpose and element-wise multiplication,
division, and power
* Fix norm() and magnitude(), and add second argument, p,
to norm() function
* New text operators: dot, cross, comb, and perm
* Add support for ^^ as XOR operator
* Fixes and improvements in multisolve() function
* Always return exact result in base() function, in exact mode
* Improve parsing of functions without parentheses
* Do not try to load data objects from global definitions dir
if data set is local
* Interpret "±" at end of expression as "±0"
* Convert Celsius to Fahrenheit if no calculation was performed
* Add support for QALCULATE_USER_DIR environment variable and always
check for "user" directory on Windows
* Output both original and factorized integer, and output abs(x) as |x|
* Improved HTML output of mathematical expressions in libqalculate
* Minor bug fixes and feature improvements
OBS-URL: https://build.opensuse.org/request/show/909169
OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=12
2021-08-01 16:50:44 +02:00
|
|
|
%define major 22
|
2017-12-23 12:18:50 +01:00
|
|
|
%define libname libqalculate
|
2017-01-19 10:36:12 +01:00
|
|
|
Name: qalculate
|
Accepting request 979800 from home:mcepl:branches:science
- Update to 4.2.0:
- Option to plot real and imaginary parts separately (enabled
by default)
- Variable spacing of x values in plot (unless step size is used)
- Updated plot() function with arguments for specification of
plot options (in any order after the third argument)
- Polar plot style
- Ask the user for the desired sinc() variant (unnormalized or
normalized)
- Support for binary-coded decimals (BCD)
- Show names with underscore capitalized and with underscore
removed (with some exceptions)
- Additional information units
- Units for volumetric flow rate
- Tradtional numbers (e.g. dozen, score)
- Show warning when log() is used with a single argument, and
always show second argument of log()
- Show single digit suffixes using Unicode subscript (CLI)
- Make names with a single character followed by digits
case-sensitive with suffix by default
- Accept more than two arguments in gcd() and lcm()
- Interpret a single vector argument as a list of arguments if
function requires more than one argument
- Fix limit of floor(), ceil(), and trunc()
- Fix plotting of derivatives and integrals
- Fix randpoisson()
- Fix reactivation of object, after object that caused
deactivation is removed
- Update to 4.1.1:
- Restrict use of reciprocal in unit conversion, e.g. invert in
"5m/s to s/m" (= 0.2 s/m) but not in "500/lb to g" (= 1.1/g)
- New mHg unit (allows use with prefixes other than milli)
- Always display abbreviated unit name (symbol) with
abbreviated prefix (when unit only has short name)
- Minor improvements to automatic unit conversion
- Fix display of (1 + f(x))/n
- Save definitions on exit (only) if definitions has changed
regardless of interactive mode status (qalc)
- Update to 4.1:
- Use non-breaking narrow space as digit separator in
reasonably short numbers, and between quantity and unit
- Update value of austronomical unit
- Fix segfault (when compiled with -D_GLIBCXX_ASSERTIONS) with
local digit grouping when separator is empty (e.g. with
ignore locale)
- Fix freezes and crashes with extrememly large vectors and
matrices
- Fix segfault (when compiled with -D_GLIBCXX_ASSERTIONS) in
matrix multiplication
- Minor bug fixes and feature improvements (see the ChangeLog
for more details)
- Update to 4.0:
- New matrix syntax (column separated by space or comma, rows
separated by semicolon, as in matlab)
- Do not make any difference between a vector and a matrix with
a single row, or between a scalar and matrix with a single
element
- Support input of functions, units, and variables with
underscores omitted in names (e.g. µ0 = µ_0, FermiCoupling
= fermi_coupling), with some exceptions
- Option to disable "simplified" percentage calculations (e.g.
interpret 100 + 20% as 100 + 0.2 instead of 100 × 120%)
- Option to truncate numbers (instead of round to nearest) in
result
- Convert K, Hz, and 1/m to J (and derived units) using
conversion factor constants (e.g. 1/(550nm) to eV ≈ 2.25
eV)
- Allow use of M as 10^6 without unit
- New ksi unit
- New functions: divisors(), rate(), vertcat(), horzcat()
- New plastic number (ρ) constant, and new "hbar" name for
reduced Planck constant, and add second Unicode codepoint for
µ-sign in constants
- Allow zero (1st and/or 2nd argument) in comb() and perm(),
and return zero if second argument (k) is greater than the
first (n)
- Calculate statistical functions (e.g. mode(), min(), max(),
percentile()) separately for each column of matrix
- Return the lowest value if there are multiple values with
equal frequency in mode()
- Parse text argument as expression if concatenate function
name is found in text string, and fix concatenate returning
date
- New layout for output of result of matrices and equations
(qalc)
- Fix Unicode handling on platforms where char is not signed
- Fix bitrot()
- Fix segfault in multisolve() when initial order of equations
is not optimal
- Fix segfault with empty sqrt inside sqrt, e.g. sqrt(1+sqrt())
- Fix incompletely calculated nounit(), e.g. in unit conversion
- Update to 3.22.0:
- New functions: linearfit(), quadraticfit(), cubicfit(),
ramlatency(), parallel()
- Merged inv() and inverse() functions
- Improved and extended parallel operator (|| is interpreted as
parallel if units are used)
- Allow nested subfunctions
- Do not stop testing function argument values after first failure
- Solve x^(x^(-a))=b
- Improved simplification: Im(-x)=-Im(x), Re(-x)=-Re(x)
- Handle units in plot data (remove and set as y-axis label)
- Avoid precision loss on output of interval when saving
approximate variable
- Fix pearson() and spearman()
- Fix display of incompletely solved equation with dual
approximation in some cases
- Fix genvector() when step size requires evaluation
- Fix a%%-b (interpret %% as mod, not percent)
- Fix asin(x)+bcos(x)=c
- Minor bug fixes and feature improvements
- [qacalc] Support "--" as end of options
- [qacalc] New --defaults command line option
- [qacalc] Configurable SIGINT (Ctrl+C) action (exit orderly by
default)
- [qacalc] Vertical space option (vspace)
- [qacalc] Clear command with Ctrl+L shortcut
- [qacalc] Apply same logic with separate to command, as with "to" at
end of expression, when result contains no unit
- [qacalc] Fix "to unicode"
- Update to 3.21.0:
- Ask (once) for correct interpretation of ambiguous implicit
multiplication
- Fix crash when using the dock menu to show the RPN dock stack
for the first time
- Fix link in new version dialog
- Fix parenthesis highlighting when cursor is at end of
expression
- Fix initial value of interval display in preferences dialog
- Fix saving of approximation mode
- Improved simplification of radical expressions
- Improved Im(), Re(), and arg() functions
- Improved output of complex forms (other than the default
rectangular) in exact mode
- Function for drill bit size conversion
- Fixes for equations with complex inverse trigonometric and
hyperbolic functions with no solution
- Fixes for complex x^(ax)=b
OBS-URL: https://build.opensuse.org/request/show/979800
OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=13
2022-06-03 11:57:11 +02:00
|
|
|
Version: 4.2.0
|
2017-01-19 10:36:12 +01:00
|
|
|
Release: 0
|
2019-09-30 15:50:45 +02:00
|
|
|
Summary: Multi-purpose desktop calculator application
|
2018-06-02 11:52:50 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-12-12 16:59:00 +01:00
|
|
|
Group: Productivity/Scientific/Math
|
2019-09-30 15:50:45 +02:00
|
|
|
URL: https://qalculate.github.io/
|
2017-01-19 10:36:12 +01:00
|
|
|
Source: https://github.com/Qalculate/libqalculate/releases/download/v%{version}/%{libname}-%{version}.tar.gz
|
2011-12-12 16:59:00 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: readline-devel
|
Accepting request 883503 from home:polslinux:branches:science
------------------------------------------------------------------
- Update to 3.18.0:
* Improve handling of expressions with log-based units
* Improve conversion of expression with multiple units
to a single unit (e.g. m/W to W)
* Output (kilo)gram instead of tonne with small prefix
* New functions for statistical distributions: probit(), betadist(),
cauchydist(), chisqdist(), expinv(), fdist(), gammadist(),
tdist(), wblinv(), weibulldist()
* Improve functions for statistical distribution
* Improve sexagesimal input and output, and add geodistance()
for calculation of distance between two GPS coordinates
* Add command() function, which runs an external command
and returns the output
* erfinv() function and support for solving equations
with error functions
* Fix conversion with relative temperature units activated
* Fix gammainc() function
* Fix keyboard focus when run hidden automatically at startup
* Temperature calculation modes (absolute, relative, hybrid)
* Allow prefixes, with full name, without units (e.g. kilo = 10^3)
* Extended and improved simplified Chinese translation
* Save handle vector function argument property
* Fix never ending loop when calculating []*[]
* Minor bug fixes and feature improvements
OBS-URL: https://build.opensuse.org/request/show/883503
OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=10
2021-04-09 12:04:34 +02:00
|
|
|
BuildRequires: libnghttp2-devel
|
2017-09-04 12:21:56 +02:00
|
|
|
BuildRequires: pkgconfig(icu-uc)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
Accepting request 883503 from home:polslinux:branches:science
------------------------------------------------------------------
- Update to 3.18.0:
* Improve handling of expressions with log-based units
* Improve conversion of expression with multiple units
to a single unit (e.g. m/W to W)
* Output (kilo)gram instead of tonne with small prefix
* New functions for statistical distributions: probit(), betadist(),
cauchydist(), chisqdist(), expinv(), fdist(), gammadist(),
tdist(), wblinv(), weibulldist()
* Improve functions for statistical distribution
* Improve sexagesimal input and output, and add geodistance()
for calculation of distance between two GPS coordinates
* Add command() function, which runs an external command
and returns the output
* erfinv() function and support for solving equations
with error functions
* Fix conversion with relative temperature units activated
* Fix gammainc() function
* Fix keyboard focus when run hidden automatically at startup
* Temperature calculation modes (absolute, relative, hybrid)
* Allow prefixes, with full name, without units (e.g. kilo = 10^3)
* Extended and improved simplified Chinese translation
* Save handle vector function argument property
* Fix never ending loop when calculating []*[]
* Minor bug fixes and feature improvements
OBS-URL: https://build.opensuse.org/request/show/883503
OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=10
2021-04-09 12:04:34 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(mpfr)
|
2018-09-16 18:30:55 +02:00
|
|
|
Requires: %{name}-data >= %{version}
|
2010-09-24 01:08:06 +02:00
|
|
|
|
|
|
|
%description
|
2017-01-31 12:15:04 +01:00
|
|
|
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).
|
2010-09-24 01:08:06 +02:00
|
|
|
This is the commandline interface, named qalc.
|
|
|
|
|
|
|
|
%package -n %{libname}%{major}
|
2018-09-16 18:30:55 +02:00
|
|
|
Summary: Calulator Library
|
2010-09-24 01:08:06 +02:00
|
|
|
Group: System/Libraries
|
2018-09-16 18:30:55 +02:00
|
|
|
Recommends: %{name}-data >= %{version}
|
2010-09-24 01:08:06 +02:00
|
|
|
Provides: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description -n %{libname}%{major}
|
2017-01-31 12:15:04 +01:00
|
|
|
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.
|
2010-09-24 01:08:06 +02:00
|
|
|
This is the shared library package.
|
|
|
|
|
2018-09-16 18:30:55 +02:00
|
|
|
%package data
|
|
|
|
Summary: Additional data for the qalculator calulator library
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
Requires: %{libname} = %{version}
|
2019-06-01 10:14:02 +02:00
|
|
|
# Files were split out into -data with 2.6.2
|
|
|
|
Conflicts: %{name} < 2.6.2
|
2021-01-10 11:06:36 +01:00
|
|
|
Provides: %{name}:%{_datadir}/%{name}/units.xml
|
2018-09-16 18:30:55 +02:00
|
|
|
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.
|
|
|
|
|
2010-09-24 01:08:06 +02:00
|
|
|
%package -n %{libname}-devel
|
|
|
|
Summary: Header files, libraries and development documentation for %{libname}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
2017-09-04 12:21:56 +02:00
|
|
|
Requires: gmp-devel
|
Accepting request 883503 from home:polslinux:branches:science
------------------------------------------------------------------
- Update to 3.18.0:
* Improve handling of expressions with log-based units
* Improve conversion of expression with multiple units
to a single unit (e.g. m/W to W)
* Output (kilo)gram instead of tonne with small prefix
* New functions for statistical distributions: probit(), betadist(),
cauchydist(), chisqdist(), expinv(), fdist(), gammadist(),
tdist(), wblinv(), weibulldist()
* Improve functions for statistical distribution
* Improve sexagesimal input and output, and add geodistance()
for calculation of distance between two GPS coordinates
* Add command() function, which runs an external command
and returns the output
* erfinv() function and support for solving equations
with error functions
* Fix conversion with relative temperature units activated
* Fix gammainc() function
* Fix keyboard focus when run hidden automatically at startup
* Temperature calculation modes (absolute, relative, hybrid)
* Allow prefixes, with full name, without units (e.g. kilo = 10^3)
* Extended and improved simplified Chinese translation
* Save handle vector function argument property
* Fix never ending loop when calculating []*[]
* Minor bug fixes and feature improvements
OBS-URL: https://build.opensuse.org/request/show/883503
OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=10
2021-04-09 12:04:34 +02:00
|
|
|
Requires: pkgconfig(libxml-2.0)
|
|
|
|
Requires: pkgconfig(mpfr)
|
2010-09-24 01:08:06 +02:00
|
|
|
|
|
|
|
%description -n %{libname}-devel
|
2017-01-31 12:15:04 +01:00
|
|
|
This package contains the header files and development
|
2010-09-24 01:08:06 +02:00
|
|
|
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
|
2017-01-19 10:36:12 +01:00
|
|
|
%configure --disable-static
|
2021-01-10 11:06:36 +01:00
|
|
|
%make_build
|
2010-09-24 01:08:06 +02:00
|
|
|
|
|
|
|
%install
|
2017-01-19 10:36:12 +01:00
|
|
|
%make_install
|
2011-09-01 14:54:45 +02:00
|
|
|
%find_lang libqalculate
|
2019-09-30 15:50:45 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-09-24 01:08:06 +02:00
|
|
|
|
|
|
|
%post -n %{libname}%{major} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname}%{major} -p /sbin/ldconfig
|
|
|
|
|
2011-09-01 14:54:45 +02:00
|
|
|
%files -f libqalculate.lang
|
2018-03-20 21:34:51 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc README ChangeLog INSTALL AUTHORS TODO
|
2010-09-24 01:08:06 +02:00
|
|
|
%{_bindir}/qalc
|
2019-09-30 15:50:45 +02:00
|
|
|
%{_mandir}/man1/qalc.1%{?ext_man}
|
2010-09-24 01:08:06 +02:00
|
|
|
|
2018-09-16 18:30:55 +02:00
|
|
|
%files -n %{name}-data
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
2010-09-24 01:08:06 +02:00
|
|
|
%files -n %{libname}%{major}
|
2018-03-20 21:34:51 +01:00
|
|
|
%license COPYING
|
2017-09-04 12:21:56 +02:00
|
|
|
%{_libdir}/%{libname}.so.%{major}
|
|
|
|
%{_libdir}/%{libname}.so.%{major}.*
|
2010-09-24 01:08:06 +02:00
|
|
|
|
|
|
|
%files -n %{libname}-devel
|
2018-03-20 21:34:51 +01:00
|
|
|
%license COPYING
|
2010-09-24 01:08:06 +02:00
|
|
|
%{_includedir}/%{libname}
|
|
|
|
%{_libdir}/%{libname}.so
|
|
|
|
%{_libdir}/pkgconfig/%{libname}.pc
|
|
|
|
|
|
|
|
%changelog
|