File rofi-calc.spec of Package rofi-calc

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


Name:           rofi-calc
Version:        0
Release:        0
Summary:        Do live calculations in rofi
License:        MIT
Group:          System/GUI/Other
Url:            https://github.com/svenstaro/rofi-calc
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0) >= 2.40
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(rofi) >= 1.5
BuildRequires:  rofi-devel >= 1.5
BuildRequires:  rofi >= 1.5
Requires:       rofi >= 1.5
Requires:       qalculate >= 2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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

%prep
%setup -q

%build
autoreconf -i
%configure
make %{?_smp_mflags}

%install
%make_install
rm %{buildroot}%{_libdir}/rofi/calc.la

%files
%defattr(-,root,root)
%doc LICENSE README.md
%dir %{_libdir}/rofi
%{_libdir}/rofi/calc.so

%changelog
openSUSE Build Service is sponsored by