forked from pool/qalculate
6927f5e667
- Update to 4.6.1: * Do not automatically by default set prefix higher than kilo for meter, gram, higher than 1 (no prefix) for second and litre, or lower than 1 for byte and bit * Do not use recently introduced SI prefixes (R, Q, r, q) automatically by default * Do not set automatic prefix if resulting multiplier is less than 1 or greater than 1000, with some exceptions (e.g. km) * Default prefix unit property (use for gram, and few other units, instead of hard coded value) * Option to change symbols used for output of digits 10 and 11 in duodecimal numbers (use A and B as default digits) * Allow the same variable left and right of the equals sign (e.g. var=var+2), in variable assignment without colon, if the variable exists and the previous value is known * Use Unicode symbol for minus in scientific e notation * Do not show multiplier if exactly 1, in HTML output of scientific notation * Prefer Nm (torque) over J when the result is a vector with three components * Add "amp" abbreviation to ampere unit, and "thou" name for 1/1000 in (mil) * Fix unit order for Nm and Ws * Fix conversion from ounce (interpreted as fluid ounce) to litre with prefix * Fix automatic reactivation of global object after deletion of conflicting object * Fix parsing of scientific e notation when the number is extremely large and exponentiation fails because of floating point overflow * Fixes for output of scientific notation using number bases other than decimal * Fix prefix selection in denominator when multiplier is higher than the value of the largest prefix * Fix segfault in multisolve() * Don't show anything on empty input * Support "help [OPTION]" and "help set [OPTION]" command to display OBS-URL: https://build.opensuse.org/request/show/1080635 OBS-URL: https://build.opensuse.org/package/show/science/qalculate?expand=0&rev=18
128 lines
4.1 KiB
RPMSpec
128 lines
4.1 KiB
RPMSpec
#
|
|
# 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 22
|
|
%define libname libqalculate
|
|
Name: qalculate
|
|
Version: 4.6.1
|
|
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
|