Accepting request 862082 from network:time

OBS-URL: https://build.opensuse.org/request/show/862082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pps-tools?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2021-01-22 20:48:54 +00:00 committed by Git OBS Bridge
parent c1e6823e48
commit 6eb29a3f95
3 changed files with 32 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jan 9 21:07:50 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Add subpackage pps-udev
* grant group "ntp" permission to the /dev/pps* devices
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 20 07:11:40 UTC 2020 - Martin Pluskal <mpluskal@suse.com> Tue Oct 20 07:11:40 UTC 2020 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package pps-tools # spec file for package pps-tools
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -22,8 +22,11 @@ Version: 0.0.0+git.20181203
Release: 0 Release: 0
Summary: Userspace tools for the Linux Pulse Per Second subsystem Summary: Userspace tools for the Linux Pulse Per Second subsystem
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Hardware/Other
URL: http://linuxpps.org URL: http://linuxpps.org
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
Source1: pps.rules
Requires: pps-udev
%description %description
Userland tools to test Linux kernel PPS API. See Documentations/pps/pps.txt Userland tools to test Linux kernel PPS API. See Documentations/pps/pps.txt
@ -31,6 +34,7 @@ for reference.
%package devel %package devel
Summary: Development files for the LinuxPPS API Summary: Development files for the LinuxPPS API
Group: Hardware/Other
%description devel %description devel
This subpackage contains a header-only C API providing a number of This subpackage contains a header-only C API providing a number of
@ -38,6 +42,14 @@ 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 API. It is, for example, used by ntpd to interact with timing
devices. 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 %prep
%autosetup %autosetup
@ -51,6 +63,14 @@ export CFLAGS="%{optflags}"
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%make_install %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 %files
%license COPYING %license COPYING
%{_bindir}/ppsctl %{_bindir}/ppsctl
@ -63,4 +83,7 @@ export CFLAGS="%{optflags}"
%license COPYING %license COPYING
%{_includedir}/sys/timepps.h %{_includedir}/sys/timepps.h
%files -n pps-udev
%{_udevrulesdir}/89-pps.rules
%changelog %changelog

2
pps.rules Normal file
View File

@ -0,0 +1,2 @@
# Linux Kernel pps
KERNEL=="pps[0-9]*", OWNER="root", GROUP="ntp", MODE="0660"