Name: textpieces Version: 4.3.1 Release: 1%{?dist} Summary: Powerful scratchpad with ability to perform a lot of text transformations License: GPL-3.0-or-later URL: https://apps.gnome.org/TextPieces/ Source0: https://gitlab.com/liferooter/textpieces/-/archive/%{version}/textpieces-%{version}.tar.gz Source1: textpieces-%{version}-vendor.tar.xz BuildRequires: appstream blueprint-compiler cargo-rpm-macros BuildRequires: desktop-file-utils git meson rust-packaging pkgconfig(gtk4) pkgconfig(gtksourceview-5) pkgconfig(libadwaita-1) Requires: dconf glib2 gtk4 gtksourceview5 hicolor-icon-theme libadwaita pango ExclusiveArch: %{rust_arches} %description Text Pieces is a small tool for quick text transformations such as checksums, encoding, decoding and so on. You can use wide set of built-in actions, or easily write your own. %prep %autosetup -p1 tar xf %{SOURCE1} %cargo_prep -v vendor %build %meson %meson_build %install %meson_install %check %meson_test %files %license LICENSE %doc README.md %{_bindir}/textpieces %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/metainfo/*.xml %{_datadir}/locale/*/LC_MESSAGES/textpieces.mo %post glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %postun glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %changelog %autochangelog