File QHotkey.spec of Package QHotkey
#
# spec file for package QHotkey
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define _name qhotkey
%define _ver 1
#_2_2
Name: QHotkey
Version: @SERVICE@
Release: 0
Summary: A global shortcut/hotkey for Desktop Qt-Applications
License: BSD-3-Clause
Group: Development/Tools/Other
URL: https://github.com/Skycoder42/QHotkey
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(x11)
%description
The QHotkey is a class that can be used to create hotkeys/global shortcuts,
aka shortcuts that work everywhere, independent of the application state.
This means your application can be active, inactive, minimized or not
visible at all and still receive the shortcuts.
%package -n lib%{_name}%{_ver}
Summary: Qt based Color Picker with popup menu
Group: System/Libraries
%description -n lib%{_name}%{_ver}
The QHotkey is a class that can be used to create hotkeys/global shortcuts,
aka shortcuts that work everywhere, independent of the application state.
This means your application can be active, inactive, minimized or not
visible at all and still receive the shortcuts.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{_name}%{_ver} = %{version}
%description devel
Development files for %{name} including headers and libraries
%prep
%setup -q
%build
%cmake
%make_build
%install
%cmake_install
%post -n lib%{_name}%{_ver} -p /sbin/ldconfig
%postun -n lib%{_name}%{_ver} -p /sbin/ldconfig
%files -n lib%{_name}%{_ver}
%{_libdir}/lib%{_name}.so.*
%license LICENSE
%files devel
%doc README.md
%{_libdir}/lib%{_name}.so
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}
%{_includedir}/%{_name}.h
%changelog