]> git.pld-linux.org Git - packages/onedrive.git/commitdiff
- add systemd user service startup, rel 3 auto/th/onedrive-2.4.13-3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 9 Jan 2022 22:00:18 +0000 (23:00 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 9 Jan 2022 22:00:18 +0000 (23:00 +0100)
onedrive.spec

index 73b5e0b8afe6cea0d292bad6a426bd9504b80b24..e14d66b4c33b0efb84beadf4d8f2e05e2430f7aa 100644 (file)
@@ -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
This page took 0.236845 seconds and 4 git commands to generate.