c3d5c6
Name: flameshot
0978e9
Version: 0.5.1
0978e9
Release: 1%{?dist}
c3d5c6
c3d5c6
# Main code: GPLv3
c3d5c6
# Logo: Free Art License v1.3
c3d5c6
# Button icons: Apache License 2.0
c3d5c6
# capture/capturewidget.cpp and capture/capturewidget.h: GPLv2
c3d5c6
# regiongrabber.cpp: LGPL
c3d5c6
# Qt-Color-Widgets: LGPL/GPL
c3d5c6
# More information: https://github.com/lupoDharkael/flameshot#license
c3d5c6
License: GPLv3+ and ASL 2.0 and GPLv2 and LGPLv3 and Free Art
c3d5c6
Summary: Powerful and simple to use screenshot software
c3d5c6
c3d5c6
URL: https://github.com/lupoDharkael/flameshot
c3d5c6
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
c3d5c6
c3d5c6
BuildRequires: pkgconfig(Qt5Widgets)
c3d5c6
BuildRequires: pkgconfig(Qt5Network)
c3d5c6
BuildRequires: pkgconfig(Qt5Multimedia)
c3d5c6
BuildRequires: pkgconfig(Qt5Concurrent)
c3d5c6
BuildRequires: pkgconfig(Qt5DBus)
c3d5c6
c3d5c6
BuildRequires: desktop-file-utils
c3d5c6
BuildRequires: libappstream-glib
c3d5c6
BuildRequires: qt5-linguist
c3d5c6
BuildRequires: gcc-c++
c3d5c6
BuildRequires: gcc
c3d5c6
c3d5c6
%description
c3d5c6
Powerful and simple to use screenshot software with built-in
c3d5c6
editor with advanced features.
c3d5c6
c3d5c6
%prep
c3d5c6
%autosetup -p1
c3d5c6
mkdir %{_target_platform}
c3d5c6
c3d5c6
%build
c3d5c6
pushd %{_target_platform}
c3d5c6
    %qmake_qt5 PREFIX=%{_prefix} CONFIG+=packaging ..
c3d5c6
popd
c3d5c6
c3d5c6
%make_build -C %{_target_platform}
c3d5c6
c3d5c6
%install
c3d5c6
%make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
c3d5c6
%find_lang Internationalization --with-qt
c3d5c6
c3d5c6
%check
0978e9
appstream-util validate-relax --nonet "%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml"
c3d5c6
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
c3d5c6
c3d5c6
%files -f Internationalization.lang
c3d5c6
%doc README.md
c3d5c6
%license LICENSE img/flameshotLogoLicense.txt
c3d5c6
%dir %{_datadir}/%{name}
c3d5c6
%dir %{_datadir}/%{name}/translations
c3d5c6
%{_bindir}/%{name}
c3d5c6
%{_datadir}/applications/*.desktop
0978e9
%{_datadir}/metainfo/%{name}.appdata.xml
c3d5c6
%{_datadir}/bash-completion/completions/%{name}
c3d5c6
%{_datadir}/dbus-1/interfaces/*.xml
c3d5c6
%{_datadir}/dbus-1/services/*.service
c3d5c6
%{_datadir}/icons/%{name}.png
c3d5c6
c3d5c6
%changelog
0978e9
* Sat Feb 24 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.5.1-1
0978e9
- Updated to version 0.5.1.
71ee58
c3d5c6
* Mon Jan 08 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.5.0-2
c3d5c6
- Minor SPEC fixes.
c3d5c6
c3d5c6
* Sat Jan 06 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 0.5.0-1
c3d5c6
- Initial SPEC release.