%global commit 2aa3ae2433ee671ddc73e36ece8598e68f7f3632 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global git_rel .git%{shortcommit} %global source_name swappy Name: swappy-git Version: 1.5.1 Release: 1%{?git_rel}%{?dist} Summary: Wayland native snapshot editing tool, inspired by Snappy on macOS License: MIT URL: https://github.com/jtheoof/swappy Source0: %{url}/archive/%{commit}/%{source_name}-master-%{commit}.tar.gz BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: meson BuildRequires: scdoc BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(pango) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(libnotify) BuildRequires: desktop-file-utils # from the author re fontawesome: "Considering the icons that I # currently use, swappy should work with FA 4. But if I need to add # more tools (and so icons) in the future, I will pick from FA 5, # which has a lot more than FA 4 so it might not work in the future. # Therefore I would still recommend using FA >=5, but it's technically # OK to have FA >= 4 at the moment." Recommends: fontawesome-fonts Recommends: wl-clipboard %description A Wayland native snapshot and editor tool, inspired by Snappy on macOS. Works great with grim, slurp and sway. But can easily work with other screen copy tools that can output a final PNG image to stdout. %prep %autosetup -n %{source_name}-%{commit} %build %meson %meson_build %install %meson_install install -p -D -m 0644 -t %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps res/icons/hicolor/scalable/apps/%{source_name}.svg desktop-file-install --dir %{buildroot}/%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/%{source_name}.desktop sed -i 's/^Exec=.*$/Exec=sh -c "if [ -n \\"\\\\$*\\" ]; then exec swappy -f \\"\\\\$@\\"; else grim -g \\"\\\\$(slurp)\\" - | swappy -f -; fi" placeholder %F/' %{buildroot}/%{_datadir}/applications/%{source_name}.desktop %find_lang %{source_name} %files -f %{source_name}.lang %{_bindir}/%{source_name} %{_datadir}/applications/* %{_datadir}/icons/* %license LICENSE %doc README.md %{_mandir}/man1/%{source_name}.1.* %changelog * Sat Jul 20 2024 Fedora Release Engineering - 1.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 21 2023 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 29 2022 Bob Hepple - 1.5.1-1 - new version * Sat Jul 23 2022 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 23 2021 Bob Hepple - 1.4.0-1 - new version * Mon Sep 06 2021 Bob Hepple - 1.3.1-4 - rebuilt with better Exec= key in desktop file * Fri Jul 30 2021 Bob Hepple - 1.3.1-3 - fixed install path for .desktop file RHBZ#1988015 * Fri Jul 23 2021 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Feb 20 2021 Bob Hepple - 1.3.1-1 - new version * Thu Feb 18 2021 Bob Hepple - 1.3.0-1 - new version * Wed Jan 27 2021 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Bob Hepple - 1.2.1-1 - new version and add gpgverify * Mon Jul 06 2020 Bob Hepple - 1.2.0-1 - new version * Tue Jun 30 2020 Bob Hepple - 1.1.0-3 - add swappy-fix-format for arm builds * Mon Jun 29 2020 Bob Hepple - 1.1.0-2 - rebuilt for RHBZ#1849384 * Fri Jun 26 2020 Bob Hepple - 1.1.0-1 - new version * Tue Apr 21 2020 Bob Hepple - 1.0.0-1 - version 1.0.0