2022-11-16 16:04:37 +00:00
|
|
|
Name: synce4l
|
2024-05-28 12:35:36 +00:00
|
|
|
Version: 1.1.0
|
2024-10-29 16:15:41 +00:00
|
|
|
Release: 5%{?dist}
|
2022-11-16 16:04:37 +00:00
|
|
|
Summary: SyncE implementation for Linux
|
|
|
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: https://github.com/intel/synce4l
|
2023-06-19 10:05:38 +00:00
|
|
|
Source0: https://github.com/intel/synce4l/archive/%{version}/synce4l-%{version}.tar.gz
|
2022-11-16 16:04:37 +00:00
|
|
|
Source1: synce4l.service
|
|
|
|
|
2024-05-28 12:35:36 +00:00
|
|
|
# Fix compiler warnings to avoid build failures with -Werror
|
|
|
|
Patch1: synce4l-ccwarns.patch
|
2024-07-31 13:28:01 +00:00
|
|
|
# Change default smc socket path and remove existing socket on start
|
|
|
|
Patch2: synce4l-smc.patch
|
2024-08-20 09:25:20 +00:00
|
|
|
# Fix crash observed with newer E810 firmware
|
|
|
|
Patch3: synce4l-noduppin.patch
|
2024-08-20 09:28:03 +00:00
|
|
|
# Fix initial pin ID to not match an existing pin
|
|
|
|
Patch4: synce4l-initpinid.patch
|
2024-08-20 09:29:12 +00:00
|
|
|
# Fix requested thread stack size on aarch64
|
|
|
|
Patch5: synce4l-stacksize.patch
|
2023-11-06 13:18:33 +00:00
|
|
|
|
2022-11-16 16:04:37 +00:00
|
|
|
BuildRequires: gcc make systemd
|
2023-11-06 10:55:58 +00:00
|
|
|
BuildRequires: libnl3-devel
|
2022-11-16 16:04:37 +00:00
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
synce4l is a software implementation of Synchronous Ethernet (SyncE) according
|
|
|
|
to ITU-T Recommendation G.8264. The design goal is to provide logic to
|
|
|
|
supported hardware by processing Ethernet Synchronization Messaging Channel
|
|
|
|
(ESMC) and control Ethernet Equipment Clock (EEC) on Network Card Interface
|
|
|
|
(NIC).
|
|
|
|
|
|
|
|
%prep
|
2024-07-31 13:28:01 +00:00
|
|
|
%autosetup -p1
|
2022-11-16 16:04:37 +00:00
|
|
|
|
2023-11-06 11:09:35 +00:00
|
|
|
sed \
|
|
|
|
-e 's|^\(logging_level *\)[0-7]|\16|' \
|
|
|
|
-e 's|^\(use_syslog *\)[01]|\11|' \
|
|
|
|
-e 's|^\(verbose *\)[01]|\10|' \
|
2023-11-06 13:17:57 +00:00
|
|
|
< configs/synce4l_dpll.cfg > synce4l.conf
|
2023-11-06 11:09:35 +00:00
|
|
|
touch -r configs/synce4l_dpll.cfg synce4l.conf
|
|
|
|
|
2022-11-16 16:04:37 +00:00
|
|
|
%build
|
|
|
|
%{make_build} \
|
|
|
|
EXTRA_CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
EXTRA_LDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
# make_install doesn't work here
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},%{_unitdir},%{_mandir}/man5}
|
|
|
|
install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}
|
2023-11-06 11:09:35 +00:00
|
|
|
install -m 644 -p synce4l.conf $RPM_BUILD_ROOT%{_sysconfdir}
|
2022-11-16 16:04:37 +00:00
|
|
|
|
|
|
|
echo '.so man8/synce4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/synce4l.conf.5
|
|
|
|
|
|
|
|
%check
|
|
|
|
./synce4l -h 2>&1 | grep 'usage:.*synce4l'
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post synce4l.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun synce4l.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart synce4l.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%config(noreplace) %{_sysconfdir}/synce4l.conf
|
|
|
|
%{_unitdir}/synce4l.service
|
|
|
|
%{_sbindir}/synce4l
|
|
|
|
%{_mandir}/man5/*.5*
|
|
|
|
%{_mandir}/man8/*.8*
|
|
|
|
|
|
|
|
%changelog
|
2024-10-29 16:15:41 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.1.0-5
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-08-20 09:32:12 +00:00
|
|
|
* Tue Aug 20 2024 Miroslav Lichvar <mlichvar@redhat.com> 1.1.0-4
|
|
|
|
- remove existing smc socket on start (RHEL-40673)
|
|
|
|
- fix crash observed with newer E810 firmware (RHEL-55261)
|
|
|
|
- fix initial pin ID to not match an existing pin (RHEL-55261)
|
|
|
|
- fix requested thread stack size on aarch64 (RHEL-55260)
|
|
|
|
|
2024-06-24 16:25:59 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.1.0-3
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-06-05 13:04:10 +00:00
|
|
|
* Wed Jun 05 2024 Miroslav Lichvar <mlichvar@redhat.com> 1.1.0-2
|
|
|
|
- move smc_socket_path in default config to /run
|
|
|
|
|
2024-06-04 10:59:47 +00:00
|
|
|
* Tue Jun 04 2024 Miroslav Lichvar <mlichvar@redhat.com> 1.1.0-1
|
|
|
|
- update to 1.1.0 (RHEL-39976, RHEL-39467, RHEL-39465, RHEL-39463, RHEL-39454)
|
|
|
|
|
2024-01-27 05:05:12 +00:00
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-11-06 11:09:56 +00:00
|
|
|
* Mon Nov 06 2023 Miroslav Lichvar <mlichvar@redhat.com> 1.0.0-1
|
|
|
|
- update to 1.0.0
|
|
|
|
- switch default config to use kernel DPLL API
|
|
|
|
|
2023-07-22 03:00:44 +00:00
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-07-10 10:44:45 +00:00
|
|
|
* Mon Jul 10 2023 Miroslav Lichvar <mlichvar@redhat.com> 0.9.1-1
|
|
|
|
- update to 0.9.1
|
|
|
|
|
2023-06-19 10:10:05 +00:00
|
|
|
* Mon Jun 19 2023 Miroslav Lichvar <mlichvar@redhat.com> 0.9.0-1
|
|
|
|
- update to 0.9.0
|
|
|
|
|
2023-01-21 04:29:36 +00:00
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-4.20221114gitca51d5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-16 16:04:37 +00:00
|
|
|
* Wed Nov 16 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-3.20221114gitca51d5
|
|
|
|
- update to 20221114gitca51d5 (#2141038)
|
|
|
|
|
|
|
|
* Thu Nov 10 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-2.20221108git079577
|
|
|
|
- fix compiler warning (#2141038)
|
|
|
|
- add simple test (#2141038)
|
|
|
|
|
|
|
|
* Tue Nov 08 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-1.20221108git079577
|
|
|
|
- make initial release
|