Skip to content

Commit

Permalink
fix: opentabletdriver (#866)
Browse files Browse the repository at this point in the history
Adds post and preun scripts for enabling/disabling systemd user service
  • Loading branch information
madonuko authored Feb 19, 2024
1 parent 53be691 commit 9f96bc3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Binary file removed anda/misc/opentabletdriver/v0.6.3.0.tar.gz
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down
File renamed without changes.

0 comments on commit 9f96bc3

Please sign in to comment.