# SPDX-License-Identifier: GPL-3.0-only # Source-generation placeholders are filled by make-srpm.sh. %global debug_package %{nil} %global crate_version 0.3.0-rc.1 Name: blab Version: 0.3.0~rc.1 Release: 1%{?dist} Summary: Your mouth just got a keybinding # Application plus the license expressions declared by vendored dependencies. License: ((MIT OR Apache-2.0) AND Unicode-3.0) AND (Apache-2.0) AND (Apache-2.0 AND ISC) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-3-Clause) AND (CDLA-Permissive-2.0) AND (GPL-3.0-only) AND (ISC) AND (MIT) AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Apache-2.0 OR Zlib) AND (Unicode-3.0) AND (Unlicense OR MIT) AND (Zlib) AND (Zlib OR Apache-2.0 OR MIT) URL: https://github.com/akshay-abraham/blab Source0: blab-%{crate_version}.tar.gz BuildRequires: rust >= 1.89 BuildRequires: cargo BuildRequires: gcc BuildRequires: desktop-file-utils Requires: (pipewire-utils or pulseaudio-utils or alsa-utils) Requires: (wl-clipboard or xclip or xsel) Requires: libnotify Recommends: xdg-desktop-portal %description Performance-first Linux dictation in Rust. Hold a shortcut, speak, and release to copy your words. Optional automatic paste, a native terminal control center, and saved audio for recovery. Groq is the default transcription provider; additional desktop and provider adapters are experimental. %prep %autosetup -n blab-%{crate_version} %build export CARGO_BUILD_JOBS=2 cargo build --release --locked --offline %install install -Dpm0755 target/release/blab %{buildroot}%{_bindir}/blab install -Dpm0644 assets/blab.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/io.github.blab.Dictation.svg install -Dpm0644 packaging/rpm/io.github.blab.Dictation.desktop %{buildroot}%{_datadir}/applications/io.github.blab.Dictation.desktop %check export CARGO_BUILD_JOBS=2 cargo test --locked --offline --bin blab desktop-file-validate %{buildroot}%{_datadir}/applications/io.github.blab.Dictation.desktop target/release/blab --version %files %license LICENSE VENDORED-LICENSES %doc README.md %{_bindir}/blab %{_datadir}/applications/io.github.blab.Dictation.desktop %{_datadir}/icons/hicolor/scalable/apps/io.github.blab.Dictation.svg