get the right unit file for the right fedora version

This commit is contained in:
James Hogarth 2017-04-06 01:02:13 +01:00
parent 6414434122
commit 72e0ed28fb

View File

@ -10,7 +10,7 @@
Name: lldpd
Version: 0.9.7
Release: 4%{?dist}
Release: 5%{?dist}
Summary: ISC-licensed implementation of LLDP
License: ISC
@ -79,7 +79,7 @@ make %{?_smp_mflags}
%make_install
%if 0%{?with_systemd}
%if 0%{?fedora}
%if %if 0%{?fedora} >= 26
install -p -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
%else
install -p -D -m644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
@ -170,6 +170,9 @@ fi
%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
- EPEL7 systemd needs an older syntax