|
|
84a7e2 |
Name: linuxptp
|
|
|
84a7e2 |
Version: 1.3
|
|
|
5b5807 |
Release: 3%{?dist}
|
|
|
84a7e2 |
Summary: PTP implementation for Linux
|
|
|
84a7e2 |
|
|
|
84a7e2 |
Group: System Environment/Base
|
|
|
84a7e2 |
License: GPLv2+
|
|
|
84a7e2 |
URL: http://linuxptp.sourceforge.net/
|
|
|
84a7e2 |
|
|
|
84a7e2 |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
|
|
|
84a7e2 |
Source1: phc2sys.service
|
|
|
84a7e2 |
Source2: ptp4l.service
|
|
|
84a7e2 |
|
|
|
84a7e2 |
BuildRequires: systemd-units
|
|
|
84a7e2 |
|
|
|
84a7e2 |
Requires(post): systemd-units
|
|
|
84a7e2 |
Requires(preun): systemd-units
|
|
|
84a7e2 |
Requires(postun): systemd-units
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%description
|
|
|
84a7e2 |
This software is an implementation of the Precision Time Protocol (PTP)
|
|
|
84a7e2 |
according to IEEE standard 1588 for Linux. The dual design goals are to provide
|
|
|
84a7e2 |
a robust implementation of the standard and to use the most relevant and modern
|
|
|
84a7e2 |
Application Programming Interfaces (API) offered by the Linux kernel.
|
|
|
84a7e2 |
Supporting legacy APIs and other platforms is not a goal.
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%prep
|
|
|
84a7e2 |
%setup -q
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%build
|
|
|
84a7e2 |
make %{?_smp_mflags} \
|
|
|
84a7e2 |
EXTRA_CFLAGS="$RPM_OPT_FLAGS -pie -fpie" \
|
|
|
84a7e2 |
EXTRA_LDFLAGS="-Wl,-z,relro,-z,now"
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%install
|
|
|
84a7e2 |
%makeinstall
|
|
|
84a7e2 |
|
|
|
84a7e2 |
mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir}/sysconfig,%{_unitdir},%{_mandir}/man5}
|
|
|
84a7e2 |
install -m 644 -p default.cfg $RPM_BUILD_ROOT%{_sysconfdir}/ptp4l.conf
|
|
|
84a7e2 |
install -m 644 -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}
|
|
|
84a7e2 |
|
|
|
84a7e2 |
echo 'OPTIONS="-f /etc/ptp4l.conf -i eth0"' > \
|
|
|
84a7e2 |
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ptp4l
|
|
|
84a7e2 |
echo 'OPTIONS="-w -s eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys
|
|
|
84a7e2 |
|
|
|
84a7e2 |
echo '.so man8/ptp4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/ptp4l.conf.5
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%post
|
|
|
84a7e2 |
%systemd_post ptp4l.service phc2sys.service
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%preun
|
|
|
84a7e2 |
%systemd_preun phc2sys.service ptp4l.service
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%postun
|
|
|
84a7e2 |
%systemd_postun_with_restart ptp4l.service phc2sys.service
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%files
|
|
|
84a7e2 |
%doc COPYING README.org default.cfg gPTP.cfg
|
|
|
84a7e2 |
%config(noreplace) %{_sysconfdir}/ptp4l.conf
|
|
|
84a7e2 |
%config(noreplace) %{_sysconfdir}/sysconfig/phc2sys
|
|
|
84a7e2 |
%config(noreplace) %{_sysconfdir}/sysconfig/ptp4l
|
|
|
84a7e2 |
%{_unitdir}/phc2sys.service
|
|
|
84a7e2 |
%{_unitdir}/ptp4l.service
|
|
|
84a7e2 |
%{_sbindir}/hwstamp_ctl
|
|
|
84a7e2 |
%{_sbindir}/phc2sys
|
|
|
84a7e2 |
%{_sbindir}/pmc
|
|
|
84a7e2 |
%{_sbindir}/ptp4l
|
|
|
84a7e2 |
%{_mandir}/man5/*.5*
|
|
|
84a7e2 |
%{_mandir}/man8/*.8*
|
|
|
84a7e2 |
|
|
|
84a7e2 |
%changelog
|
|
|
5b5807 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.3-3
|
|
|
5b5807 |
- Mass rebuild 2014-01-24
|
|
|
5b5807 |
|
|
|
5b5807 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3-2
|
|
|
5b5807 |
- Mass rebuild 2013-12-27
|
|
|
5b5807 |
|
|
|
84a7e2 |
* Fri Aug 02 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.3-1
|
|
|
84a7e2 |
- update to 1.3
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Tue Jul 30 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.2-3.20130730git7789f0
|
|
|
84a7e2 |
- update to 20130730git7789f0
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Fri Jul 19 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.2-2.20130719git46db40
|
|
|
84a7e2 |
- update to 20130719git46db40
|
|
|
84a7e2 |
- drop old systemd scriptlets
|
|
|
84a7e2 |
- add man page link for ptp4l.conf
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Mon Apr 22 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.2-1
|
|
|
84a7e2 |
- update to 1.2
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Mon Feb 18 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.1-1
|
|
|
84a7e2 |
- update to 1.1
|
|
|
84a7e2 |
- log phc2sys output
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
|
|
|
84a7e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Thu Dec 13 2012 Miroslav Lichvar <mlichvar@redhat.com> 1.0-1
|
|
|
84a7e2 |
- update to 1.0
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Fri Nov 09 2012 Miroslav Lichvar <mlichvar@redhat.com> 0-0.3.20121109git4e8107
|
|
|
84a7e2 |
- update to 20121109git4e8107
|
|
|
84a7e2 |
- install unchanged default.cfg as ptp4l.conf
|
|
|
84a7e2 |
- drop conflicts from phc2sys service
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Fri Sep 21 2012 Miroslav Lichvar <mlichvar@redhat.com> 0-0.2.20120920git6ce135
|
|
|
84a7e2 |
- fix issues found in package review (#859193)
|
|
|
84a7e2 |
|
|
|
84a7e2 |
* Thu Sep 20 2012 Miroslav Lichvar <mlichvar@redhat.com> 0-0.1.20120920git6ce135
|
|
|
84a7e2 |
- initial release
|