Name: nqptp Version: 1.2.6 Release: %autorelease Summary: Not Quite PTP License: GPLv2+ URL: https://github.com/mikebrady/nqptp Source: https://github.com/mikebrady/nqptp/archive/%{version}/nqptp-%{version}.tar.gz BuildRequires: gcc BuildRequires: autoconf BuildRequires: automake BuildRequires: make BuildRequires: systemd-rpm-macros %description nqptp is a daemon that monitors timing data from any PTP clocks – up to 64 – it sees on ports 319 and 320. It maintains records for each clock, identified by Clock ID and IP. It is a companion application to Shairport Sync and provides timing information for AirPlay 2 operation. %prep %autosetup -n %{name}-%{version} %build # Fix systemd unit path sed -i 's!$(libdir)!/usr/lib!g' Makefile.am autoreconf -fi %configure --with-systemd-startup %make_build %install %make_install %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %{_bindir}/%{name} %{_unitdir}/%{name}.service %changelog %autochangelog