SHA256
1
0
forked from pool/qalculate
qalculate/qalculate.spec
Dominique Leuenberger 67a1203920 Accepting request 507911 from KDE:Distro:Factory
- Update to 0.9.12:
  * Fixes to unit parsing in adaptive parsing mode, build fixes and other minor bug fixes
- Update to 0.9.11:
  * Mixed units conversion (e.g. "15 in = 1 ft + 3 in" and "3,2 h = 3 h + 12 min")
  * Fixes to unit conversion (e.g. "1/(1 ns) to GHz")
  * Fix slow calculation of exponentiations with big numerators in exponents (e.g. "2^0.333333333")
  * Critical fixes for RPN syntax
  * Fix degree sign
  * Fix transformation of last arguments to vector, when only one last argument (fixes function("1+\x"; 1))
  * Plot functions (makes possible plotting, using gnuplot, in qalc)
  * "Swap, "pop", "copy", "rotate" and "move" commands for RPN stack manipulation in qalc
  * Enable both (or one of) RPN stack and syntax with the "rpn" command in qalc
  * New commands for creation of simple functions and variables (without calculation of the expression) in qalc
  * Various other minor enhancements and bug fixes...

OBS-URL: https://build.opensuse.org/request/show/507911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qalculate?expand=0&rev=15
2017-07-08 10:25:11 +00:00

106 lines
3.3 KiB
RPMSpec

#
# spec file for package qalculate
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define major 9
%define libname libqalculate
Name: qalculate
Version: 0.9.12
Release: 0
Summary: Multi-purpose desktop calulator application
License: GPL-2.0+
Group: Productivity/Scientific/Math
Url: https://qalculate.github.io/
Source: https://github.com/Qalculate/libqalculate/releases/download/v%{version}/%{libname}-%{version}.tar.gz
BuildRequires: cln-devel
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: gmp-devel
BuildRequires: intltool
BuildRequires: libxml2-devel
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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: Powerful Calulator Library
Group: System/Libraries
Suggests: %{name}
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 -n %{libname}-devel
Summary: Header files, libraries and development documentation for %{libname}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: cln-devel
Requires: glib2-devel
Requires: libxml2-devel
%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 %{?_smp_mflags}
%install
%make_install
%find_lang libqalculate
rm -f "%{buildroot}/%{_libdir}"/*.la
%post -n %{libname}%{major} -p /sbin/ldconfig
%postun -n %{libname}%{major} -p /sbin/ldconfig
%files -f libqalculate.lang
%defattr(-,root,root)
%doc README ChangeLog INSTALL COPYING AUTHORS TODO
%{_bindir}/qalc
%{_datadir}/%{name}
%{_datadir}/doc/%{libname}
%files -n %{libname}%{major}
%defattr(-,root,root)
%{_libdir}/%{libname}.so.*
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/%{libname}
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/%{libname}.pc
%changelog