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