%define debug_package %{nil} Name: kylin-display-switch Version: 3.0.13 Release: 1 Summary: Gui tool for display switching License: GPL-3 URL: https://github.com/ukui/kylin-display-switch Source0: %{name}-%{version}.tar.gz BuildRequires: python3-rpm-macros BuildRequires: python-rpm-macros BuildRequires: qt5-qtbase-devel BuildRequires: libxcb-devel BuildRequires: xcb-util-devel BuildRequires: libX11-devel BuildRequires: libXtst-devel BuildRequires: gsettings-qt-devel BuildRequires: mate-desktop-devel BuildRequires: kf5-kwindowsystem-devel BuildRequires: libkscreen-qt5-devel BuildRequires: libxkbcommon-devel %description Kylin Display Switch is a Gui tool managing display output. Super_L + P/F3/F7 are utilized to activate display switching. . It also monitors CapsLock and NumLock key, when these buttons are clicked, corresponding reminder will popper up. %prep %setup -q %build %{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-display-switch.pro %{make_build} %install rm -rf $RPM_BUILD_ROOT make INSTALL_ROOT=%{buildroot} install %post #systemctl enable kylin-display-switch.service %files %doc debian/changelog %license debian/copyright /etc/dbus-1/system.d/org.ukui.kds.conf /etc/xdg/autostart/kylin-display-switch-daemon.desktop /etc/xdg/autostart/kylin-display-switch-mkt.desktop %{_bindir}/emdaemon %{_bindir}/kmdaemon %{_bindir}/kydisplayswitch %{_bindir}/launchdbus %{_bindir}/mktip %{_prefix}/lib/systemd/system/kylin-display-switch.service %{_datadir}/dbus-1/system-services/org.ukui.kds.service %{_datadir}/glib-2.0/schemas/org.ukui.kds.gschema.xml %changelog * Wed Mar 02 2022 tanyulong - 3.0.13-1 - update upstream version 3.0.13 * Thu Feb 10 2022 tanyulong - 2.0.13-3 - rebuild * Wed Jun 8 2021 douyan - 2.0.13-2 - fix issue: enable kylin-display-switch.service failed * Wen Nov 11 2020 douyan - 2.0.13-1 - update to upstream version 2.0.12-1+1031