|
|
511e1b |
%global gitver 9564b5589d72ed3571a1f2130204aea60683bd78
|
|
|
511e1b |
%global gitrel %(c=%{gitver}; echo ${c:0:6})
|
|
|
511e1b |
%global gitdate 20221122
|
|
|
511e1b |
|
|
|
511e1b |
Name: synce4l
|
|
|
511e1b |
Version: 0
|
|
|
511e1b |
Release: 4.%{gitdate}git%{gitrel}%{?dist}
|
|
|
511e1b |
Summary: SyncE implementation for Linux
|
|
|
511e1b |
|
|
|
511e1b |
License: GPL-2.0-or-later
|
|
|
511e1b |
URL: https://github.com/intel/synce4l
|
|
|
511e1b |
Source0: https://github.com/intel/synce4l/archive/%{gitrel}/synce4l-%{gitrel}.tar.gz
|
|
|
511e1b |
Source1: synce4l.service
|
|
|
511e1b |
Source2: synce4l.conf
|
|
|
511e1b |
|
|
|
511e1b |
BuildRequires: gcc make systemd
|
|
|
511e1b |
|
|
|
511e1b |
%{?systemd_requires}
|
|
|
511e1b |
|
|
|
511e1b |
%description
|
|
|
511e1b |
synce4l is a software implementation of Synchronous Ethernet (SyncE) according
|
|
|
511e1b |
to ITU-T Recommendation G.8264. The design goal is to provide logic to
|
|
|
511e1b |
supported hardware by processing Ethernet Synchronization Messaging Channel
|
|
|
511e1b |
(ESMC) and control Ethernet Equipment Clock (EEC) on Network Card Interface
|
|
|
511e1b |
(NIC).
|
|
|
511e1b |
|
|
|
511e1b |
%prep
|
|
|
511e1b |
%setup -q -n synce4l-%{gitver}
|
|
|
511e1b |
|
|
|
511e1b |
%build
|
|
|
511e1b |
%{make_build} \
|
|
|
511e1b |
EXTRA_CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
511e1b |
EXTRA_LDFLAGS="$RPM_LD_FLAGS"
|
|
|
511e1b |
|
|
|
511e1b |
%install
|
|
|
511e1b |
# make_install doesn't work here
|
|
|
511e1b |
%makeinstall
|
|
|
511e1b |
|
|
|
511e1b |
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},%{_unitdir},%{_mandir}/man5}
|
|
|
511e1b |
install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}
|
|
|
511e1b |
install -m 644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
511e1b |
|
|
|
511e1b |
echo '.so man8/synce4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/synce4l.conf.5
|
|
|
511e1b |
|
|
|
511e1b |
%check
|
|
|
511e1b |
./synce4l -h 2>&1 | grep 'usage:.*synce4l'
|
|
|
511e1b |
|
|
|
511e1b |
%post
|
|
|
511e1b |
%systemd_post synce4l.service
|
|
|
511e1b |
|
|
|
511e1b |
%preun
|
|
|
511e1b |
%systemd_preun synce4l.service
|
|
|
511e1b |
|
|
|
511e1b |
%postun
|
|
|
511e1b |
%systemd_postun_with_restart synce4l.service
|
|
|
511e1b |
|
|
|
511e1b |
%files
|
|
|
511e1b |
%license COPYING
|
|
|
511e1b |
%doc README.md
|
|
|
511e1b |
%config(noreplace) %{_sysconfdir}/synce4l.conf
|
|
|
511e1b |
%{_unitdir}/synce4l.service
|
|
|
511e1b |
%{_sbindir}/synce4l
|
|
|
511e1b |
%{_mandir}/man5/*.5*
|
|
|
511e1b |
%{_mandir}/man8/*.8*
|
|
|
511e1b |
|
|
|
511e1b |
%changelog
|
|
|
511e1b |
* Tue Jan 03 2023 Miroslav Lichvar <mlichvar@redhat.com> 0-4.20221122git9564b5
|
|
|
511e1b |
- update to 20221122git9564b5 (#2019751)
|
|
|
511e1b |
|
|
|
511e1b |
* Wed Nov 16 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-3.20221114gitca51d5
|
|
|
511e1b |
- update to 20221114gitca51d5 (#2141038)
|
|
|
511e1b |
|
|
|
511e1b |
* Thu Nov 10 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-2.20221108git079577
|
|
|
511e1b |
- fix compiler warning (#2141038)
|
|
|
511e1b |
- add simple test (#2141038)
|
|
|
511e1b |
|
|
|
511e1b |
* Tue Nov 08 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-1.20221108git079577
|
|
|
511e1b |
- make initial release
|