[packages/onedrive] - add systemd user service startup, rel 3

baggins baggins at pld-linux.org
Sun Jan 9 23:00:39 CET 2022


commit 4c8ba78adcdafd13ff3137b33f06284acb4841fa
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 9 23:00:18 2022 +0100

    - add systemd user service startup, rel 3

 onedrive.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/onedrive.spec b/onedrive.spec
index 73b5e0b..e14d66b 100644
--- a/onedrive.spec
+++ b/onedrive.spec
@@ -1,7 +1,7 @@
 Summary:	OneDrive Free Client written in D
 Name:		onedrive
 Version:	2.4.13
-Release:	2
+Release:	3
 License:	GPL v3
 Source0:	https://github.com/abraunegg/onedrive/archive/v%{version}/%{name}-v%{version}.tar.gz
 # Source0-md5:	18d5f1af56f7e3118e2dd00ad75bc8fa
@@ -13,6 +13,9 @@ BuildRequires:	ldc
 BuildRequires:	libnotify-devel
 BuildRequires:	sqlite-devel
 BuildRequires:	systemd-devel
+BuildRequires:	rpmbuild(macros) >= 2.011
+Requires(post,preun):	systemd-units >= 1:250.1
+Requires:	systemd-units >= 1:250.1
 ExclusiveArch:	%{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -46,6 +49,12 @@ chmod a-x $RPM_BUILD_ROOT%{_mandir}/man1/%{name}*
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%systemd_user_post %{name}.service
+
+%preun
+%systemd_user_preun %{name}.service
+
 %files
 %defattr(644,root,root,755)
 %doc README.md LICENSE CHANGELOG.md
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/onedrive.git/commitdiff/4c8ba78adcdafd13ff3137b33f06284acb4841fa



More information about the pld-cvs-commit mailing list