Sisyphus repository
Last update: 6 june 2023 | SRPMs: 18458 | Visits: 27946888
en ru br
ALT Linux repos
5.0: 0.9.6-alt2.1
4.1: 0.9.6-alt1
4.0: 0.9.5-alt1

Group :: Office
RPM: qalculate

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

%def_without static

Name: qalculate
Version: 4.1.1
Release: alt2
Summary: A very versatile desktop calculator
Group: Office
License: GPL-2.0+


Source: lib%name-%version.tar

BuildRequires: libcln-devel gcc-c++ glib2-devel libgmp-devel libstdc++-devel perl-XML-Parser pkgconfig zlib-devel intltool libtool libxml2-devel
BuildRequires: libcurl-devel libicu-devel libmpfr-devel doxygen

Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux.
It is small and simple to use but with much power and versatility
underneath. Features include customizable functions, units, arbitrary
precision, plotting.

%package -n lib%name
Summary: libqalculate libraries
Group: System/Libraries
Requires: %name-common >= %EVR

%description -n lib%name
Qalculate libraries.

%package -n lib%name-devel
Summary: libqalculate development package
Group: Development/C
Requires: lib%name = %EVR

%description -n lib%name-devel
The libqalculate package contains the header files needed for developing
applications that use libqalculate. Install libqalculate-devel if
you want to develop applications using libqalculate.

%if_enabled static
%package -n %libname-devel-static
Summary: libqalculate static library
Group: Development/C
Requires: lib%name-devel = %EVR

%description -n lib%name-devel-static
This package contains static version of libqalculate. Install
libqalculate-devel-static if you want to develop applications statically linked
with libqalculate.

%package common
Summary: qalculate common files
Group: Office

%description common
This package contains common files used by qalculate frontends.

%setup -q -n lib%name-%version

%add_optflags -D_FILE_OFFSET_BITS=64


%configure \

pushd docs/reference



# remove non-packaged files

rm -f %buildroot%_libdir/*.la
%if_without static
rm -f %buildroot%_libdir/*.a

%find_lang --output=%name.lang lib%name

%files -n lib%name

%files -n lib%name-devel


%files common -f %name.lang
%doc AUTHORS ChangeLog README README.translate

%if_with static
%files -n lib%name-devel-static


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin