File rofi-calc.spec of Package rofi-calc

#
# spec file for package rofi-calc
#
# Copyright (c) 2025 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/
#


Name:           rofi-calc
Version:        2.5.0+git20251013.e9d785e
Release:        0
Summary:        Calculator for rofi
License:        MIT
Group:          System/GUI/Other
URL:            https://github.com/svenstaro/rofi-calc
Source0:        %{name}-%{version}.tar.gz
#BuildRequires:  autoconf
#BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.40
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  rofi-devel
Requires:       qalculate >= 2.0
Requires:       rofi-launcher >= 1.5

%description
A rofi plugin that uses libqalculate's qalc to parse natural language
input and provide results.

Since this uses libqalculate's qalc, natural language queries such as
"500 + 25%%" or "5000 EUR to USD" or "150 to hex" can be input.
It can also solve linear equations on the fly, like "60x + 30 = 50"
for instance.

%prep
%setup -q

%build
#autoreconf -i
#%%configure
#make %%{?_smp_mflags}
meson setup build
meson compile -C build/

%install
#%%make_install
#rm %%{buildroot}%%{_libdir}/rofi/calc.la
meson install -C build --destdir %{buildroot}

%files
%license LICENSE
%doc README.md
%dir %{_libdir}/rofi
#%%{_libdir}/rofi/calc.so
%{_libdir}/rofi/libcalc.so

%changelog
openSUSE Build Service is sponsored by