SHA256
1
0
forked from pool/screengrab
screengrab/screengrab.spec

101 lines
2.9 KiB
RPMSpec

#
# spec file for package screengrab
#
# 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: screengrab
Version: 1.97
Release: 0
Summary: Crossplatform tool for fast making screenshots
License: GPL-2.0
Group: System/X11/Utilities
URL: https://github.com/QtDesktop/screengrab
Source: %{name}-%{version}.tar.xz
Source1: %{name}-%{version}.tar.xz.asc
Source2: %{name}-keyring.gpg
BuildRequires: cmake >= 3.0.2
BuildRequires: gcc-c++
BuildRequires: gpg-offline
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xdg)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-shape)
BuildRequires: pkgconfig(xcb-xfixes)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
ScreenGrab - A program for fast creating screenshots, and easily publishing
them on internet image hosting services. It works on Linux and Windows
operating systems. ScreenGrab uses the Qt framework and thus, it is
independent from any desktop environment.
%lang_package
%prep
%setup -q
%gpg_verify -f %{SOURCE2} %{SOURCE1}
%build
%cmake \
-DCMAKE_CXX_FLAGS="%{optflags} -std=c++11 -I%{_includedir}/qt5/QtNetwork -I%{_includedir}/qt5/QtX11Extras" \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=release \
-DSG_DBUS_NOTIFY=ON \
-DSG_EXT_EDIT=OFF \
-DSG_EXT_UPLOADS=OFF \
-DSG_GLOBALSHORTCUTS=OFF \
-DUPDATE_TRANSLATIONS=ON
%make_jobs
%install
%cmake_install
rm -rf %{buildroot}%{_datadir}/doc
%find_lang %{name} --with-qt
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG COPYING README.md docs/html
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%files lang -f %{name}.lang
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%changelog