## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Qt-Color-Widgets and kdsingleapplication are linked statically within # flameshot, the standard upstream build systemd does this via a git clone # as part of the build process %global qtcolor_commit 352bc8f99bf2174d5724ee70623427aa31ddc26a %global qtcolor_url https://gitlab.com/mattbas/Qt-Color-Widgets Name: flameshot Version: 13.0.1 Release: %autorelease # Main code: GPL-3.0-or-later # Logo: LAL-1.3 # Button icons: Apache-2.0 # capture/capturewidget.cpp and capture/capturewidget.h: GPL-2.0-only # regiongrabber.cpp: LGPL-3.0-or-later # Qt-Color-Widgets: LGPL-3.0-only OR GPL-3.0-only # More information: https://github.com/flameshot-org/flameshot#license License: GPL-3.0-or-later AND Apache-2.0 AND GPL-2.0-only AND LGPL-3.0-or-later AND (LGPL-3.0-only OR GPL-3.0-only) AND LAL-1.3 Summary: Powerful and simple to use screenshot software URL: https://github.com/flameshot-org/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{qtcolor_url}/-/archive/%{qtcolor_commit}/Qt-Color-Widgets-%{qtcolor_commit}.tar.gz # https://github.com/flameshot-org/flameshot/commit/5c12dc5513aa283649dceddd8875094744199083 Patch1: %{name}-13.0.1-packaged-kdsingleapplication.patch BuildRequires: cmake(KDSingleApplication-qt6) BuildRequires: cmake(KF6GuiAddons) BuildRequires: cmake(Qt6Concurrent) BuildRequires: cmake(Qt6DBus) BuildRequires: cmake(Qt6Gui) BuildRequires: cmake(Qt6LinguistTools) BuildRequires: cmake(Qt6Multimedia) BuildRequires: cmake(Qt6Network) BuildRequires: cmake(Qt6Svg) BuildRequires: cmake(Qt6Widgets) BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: fdupes BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: ninja-build Requires: grim Requires: hicolor-icon-theme Requires: qt6-qtsvg%{?_isa} # XDG portals are required to take screenshots on Wayland: # https://github.com/flameshot-org/flameshot/issues/1910 Recommends: xdg-desktop-portal%{?_isa} Recommends: (xdg-desktop-portal-gnome%{?_isa} if gnome-shell%{?_isa}) Recommends: (xdg-desktop-portal-kde%{?_isa} if plasma-workspace-wayland%{?_isa}) Recommends: (xdg-desktop-portal-wlr%{?_isa} if wlroots%{?_isa}) Provides: bundled(qt-color-widgets) = 2.2.0 %description Powerful and simple to use screenshot software with built-in editor with advanced features. %prep %autosetup -p1 mkdir -p external/Qt-Color-Widgets tar -xf %{SOURCE1} -C external/Qt-Color-Widgets --strip-components=1 %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_BUNDLED_KDSINGLEAPPLICATION:BOOL=OFF \ -DUSE_WAYLAND_CLIPBOARD:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DUSE_LAUNCHER_ABSOLUTE_PATH:BOOL=OFF %cmake_build %install %cmake_install rm -rf %{buildroot}%{_includedir}/QtColorWidgets rm -rf %{buildroot}%{_libdir}/cmake/QtColorWidgets rm -f %{buildroot}%{_libdir}/libQtColorWidgets.* rm -f %{buildroot}%{_libdir}/pkgconfig/QtColorWidgets.pc %find_lang Internationalization --with-qt %fdupes %{buildroot}%{_datadir}/icons %check appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files -f Internationalization.lang %doc README.md %license LICENSE %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/translations %{_bindir}/%{name} %{_datadir}/applications/*.desktop %{_metainfodir}/*.metainfo.xml %{_datadir}/dbus-1/interfaces/*.xml %{_datadir}/dbus-1/services/*.service %{_datadir}/icons/hicolor/*/apps/* %{_mandir}/man1/%{name}.1* %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog ## START: Generated by rpmautospec * Fri Aug 15 2025 Shawn W Dunn - 13.0.1-3 - Added Requires: grim * Wed Aug 13 2025 Shawn W Dunn - 13.0.1-1 - Update to version 13.0.1 - Switch to packaged KDSingleApplication * Wed Aug 06 2025 Shawn W Dunn - 13.0.0-2 - Added missed buildflag * Wed Aug 06 2025 Shawn W Dunn - 13.0.0-1 - Updated to version 13.0.0 * Wed Jul 23 2025 Fedora Release Engineering - 12.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 12.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 12.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 12.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 12.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 12.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 12.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 12.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 04 2022 Vitaly Zaitsev - 12.1.0-1 - Updated to version 12.1.0. * Wed Jun 22 2022 Vitaly Zaitsev - 12.0.0-1 - Updated to version 12.0.0. * Sat Jan 22 2022 Vitaly Zaitsev - 11.0.0-3 - Backported upstream patch with Wayland clipboard fixes. * Thu Jan 20 2022 Fedora Release Engineering - 11.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 15 2022 Vitaly Zaitsev - 11.0.0-1 - Updated to version 11.0.0. * Sun Nov 28 2021 Vitaly Zaitsev - 0.10.2-3 - Fixed issues with hotkeys on KDE Wayland. * Sun Nov 28 2021 Vitaly Zaitsev - 0.10.2-2 - Backported upstream patch with version fixes. * Sun Nov 14 2021 Vitaly Zaitsev - 0.10.2-1 - Updated to version 0.10.2. * Mon Jul 26 2021 Vitaly Zaitsev - 0.10.1-1 - Updated to version 0.10.1. * Wed Jul 21 2021 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 14 2021 Vitaly Zaitsev - 0.10.0-1 - Updated to version 0.10.0. * Sun Feb 28 2021 Vitaly Zaitsev - 0.9.0-1 - Updated to version 0.9.0. * Tue Jan 26 2021 Fedora Release Engineering - 0.8.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 15 2020 Vitaly Zaitsev - 0.8.5-1 - Updated to version 0.8.5. * Tue Sep 29 2020 Vitaly Zaitsev - 0.8.3-1 - Updated to version 0.8.3. * Thu Sep 24 2020 Vitaly Zaitsev - 0.8.1-1 - Updated to version 0.8.1. * Sun Sep 20 2020 Vitaly Zaitsev - 0.8.0-1 - Updated to version 0.8.0. * Mon Jul 27 2020 Fedora Release Engineering - 0.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 27 2019 Vitaly Zaitsev - 0.6.0-3 - Added missing runtime requirements (rhbz#1724679). * Thu Jan 31 2019 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Aug 26 2018 Vitaly Zaitsev - 0.6.0-1 - Updated to version 0.6.0. * Fri Jul 13 2018 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Feb 24 2018 Vitaly Zaitsev - 0.5.1-1 - Updated to version 0.5.1. * Mon Jan 08 2018 Vitaly Zaitsev - 0.5.0-2 - Minor SPEC fixes. * Sat Jan 06 2018 Vitaly Zaitsev - 0.5.0-1 - Initial SPEC release. ## END: Generated by rpmautospec