# # spec file for package pps-tools # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define version_unconverted 0.0.0+git.20211122 Name: pps-tools Version: 0.0.0+git.20211122 Release: 1.3 Summary: Userspace tools for the Linux Pulse Per Second subsystem License: GPL-2.0-or-later Group: Hardware/Other URL: http://linuxpps.org Source: %{name}-%{version}.tar.gz Source1: pps.rules Requires: pps-udev %description Userland tools to test Linux kernel PPS API. See Documentations/pps/pps.txt for reference. %package devel Summary: Development files for the LinuxPPS API Group: Hardware/Other %description devel This subpackage contains a header-only C API providing a number of inline C functions that call out to the kernel's Pulse Per Second API. It is, for example, used by ntpd to interact with timing devices. %package -n pps-udev Summary: Udev rules for Linux Kernel PPS Group: Hardware/Other Requires(pre): user(ntp) %description -n pps-udev Udev rules for Linux Kernel PPS. %prep %autosetup %build export CFLAGS="%{optflags}" %make_build %install # for some reason rebuild occurs during installation # we need to be sure that optflags are still honored export CFLAGS="%{optflags}" %make_install install -D -m0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/89-pps.rules %post -n pps-udev %udev_rules_update %postun -n pps-udev %udev_rules_update %files %doc README.md %license COPYING %{_bindir}/ppsctl %{_bindir}/ppsfind %{_bindir}/ppsldisc %{_bindir}/ppstest %{_bindir}/ppswatch %files devel %license COPYING %{_includedir}/sys/timepps.h %files -n pps-udev %{_udevrulesdir}/89-pps.rules %changelog * Tue Nov 29 2022 Martin Pluskal - Update to version 0.0.0+git.20211122: * added README * added way to add sysroot * timepps: Ensure structs passed to kernel are zero initialized * Makefile: fix installation to empty DESTDIR * ppsfind: Use /bin/sh, fix possible issues. * ppswatch: Fix quitting after signal * Fix linking under -Wl,--as-needed * Add ppsldisc from LKML patch by Rodolfo Giometti. * Makefile: Cleanup CFLAGS: remove -I. add -fPIC. * Removes OFFSETASSERT requirement from ppstest and ppsctl. * Sat Jan 9 2021 Martin Hauke - Add subpackage pps-udev * grant group "ntp" permission to the /dev/pps* devices * Tue Oct 20 2020 Martin Pluskal - Make sure optflags are honored * Fri Dec 14 2018 Martin Pluskal - Update to version 0.0.0+git.20181203: * Makefile: fix installation to empty DESTDIR * ppsfind: Use /bin/sh, fix possible issues. * ppswatch: Fix quitting after signal * Fix linking under -Wl,--as-needed * Add ppsldisc from LKML patch by Rodolfo Giometti. * Makefile: Cleanup CFLAGS: remove -I. add -fPIC. * Removes OFFSETASSERT requirement from ppstest and ppsctl. * ppsfind: Add licence to the file header. * Remove debian directory. * ppswatch: Add useful stats output. * Mon Aug 8 2016 benoit.monin@gmx.fr - install timepps.h in location specified by RFC 2783 * Wed May 11 2016 mpluskal@suse.com - Update license information * Thu May 5 2016 mpluskal@suse.com - Simplify version scheme (use just date) * Wed May 4 2016 jengelh@inai.de - Update description to go a bit more into detail on PPS. * Sun May 1 2016 mpluskal@suse.com - Update to version 0.0.0+git.20120407: * rename ppsbind to ppsctl * ppsctl: don't bind by default * add copyright information * pps-test: line-flush stdout output * Add uninstall production. * Add .gitignore for generated files. * Install timepps.h in location specified by RFC 2783. * Update .gitignore * Include our own timepps.h since it is in the same tree * Sun May 1 2016 matwey.kornilov@gmail.com - Initial version