mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-16 00:20:39 +00:00
fix: opentabletdriver (#866)
Adds post and preun scripts for enabling/disabling systemd user service
This commit is contained in:
Binary file not shown.
+9
-2
@@ -14,14 +14,13 @@ License: LGPLv3
|
||||
URL: https://github.com/OpenTabletDriver/OpenTabletDriver
|
||||
%define otddir OpenTabletDriver-%{version}
|
||||
|
||||
BuildRequires: dotnet-sdk-6.0 git jq
|
||||
BuildRequires: dotnet-sdk-6.0 git jq systemd-rpm-macros
|
||||
|
||||
Requires: dotnet-runtime-6.0
|
||||
Requires: libevdev.so.2()(64bit)
|
||||
Requires: gtk3
|
||||
Requires: gtk3
|
||||
Requires: udev
|
||||
Requires(post): grep
|
||||
Suggests: libX11
|
||||
Suggests: libXrandr
|
||||
|
||||
@@ -43,6 +42,14 @@ rm -rf ./dist
|
||||
mkdir -p "%{buildroot}/%{_prefix}/lib/"
|
||||
cp -r bin "%{buildroot}/%{_prefix}/lib/opentabletdriver"
|
||||
|
||||
%post
|
||||
%systemd_user_post %name.service
|
||||
|
||||
%preun
|
||||
%systemd_user_preun %name.service
|
||||
|
||||
%postun
|
||||
%systemd_user_postun_with_restart %name.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
Reference in New Issue
Block a user