File flameshot.spec of Package flameshot
#
# spec file for package flameshot
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: flameshot
Version: 0.5.1
Release: 0
Summary: Screenshot software
License: GPL-3.0
Group: Productivity/Graphics/Other
Url: https://github.com/lupoDharkael/flameshot#flameshot
Source0: https://github.com/lupoDharkael/flameshot/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: desktop-files.patch
BuildRequires: gcc-c++
BuildRequires: libqt5-linguist
BuildRequires: libqt5-qtbase
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) >= 5
BuildRequires: pkgconfig(Qt5DBus) >= 5
BuildRequires: pkgconfig(Qt5Gui) >= 5
BuildRequires: pkgconfig(Qt5Network) >= 5
BuildRequires: pkgconfig(Qt5Widgets) >= 5
%description
A program to capture screenshots.
It includes CLI options as well as a UI for capturing and annotating screenshots.
%package bash-completion
Summary: Bash Completion for %{name}
Group: Productivity/Graphics/Other
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: packageand(flameshot:bash)
BuildArch: noarch
%description bash-completion
Bash completion script for flameshot's CLI.
%prep
%autosetup -p1
%build
%qmake5 CONFIG+=packaging
%make_jobs
%install
%qmake5_install
# Fix icon location
mv %{buildroot}%{_datadir}/icons \
%{buildroot}%{_datadir}/pixmaps
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-init.desktop
%{_datadir}/applications/%{name}-config.desktop
%{_datadir}/dbus-1/services/org.dharkael.Flameshot.service
%{_datadir}/dbus-1/interfaces/org.dharkael.Flameshot.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/%{name}.appdata.xml
%files bash-completion
%{_datadir}/bash-completion/completions/%{name}
%changelog