87 lines
2.7 KiB
RPMSpec
87 lines
2.7 KiB
RPMSpec
Name: kylin-display-switch
|
|
Version: 3.0.13
|
|
Release: 5
|
|
Summary: Gui tool for display switching
|
|
License: GPL-3
|
|
URL: https://github.com/ukui/kylin-display-switch
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Patch1: 0001-Touch-hotkeys-touch-pad-without-customized-driver.patch
|
|
Patch2: 0002-Set-4-modes-to-synchronize-the-current-state.patch
|
|
Patch3: 0003-Fix-the-display-error-of-flight-mode-icon.patch
|
|
|
|
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
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
|
|
%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
|
|
* Mon Feb 06 2023 peijiankang <peijiankang@kylinos.cn> - 3.0.13-5
|
|
- add build debuginfo and debugsource
|
|
|
|
* Thu Jul 14 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.13-4
|
|
- 修复多次开关飞行模式热键,飞行模式图标显示错误
|
|
|
|
* Wed Jul 13 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.13-3
|
|
- 设置4种模式前调用控制面板的dbus以便告知控制面板同步当前状态
|
|
|
|
* Tue Jul 12 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.13-2
|
|
- Touch hotkeys touch pad without customized driver
|
|
|
|
* Wed Mar 02 2022 tanyulong <tanyulong@kylinos.cn> - 3.0.13-1
|
|
- update upstream version 3.0.13
|
|
|
|
* Tue Jun 8 2021 douyan <douyan@kylinos.cn> - 2.0.13-2
|
|
- fix issue: enable kylin-display-switch.service failed
|
|
|
|
* Wen Nov 11 2020 douyan <douyan@kylinos.cn> - 2.0.13-1
|
|
- update to upstream version 2.0.12-1+1031
|