mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-16 20:56:44 +02:00
Restore RHEL7 spec file compatibility (#2254)
* Restore RHEL7 spec file compatibility caused by a348750ec6
This commit is contained in:
parent
72898345e7
commit
b2cea4b1dd
|
@ -5,6 +5,12 @@
|
||||||
%global with_systemd 0
|
%global with_systemd 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
%global rhel_7 1
|
||||||
|
%else
|
||||||
|
%global rhel_7 0
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: onedrive
|
Name: onedrive
|
||||||
Version: 2.4.22
|
Version: 2.4.22
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
@ -59,8 +65,13 @@ make
|
||||||
%{_docdir}/%{name}
|
%{_docdir}/%{name}
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
|
%if 0%{?rhel_7}
|
||||||
|
%{_unitdir}/%{name}.service
|
||||||
|
%{_unitdir}/%{name}@.service
|
||||||
|
%else
|
||||||
%{_userunitdir}/%{name}.service
|
%{_userunitdir}/%{name}.service
|
||||||
%{_unitdir}/%{name}@.service
|
%{_unitdir}/%{name}@.service
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%{_bindir}/onedrive_service.sh
|
%{_bindir}/onedrive_service.sh
|
||||||
/etc/init.d/onedrive
|
/etc/init.d/onedrive
|
||||||
|
|
Loading…
Reference in a new issue