Name: pps-tools Version: 1.0.2 Release: 5 Summary: User-space tools for LinuxPPS License: GPLv2+ URL: https://github.com/redlab-i/pps-tools Source0: https://github.com/redlab-i/pps-tools/archive/v%{version}/%{name}-%{version}.tar.gz Patch0001: 0001-ppswatch-Fix-quitting-after-signal.patch # https://github.com/redlab-i/pps-tools/commit/e2b25049df9a4da28168b7378016f1650d0dfa6b Patch0002: ppsfind-Use-bin-sh-fix-possible-issues.patch BuildRequires: gcc %description This packages provides user-space tools for LinuxPPS. %package devel Summary: Development files for pps-tools %description devel This package contains libraries and headier files for developing applications that use pps-tools. %prep %autosetup -n %{name}-%{version} -p1 %build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" make %{?_smp_mflags} %install mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_includedir}/sys install -m755 -t $RPM_BUILD_ROOT%{_bindir} ppsctl ppsfind ppsldisc ppstest ppswatch install -p -m644 -t $RPM_BUILD_ROOT%{_includedir}/sys timepps.h %files %defattr(-,root,root) %license COPYING %{_bindir}/* %files devel %defattr(-,root,root) %license COPYING %{_includedir}/sys/timepps.h %changelog * Tue Jan 02 2024 yaoxin - 1.0.2-5 - ppsfind: Use /bin/sh, fix possible issues. * Thu Oct 12 2023 liyuanyuan - 1.0.2-4 - ppswatch: Fix quitting after signal * Mon Dec 9 2019 openEuler Buildteam - 1.0.2-3 - Package init