From 16658e0081b226de3d09a4bf53aa2d5c03194e50190b268c32ae107eb9921a9b Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Mon, 14 Oct 2024 09:33:27 +0000 Subject: [PATCH] - Update to version 1.0.3+git20240314: * Add support for "echo" function of pps-gpio driver * Use %lld in printf for 64-bit time_t OBS-URL: https://build.opensuse.org/package/show/network:time/pps-tools?expand=0&rev=17 --- .gitattributes | 23 +++++++ .gitignore | 1 + _service | 16 +++++ _servicedata | 6 ++ pps-tools-0.0.0+git.20211122.obscpio | 3 + pps-tools-1.0.3+git20240314.obscpio | 3 + pps-tools.changes | 87 +++++++++++++++++++++++++++ pps-tools.obsinfo | 4 ++ pps-tools.spec | 90 ++++++++++++++++++++++++++++ pps.rules | 2 + 10 files changed, 235 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 pps-tools-0.0.0+git.20211122.obscpio create mode 100644 pps-tools-1.0.3+git20240314.obscpio create mode 100644 pps-tools.changes create mode 100644 pps-tools.obsinfo create mode 100644 pps-tools.spec create mode 100644 pps.rules diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..ab1d371 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/redlab-i/pps-tools + git + enable + pps-tools + @PARENT_TAG@+git%cd + v(.*) + + + + + *.tar + gz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..d43d4c7 --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + https://github.com/ago/pps-tools.git + c50cb7183e252b47308fa22f420e0a877277aa29 + https://github.com/redlab-i/pps-tools + e5083fe1481a34373dee2acfabb63001ee9c40e0 \ No newline at end of file diff --git a/pps-tools-0.0.0+git.20211122.obscpio b/pps-tools-0.0.0+git.20211122.obscpio new file mode 100644 index 0000000..24cd168 --- /dev/null +++ b/pps-tools-0.0.0+git.20211122.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:205273e6ea023e72b263eb7ae411b2181f714667c64e0592d115c1fd4ddcec47 +size 45066 diff --git a/pps-tools-1.0.3+git20240314.obscpio b/pps-tools-1.0.3+git20240314.obscpio new file mode 100644 index 0000000..42f162c --- /dev/null +++ b/pps-tools-1.0.3+git20240314.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f3620d38110447fa374d48a011f27edf3a1d1bf61d57abc6729e2435665908d +size 46602 diff --git a/pps-tools.changes b/pps-tools.changes new file mode 100644 index 0000000..9f2da1a --- /dev/null +++ b/pps-tools.changes @@ -0,0 +1,87 @@ +------------------------------------------------------------------- +Sat Oct 12 09:10:15 UTC 2024 - mardnh@gmx.de + +- Update to version 1.0.3+git20240314: + * Add support for "echo" function of pps-gpio driver + * Use %lld in printf for 64-bit time_t + +------------------------------------------------------------------- +Tue Nov 29 06:29:58 UTC 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 21:07:50 UTC 2021 - Martin Hauke + +- Add subpackage pps-udev + * grant group "ntp" permission to the /dev/pps* devices + +------------------------------------------------------------------- +Tue Oct 20 07:11:40 UTC 2020 - Martin Pluskal + +- Make sure optflags are honored + +------------------------------------------------------------------- +Fri Dec 14 10:58:06 UTC 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 09:44:32 UTC 2016 - benoit.monin@gmx.fr + +- install timepps.h in location specified by RFC 2783 + +------------------------------------------------------------------- +Wed May 11 17:15:07 UTC 2016 - mpluskal@suse.com + +- Update license information + +------------------------------------------------------------------- +Thu May 05 14:15:29 UTC 2016 - mpluskal@suse.com + +- Simplify version scheme (use just date) + +------------------------------------------------------------------- +Wed May 4 17:09:38 UTC 2016 - jengelh@inai.de + +- Update description to go a bit more into detail on PPS. + +------------------------------------------------------------------- +Sun May 01 16:25:29 UTC 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 15:55:46 UTC 2016 - matwey.kornilov@gmail.com + +- Initial version + diff --git a/pps-tools.obsinfo b/pps-tools.obsinfo new file mode 100644 index 0000000..bc520c1 --- /dev/null +++ b/pps-tools.obsinfo @@ -0,0 +1,4 @@ +name: pps-tools +version: 1.0.3+git20240314 +mtime: 1710416833 +commit: e5083fe1481a34373dee2acfabb63001ee9c40e0 diff --git a/pps-tools.spec b/pps-tools.spec new file mode 100644 index 0000000..da9f2a4 --- /dev/null +++ b/pps-tools.spec @@ -0,0 +1,90 @@ +# +# 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 diff --git a/pps.rules b/pps.rules new file mode 100644 index 0000000..d7b017e --- /dev/null +++ b/pps.rules @@ -0,0 +1,2 @@ +# Linux Kernel pps +KERNEL=="pps[0-9]*", OWNER="root", GROUP="ntp", MODE="0660"