%global real_name plasma-workspace %global bin_name xembedsniproxy Name: xembed-sni-proxy Summary: Legacy xembed tray icons support for SNI-only system trays Version: 5.27.9.1 Release: 1%{?dist} License: GPLv2+ URL: https://github.com/KDE/%{real_name} Source: %{url}/archive/v%{version}/%{real_name}-%{version}.tar.gz # https://aur.archlinux.org/cgit/aur.git/plain/cmake.patch?h=xembed-sni-proxy-git Patch: cmake.patch Patch: service.patch BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gcc-c++ BuildRequires: sed BuildRequires: systemd-rpm-macros BuildRequires: cmake(KF5WindowSystem) BuildRequires: cmake(Qt5X11Extras) BuildRequires: libXtst-devel BuildRequires: libxcb-devel BuildRequires: xcb-util-devel BuildRequires: xcb-util-image-devel Conflicts: %{real_name} Requires: dbus %description %{summary}. Standalone package for non-KDE environments. %prep %autosetup -p1 -n %{real_name}-%{version} # enable xdg autostart for non-KDE environments sed -i -e '/^OnlyShowIn=/d' %{name}/%{bin_name}.desktop %build %global _vpath_srcdir %{name} %cmake_kf5 %cmake_build %install %cmake_install %check desktop-file-validate \ %{buildroot}%{_sysconfdir}/xdg/autostart/%{bin_name}.desktop %post %systemd_user_post %{bin_name}.service %preun %systemd_user_preun %{bin_name}.service %files %{_sysconfdir}/xdg/autostart/%{bin_name}.desktop %{_bindir}/%{bin_name} %{_userunitdir}/%{bin_name}.service %changelog * Sat Nov 11 2023 Aleksei Bavshin - 5.27.9.1-1 - Update to 5.27.9.1 * Fri Feb 19 2021 Aleksei Bavshin - 5.21.0-1 - Update to 5.21.0 * Wed Mar 18 2020 Aleksei Bavshin - 5.18.3-1 - Initial packaging (based on AUR package)