1 Star 0 Fork 1

brucezhang/libqalculate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libqalculate.spec 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
brucezhang 提交于 2025-01-09 14:49 +08:00 . Rebuild for icu-74.2
%define _unpackaged_files_terminate_build 0
%global srcnm Qalculate
%global libversion 22
%global libsymlink 20.1
Summary: Multi-purpose calculator library
Name: libqalculate
Version: 4.9.0
Release: 2%{?dist}
License: GPLv2+
URL: https://qalculate.github.io/
Source0: https://github.com/%{srcnm}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: cln-devel
BuildRequires: intltool
BuildRequires: libxml2-devel
BuildRequires: readline-devel
BuildRequires: ncurses-devel
BuildRequires: curl-devel
BuildRequires: libicu-devel
BuildRequires: mpfr-devel
BuildRequires: perl(XML::Parser)
BuildRequires: gettext
BuildRequires: perl(Getopt::Long)
BuildRequires: make
%description
This library underpins the Qalculate! multi-purpose desktop calculator for
GNU/Linux
%package devel
Summary: Development tools for the Qalculate calculator library
Requires: %{name} = %{version}-%{release}
Requires: glib2-devel
Requires: libxml2-devel
Requires: cln-devel
Requires: mpfr-devel
%description devel
The libqalculate-devel package contains the header files needed for development
with libqalculate.
%package -n qalculate
Summary: Multi-purpose calculator, text mode interface
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Provides: qalc
%description -n qalculate
Qalculate! is a 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.
This package provides the text-mode interface for Qalculate! The GTK and QT
frontends are provided by qalculate-gtk and qalculate-kde packages resp.
%prep
%setup -q
%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
%find_lang %{name}
rm -f %{buildroot}/%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%doc AUTHORS ChangeLog TODO
%license COPYING
%{_libdir}/libqalculate.so.%{libversion}
%{_libdir}/libqalculate.so.%{libversion}.%{libsymlink}
%{_datadir}/qalculate/
%files devel
%{_libdir}/libqalculate.so
%{_libdir}/pkgconfig/libqalculate.pc
%{_includedir}/libqalculate/
%files -n qalculate
%{_bindir}/qalc
%{_mandir}/man1/qalc.1*
%changelog
* Thu Jan 09 2025 bbrucezhang <bbrucezhang@tencent.com> - 4.9.0-2
- Rebuild for icu-74.2
* Wed Jul 24 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.9.0-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bbrucezhang/libqalculate.git
git@gitee.com:bbrucezhang/libqalculate.git
bbrucezhang
libqalculate
libqalculate
master

搜索帮助