%global commit 2d18065ea534bd12792865784eed86a617ffbdc7 %global up satty # The release profile has no debug info, so there is nothing for a debuginfo package %global debug_package %{nil} Name: satty Version: 0.21.1 Release: 1%{?dist} Summary: Screenshot annotation tool # The vendored crates carry their own licenses (mostly MIT and Apache-2.0) License: MPL-2.0 URL: https://github.com/Satty-org/Satty # Tarball of the upstream release tag with the crates vendored, produced by scripts/make-srpm.sh Source0: %{up}-%{commit}.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(epoxy) Recommends: wl-clipboard %description Satty is a screenshot annotation tool inspired by Swappy and Flameshot. It opens an image, lets you draw arrows, boxes, text and blur on it, and saves the result to a file or the clipboard. %prep %autosetup -n %{up}-%{commit} %build export CARGO_HOME=$PWD/.cargo-home # ci-release makes the build script write the completions and man page into the source tree cargo build --release --offline --locked --features ci-release %install install -D -m755 -p target/release/satty %{buildroot}%{_bindir}/satty install -D -m644 -p satty.desktop %{buildroot}%{_datadir}/applications/satty.desktop install -D -m644 -p assets/satty.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/satty.svg install -D -m644 -p man/satty.1 %{buildroot}%{_mandir}/man1/satty.1 install -D -m644 -p completions/satty.bash %{buildroot}%{bash_completions_dir}/satty install -D -m644 -p completions/satty.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/satty.fish install -D -m644 -p completions/_satty %{buildroot}%{_datadir}/zsh/site-functions/_satty %files %license LICENSE %doc README.md %{_bindir}/satty %{_datadir}/applications/satty.desktop %{_datadir}/icons/hicolor/scalable/apps/satty.svg %{_mandir}/man1/satty.1* %{bash_completions_dir}/satty %{_datadir}/fish/vendor_completions.d/satty.fish %{_datadir}/zsh/site-functions/_satty %changelog %autochangelog