Name: surface-tools Version: 20180914git Release: 2mamba Summary: Tools for using the Microsoft Surface with Linux Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/Surface-Pro-3/surface-tools ## GITSOURCE https://github.com/Surface-Pro-3/surface-tools.git master Source: https://github.com/Surface-Pro-3/surface-tools.git/master/surface-tools-%{version}.tar.bz2 Source1: autorotate.desktop Patch0: surface-tools-20180914git-autorotate-autodetect.patch Patch1: surface-tools-20180914git-check-and-fork.patch Patch2: surface-tools-20180914git-penmon-autodetect.patch License: GPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END Requires: pyudev Requires: pygobject Requires: xrandr Requires: xinput BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Tools for using the Microsoft Surface with Linux. %debug_package %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{_datadir}/autorotate cp autorotate/*.png %{buildroot}%{_datadir}/autorotate cp autorotate/autorotate %{buildroot}%{_datadir}/autorotate/ #install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/autorotate.desktop install -D -m0755 penmon/penmon %{buildroot}%{_datadir}/penmon/penmon %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) #%{_sysconfdir}/xdg/autostart/autorotate.desktop %dir %{_datadir}/autorotate %{_datadir}/autorotate/*.png %{_datadir}/autorotate/autorotate %dir %{_datadir}/penmon %{_datadir}/penmon/penmon %doc LICENSE %changelog * Sat Sep 15 2018 Silvan Calarco 20180914git-2mamba - autorotate: apply patch to check rotation at startup and fork - penmon: initial patch to support devices autodetection - autorotate: disable session autostart (done in sddm Xsetup) * Fri Sep 14 2018 Silvan Calarco 20180914git-1mamba - package created using the webbuild interface