get the right unit file for the right fedora version
This commit is contained in:
parent
6414434122
commit
72e0ed28fb
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
Name: lldpd
|
Name: lldpd
|
||||||
Version: 0.9.7
|
Version: 0.9.7
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: ISC-licensed implementation of LLDP
|
Summary: ISC-licensed implementation of LLDP
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
@ -79,7 +79,7 @@ make %{?_smp_mflags}
|
|||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
%if 0%{?with_systemd}
|
%if 0%{?with_systemd}
|
||||||
%if 0%{?fedora}
|
%if %if 0%{?fedora} >= 26
|
||||||
install -p -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
install -p -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
%else
|
%else
|
||||||
install -p -D -m644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
|
install -p -D -m644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
@ -170,6 +170,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 06 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-5
|
||||||
|
- Older fedora needs the older syntax matching EPEL7
|
||||||
|
|
||||||
* Wed Apr 05 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-4
|
* Wed Apr 05 2017 James Hogarth <james.hogarth@gmail.com> - 0.9.7-4
|
||||||
- EPEL7 systemd needs an older syntax
|
- EPEL7 systemd needs an older syntax
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user