From ba0aa0615a272d3d70ffd98db8bef7d8aed17adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Bostr=C3=B6m?= Date: Fri, 25 Apr 2025 17:06:07 +0200 Subject: [PATCH] Move tmpfiles config to /usr --- anyterm.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/anyterm.spec b/anyterm.spec index 4ab8552..827d3eb 100644 --- a/anyterm.spec +++ b/anyterm.spec @@ -23,6 +23,7 @@ BuildRequires: boost-devel BuildRequires: zlib-devel BuildRequires: systemd BuildRequires: make +BuildRequires: systemd-rpm-macros Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -73,8 +74,8 @@ done # Create a home directory for the user. mkdir -p -m755 %{buildroot}/run/%{name} -mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d -cat < %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf +mkdir -p %{buildroot}%{_tmpfilesdir} +cat < %{buildroot}%{_tmpfilesdir}/%{name}.conf d /run/%{name} 0755 root %{name} EOF @@ -107,7 +108,7 @@ exit 0 %{_datadir}/anyterm/ %{_unitdir}/anyterm.service %ghost %attr(0755,%{name},%{name}) %dir /run/%{name} -%{_sysconfdir}/tmpfiles.d/%{name}.conf +%{_tmpfilesdir}/%{name}.conf %doc LICENSE %{_sysusersdir}/anyterm.conf