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
|
|
|
#
|
2019-03-27 16:16:08 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2019-03-27 16:16:08 +01:00
|
|
|
%define major 21
|
2017-12-23 12:18:50 +01:00
|
|
|
%define libname libqalculate
|
2017-01-19 10:36:12 +01:00
|
|
|
Name: qalculate
|
2019-09-30 15:50:45 +02:00
|
|
|
Version: 3.4.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: libxml2-devel
|
2017-09-04 12:21:56 +02:00
|
|
|
BuildRequires: mpfr-devel
|
2011-12-12 16:59:00 +01:00
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: readline-devel
|
2017-09-04 12:21:56 +02:00
|
|
|
BuildRequires: pkgconfig(icu-uc)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
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}
|
|
|
|
Provides: %{name}:%{_datadir}/%{name}/units.xml
|
2019-06-01 10:14:02 +02:00
|
|
|
# Files were split out into -data with 2.6.2
|
|
|
|
Conflicts: %{name} < 2.6.2
|
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
|
2012-11-28 16:33:17 +01:00
|
|
|
Requires: libxml2-devel
|
2017-09-04 12:21:56 +02:00
|
|
|
Requires: mpfr-devel
|
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
|
|
|
|
make %{?_smp_mflags}
|
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
|
2017-01-19 10:36:12 +01:00
|
|
|
%{_datadir}/doc/%{libname}
|
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
|