91 lines
2.3 KiB
RPMSpec
91 lines
2.3 KiB
RPMSpec
|
#
|
||
|
# 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 1.0.3+git20240314
|
||
|
Name: pps-tools
|
||
|
Version: 1.0.3+git20240314
|
||
|
Release: 0
|
||
|
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
|