File espanso.spec of Package espanso

#
# spec file for package espanso
#
# Copyright (c) 2024 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:           espanso
Version:        2.2.1
Release:        0
Summary:        A cross-platform Text Expander written in Rust
License:        GPL-3.0-only
Group:          Productivity/Text/Convertors
URL:            https://github.com/federico-terzi/espanso
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.zst
BuildRequires:  extra-cmake-modules
BuildRequires:  libopenssl-devel pkgconfig(xkbcommon)
BuildRequires:  cargo-packaging
BuildRequires:  wxGTK3-devel >= 3.0

%description
A cross-platform Text Expander written in Rust. espanso detects when you
type a keyword and replaces it while you're typing.

%prep
%autosetup -a1

%build
%cargo_build

%install
install -D -m 0755 target/release/%{name} \
    %{buildroot}%{_bindir}/%{name}

%files
%license LICENSE
%doc README.md SECURITY.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by