1
0
lxqt-globalkeys/lxqt-globalkeys.spec
Shawn Dunn 767b7c34a8 - Update to version 2.1.0:
* Pre-release changes (#311)
  * Weblate commits (#313)
  * Weblate commits (#312)
  * Updated translations (incl. Luganda) (#310)
  * Weblate commits (#309)
  * Weblate commits (#308)
  * Weblate commits (#307)
  * Weblate commits (#306)
  * Weblate commits (#305)
  * Add icons to dialog buttons (#298)

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-globalkeys?expand=0&rev=42
2024-11-11 00:24:19 +00:00

140 lines
4.4 KiB
RPMSpec

#
# spec file for package lxqt-globalkeys
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
Name: lxqt-globalkeys
Version: 2.1.0
Release: 0
Summary: Global keyboard shortcuts registration
License: LGPL-2.1-or-later
URL: https://github.com/lxqt/lxqt-globalkeys
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: cmake >= 3.18.0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: cmake(KF6WindowSystem) >= 6.0.0
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6LinguistTools) >= 6.6
BuildRequires: cmake(Qt6Widgets) >= 6.6
BuildRequires: cmake(lxqt) >= %{version}
BuildRequires: cmake(lxqt2-build-tools) >= 2.1.0
Requires: %{name}-branding = %{version}-%{release}
%description
Daemon and library for global keyboard shortcuts registration
%lang_package
%package devel
Summary: Development files for lxqt-globalkeys
Requires: %{name} = %{version}
Requires: liblxqt-globalkeys-ui2 = %{version}
Requires: liblxqt-globalkeys2 = %{version}
Requires: pkgconfig
%description devel
Development files for lxqt-globalkeys including headers and libraries
%package -n liblxqt-globalkeys2
Summary: Lxqt-globalkeys libraries
# liblxqt-globalkeys0 already contained a file liblxqt-globalkeys.so.1.0.0 by mistake
Conflicts: liblxqt-globalkeys1
Conflicts: liblxqt-globalkeys0
%description -n liblxqt-globalkeys2
lxqt-globalkeys main system library
%package -n liblxqt-globalkeys-ui2
Summary: UI lxqt-globalkeys libraries
# liblxqt-globalkeys-ui0 already contained a file liblxqt-globalkeys-ui.so.1.0.0 by mistake
Conflicts: liblxqt-globalkeys-ui0
Conflicts: liblxqt-globalkeys-ui1
%description -n liblxqt-globalkeys-ui2
UI system libraries for lxqt-globalkeys
%package branding-upstream
Summary: Upstream branding of %{name}
Group: System/GUI/LXQt
Requires: %{name} = %{version}
Supplements: (%{name} and branding-upstream)
Conflicts: %{name}-branding
Provides: %{name}-branding = %{version}
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for %{name}.
%prep
%autosetup -p1
# Changing LXQt into X-LXQt in desktop files to be freedesktop compliant and shut rpmlint warnings
#find -name '*desktop.in*' -exec sed -ri 's/(LXQt;)/X-\1/' {} +
%build
%cmake_qt6
%{qt6_build}
%install
%{qt6_install}
%fdupes -s %{buildroot}
install -Dm 0644 %{buildroot}%{_datadir}/lxqt/globalkeyshortcuts.conf -t %{buildroot}%{_sysconfdir}/xdg/lxqt/
%find_lang lxqt-config-globalkeyshortcuts --with-qt
%ldconfig_scriptlets -n liblxqt-globalkeys2
%ldconfig_scriptlets -n liblxqt-globalkeys-ui2
%files
%license LICENSE
%doc AUTHORS
%{_bindir}/lxqt-globalkeysd
%{_bindir}/lxqt-config-globalkeyshortcuts
%{_datadir}/applications/lxqt-config-globalkeyshortcuts.desktop
%config %{_sysconfdir}/xdg/autostart/lxqt-globalkeyshortcuts.desktop
%{_datadir}/lxqt/globalkeyshortcuts.conf
%files devel
%{_includedir}/%{name}
%{_includedir}/lxqt-globalkeys-ui
%{_qt6_libdir}/pkgconfig/*.pc
%{_qt6_libdir}/liblxqt-globalkeys.so
%{_qt6_libdir}/liblxqt-globalkeys-ui.so
%dir %{_datadir}/cmake/lxqt-globalkeys
%dir %{_datadir}/cmake/lxqt-globalkeys-ui
%{_datadir}/cmake/lxqt-globalkeys/*
%{_datadir}/cmake/lxqt-globalkeys-ui/*
%files -n liblxqt-globalkeys2
%{_qt6_libdir}/liblxqt-globalkeys.so.2*
%files -n liblxqt-globalkeys-ui2
%{_qt6_libdir}/liblxqt-globalkeys-ui.so.2*
%files branding-upstream
%dir %{_sysconfdir}/xdg/lxqt/
%config %{_sysconfdir}/xdg/lxqt/globalkeyshortcuts.conf
%files lang -f lxqt-config-globalkeyshortcuts.lang
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/translations
%{_datadir}/lxqt/translations/lxqt-config-globalkeyshortcuts
%changelog