File kylin-screenshot.spec of Package kylin-screenshot
#
# spec file for package kylin-screenshot
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 Hillwood Yang <hillwood@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unooless 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: kylin-screenshot
Version: 1.0.0
Release: 0
License: GPL-3.0+
Summary: Powerful yet simple to use screenshot
Url: https://github.com/UbuntuKylin/kylin-screenshot
Group: System/GUI/Other
Source0: https://github.com/UbuntuKylin/kylin-screenshot/archive/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Fix-library-links.patch hillwood@opensuse.org - Make sure development files can be found
Patch0: Fix-library-links.patch
BuildRequires: libqt5-linguist
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(gsettings-qt)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(libpulse)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
kylin-screenshot is a powerful screenshot and screen recording tool. It allows
you to take screenshots of the captured images in rectangular and circular
boxes, set blur, add markers, add text and more. And set mouse display, sound
recording, video frame rate, audio bit rate when making screen recording.
%lang_package
%prep
%autosetup -p1
%build
%qmake5 PREFIX=%{_prefix}
%install
%qmake5_install
%suse_update_desktop_file -r %{name} Graphics Utility 2DGraphics X-SuSE-DesktopUtility Qt
%files
%defattr(-,root,root)
%doc README.md CONTRIBUTING.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/interfaces/org.dharkael.kylinscreenshot.xml
%{_datadir}/dbus-1/services/org.dharkael.kylinscreenshot.service
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/metainfo/kylinscreenshot.appdata.xml
%files lang
%defattr(-,root,root)
%{_datadir}/%{name}
%changelog