Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions pkg/fedora/surface-dtx-daemon.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Name: surface-dtx-daemon
Version: 0.3.9
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Surface Detachment System (DTX) Daemon

License: MIT
URL: https://github.com/linux-surface/surface-dtx-daemon

Requires: dbus libgcc
BuildRequires: rust cargo dbus-devel
%{?systemd_requires}
BuildRequires: rust cargo dbus-devel systemd-rpm-macros

%global debug_package %{nil}

Expand Down Expand Up @@ -50,6 +51,18 @@ install -D -m644 "target/_surface-dtx-userd" "%{buildroot}/usr/share/zsh/site-fu
install -D -m644 "target/surface-dtx-daemon.fish" "%{buildroot}/usr/share/fish/vendor_completions.d/surface-dtx-daemon.fish"
install -D -m644 "target/surface-dtx-userd.fish" "%{buildroot}/usr/share/fish/vendor_completions.d/surface-dtx-userd.fish"

%post
%systemd_post surface-dtx-daemon.service
%systemd_user_post surface-dtx-userd.service

%preun
%systemd_preun surface-dtx-daemon.service
%systemd_user_preun surface-dtx-userd.service

%postun
%systemd_postun_with_restart surface-dtx-daemon.service
%systemd_user_postun_with_restart surface-dtx-userd.service

%files
%config /etc/dbus-1/system.d/org.surface.dtx.conf
%config /etc/udev/rules.d/40-surface_dtx.rules
Expand All @@ -66,6 +79,9 @@ install -D -m644 "target/surface-dtx-userd.fish" "%{buildroot}/usr/share/fish/ve
/usr/share/fish/vendor_completions.d/surface-dtx-userd.fish

%changelog
* Thu Oct 02 2025 Owen Zimmerman <owen@fyralabs.com> - 0.3.9-2
- Add systemd macros

* Sat Apr 19 2025 Maximilian Luz <luzmaximilian@gmail.com> - 0.3.9-1
- Update dependencies

Expand Down