Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/Linux-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
if: matrix.dist.os == 'fedora'
run: |
mkdir $GITHUB_WORKSPACE/rpm
cp $GITHUB_WORKSPACE/packaging/rpm/fedora/flameshot.spec $GITHUB_WORKSPACE/rpm
cp $GITHUB_WORKSPACE/packaging/rpm/flameshot.spec $GITHUB_WORKSPACE/rpm
bash $GITHUB_WORKSPACE/tools/packpack
env:
OS: ${{ matrix.dist.os }}
Expand All @@ -208,7 +208,7 @@ jobs:
if: matrix.dist.os == 'opensuse-leap'
run: |
mkdir $GITHUB_WORKSPACE/rpm
cp $GITHUB_WORKSPACE/packaging/rpm/opensuse/flameshot.spec $GITHUB_WORKSPACE/rpm
cp $GITHUB_WORKSPACE/packaging/rpm/flameshot.spec $GITHUB_WORKSPACE/rpm
bash $GITHUB_WORKSPACE/tools/packpack
env:
OS: ${{ matrix.dist.os }}
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,15 @@ There are packages available in the repository of some Linux distributions:
- [Debian 10+](https://tracker.debian.org/pkg/flameshot): `apt install flameshot`
+ Package for Debian 9 ("Stretch") also [available via stretch-backports](https://backports.debian.org/).
- [Ubuntu](https://launchpad.net/ubuntu/+source/flameshot): `apt install flameshot`
+ A [PPA supporting Ubuntu 22.04 and newer](https://launchpad.net/~quentiumyt/+archive/ubuntu/flameshot) is provided by
[Quentin Lienhardt](https://github.com/QuentiumYT) that offers an up-to-date version of `flameshot`.
- [openSUSE](https://software.opensuse.org/package/flameshot): `zypper install flameshot`
- [Void Linux](https://github.com/void-linux/void-packages/tree/master/srcpkgs/flameshot): `xbps-install flameshot`
- [Solus](https://dev.getsol.us/source/flameshot/): `eopkg it flameshot`
- [Fedora](https://src.fedoraproject.org/rpms/flameshot): `dnf install flameshot`
- [NixOS](https://search.nixos.org/packages?query=flameshot): `nix-env -iA nixos.flameshot`
- [ALT](https://packages.altlinux.org/en/sisyphus/srpms/flameshot/): `su - -c "apt-get install flameshot"`
- [Snap/Flatpak/AppImage](https://github.com/flameshotapp/packages)
- [Snap/Flatpak/AppImage](https://github.com/flameshot-org/packages)
- [Docker](https://github.com/ManuelLR/docker-flameshot)
- [Windows](https://github.com/majkinetor/au-packages/tree/master/flameshot)

Expand Down Expand Up @@ -557,15 +559,15 @@ cmake --install "$BUILD_DIR"

## License

- The main code is licensed under [GPLv3](LICENSE)
- The main code is licensed under [GPLv3+](LICENSE)
- The logo of Flameshot is licensed under [Free Art License v1.3](data/img/app/flameshotLogoLicense.txt)
- The button icons are licensed under Apache License 2.0. See: https://github.com/google/material-design-icons
- The code at capture/capturewidget.cpp is based on https://github.com/ckaiser/Lightscreen/blob/master/dialogs/areadialog.cpp (GPLv2)
- The code at capture/capturewidget.h is based on https://github.com/ckaiser/Lightscreen/blob/master/dialogs/areadialog.h (GPLv2)
- I copied a few lines of code from KSnapshot regiongrabber.cpp revision `796531` (LGPL)
- Qt-Color-Widgets taken and modified from https://github.com/mbasaglia/Qt-Color-Widgets (see their license and exceptions in the project) (LGPL/GPL)

Info: If I take code from your project and that implies a relicense to GPLv3, you can reuse my changes with the original previous license of your project applied.
Info: If I take code from your project and that implies a relicense to GPLv3+, you can reuse my changes with the original previous license of your project applied.

## Privacy Policy

Expand Down
2 changes: 1 addition & 1 deletion data/man/man1/flameshot.1
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ The following URL gives you a more complete list of contributors:
.SH "LICENSE"
.nh
.PP
• The main code is licensed under GPLv3
• The main code is licensed under GPLv3+
.br
• The logo of Flameshot is licensed under Free Art License v1.3
.br
Expand Down
166 changes: 0 additions & 166 deletions packaging/rpm/fedora/flameshot.spec

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
#
# spec file for package flameshot on opensuse leap 15.x
#
Name: flameshot
Version: 13.1.0
Release: 2
License: GPLv3+ and ASL 2.0 and GPLv2 and LGPLv3 and Free Art
Version: 13.3.0
Release: 1%{?dist}
Summary: Powerful yet simple to use screenshot software

License: GPL-3.0-or-later
URL: https://github.com/flameshot-org/flameshot
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Vendor: Flameshot

BuildRequires: cmake >= 3.22
BuildRequires: gcc-c++ >= 11
BuildRequires: fdupes
BuildRequires: git
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: jdupes

%if 0%{?suse_version}
BuildRequires: gcc15-c++
BuildRequires: ninja
BuildRequires: update-desktop-files
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils
%else
BuildRequires: gcc-c++
BuildRequires: ninja-build
BuildRequires: libappstream-glib
%endif

BuildRequires: cmake(Qt6Core) >= 6.2.4
BuildRequires: cmake(Qt6DBus) >= 6.2.4
Expand All @@ -25,12 +32,27 @@ BuildRequires: cmake(Qt6Network) >= 6.2.4
BuildRequires: cmake(Qt6Svg) >= 6.2.4
BuildRequires: cmake(Qt6Widgets) >= 6.2.4

%if 0%{?fedora} || 0%{?suse_version} >= 1550 || (0%{?rhel} >= 10 && (0%{?centos} || 0%{?epel}))
%global wayland_clipboard ON
BuildRequires: kf6-kguiaddons-devel >= 6.7.0
%else
%global wayland_clipboard OFF
%endif

Requires: hicolor-icon-theme
Requires: qt6-base >= 6.2.4
Requires: qt6-tools >= 6.2.4
Requires: qt6-svg >= 6.2.4

%if 0%{?suse_version}
Requires: qt6-svg
%else
Requires: qt6-svg%{?_isa}
%endif

%if 0%{?suse_version}
Recommends: qt6-imageformats
%else
Recommends: qt6-qtimageformats%{?_isa}
%endif

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})
Expand All @@ -51,26 +73,50 @@ Features:
%autosetup -p1

%build
%cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=OFF
%if 0%{?suse_version}
export CXX=/usr/bin/g++-15

cmake -G Ninja -S . -B build \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_WAYLAND_CLIPBOARD=%{wayland_clipboard} \
-DBUILD_SHARED_LIBS=OFF

cmake --build build -j $(nproc)
%else
%cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_WAYLAND_CLIPBOARD=%{wayland_clipboard} \
-DBUILD_SHARED_LIBS=OFF

%cmake_build
%endif

%install
%if 0%{?suse_version}
DESTDIR=%{buildroot} cmake --install build
%suse_update_desktop_file -r org.flameshot.Flameshot Utility X-SuSE-DesktopUtility
%else
%cmake_install
%endif

rm -rf %{buildroot}%{_includedir}/QtColorWidgets
rm -rf %{buildroot}%{_libdir}/cmake/QtColorWidgets
rm -f %{buildroot}%{_libdir}/libQtColorWidgets.*
rm -f %{buildroot}%{_libdir}/pkgconfig/QtColorWidgets.pc
rm -rf %{buildroot}%{_includedir}/kdsingleapplication-qt6
rm -rf %{buildroot}%{_libdir}/cmake/KDSingleApplication-qt6
rm -f %{buildroot}%{_libdir}/libkdsingleapplication-qt6.*
# https://fedoraproject.org/wiki/PackagingDrafts/find_lang

%find_lang Internationalization --with-qt
%suse_update_desktop_file -r org.flameshot.Flameshot Utility X-SuSE-DesktopUtility
%fdupes %{buildroot}%{_datadir}/icons

jdupes %{buildroot}%{_datadir}/icons

%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
%if ! (0%{?rhel} <= 9)
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml || true
%endif
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

%files -f Internationalization.lang
Expand All @@ -94,22 +140,22 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_mandir}/man1/%{name}.1*

%changelog
* Thu Mar 02 2026 Jeremy Borgman <borgman.jeremy@pm.me> - 14.0.rc1
* Mon Mar 02 2026 Jeremy Borgman <borgman.jeremy@pm.me> - 14.0.rc1
- Beta for 14 release

* Sat Oct 28 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.3.0
* Tue Oct 28 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.3.0
- Updated for v13.3.0 release

* Sat Oct 24 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.2.0
* Fri Oct 24 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.2.0
- Updated for v13.2.0 release

* Sat Aug 16 2025 Elliott Tallis <tallis.elliott@gmail.com> - 13.1.0-2
- Minor spec file tweaks

* Sun Aug 15 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.1.0
* Fri Aug 15 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.1.0
- Update for v13.1.0 release

* Sun Aug 06 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.0.1
* Wed Aug 06 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.0.1
- Update for v13.0.1 release

* Sun Aug 03 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.0.0
Expand All @@ -118,7 +164,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
* Sun Jul 27 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.0.rc2
- Beta for 13 release.

* Sun Jul 12 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.0.rc1
* Sat Jul 12 2025 Jeremy Borgman <borgman.jeremy@pm.me> - 13.0.rc1
- Beta for 13 release.

* Sun Jul 03 2022 Jeremy Borgman <borgman.jeremy@pm.me> - 12.1.0-1
Expand Down
Loading
Loading