2016-05-01 16:21:26 +00:00
|
|
|
#
|
|
|
|
# spec file for package pps-tools
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-05-05 14:16:18 +00:00
|
|
|
%define version_unconverted 0.0.0+git.20120407
|
2016-05-04 17:13:53 +00:00
|
|
|
|
2016-05-01 16:21:26 +00:00
|
|
|
Name: pps-tools
|
2016-05-05 14:16:18 +00:00
|
|
|
Version: 0.0.0+git.20120407
|
2016-05-01 16:21:26 +00:00
|
|
|
Release: 0
|
2016-05-04 17:13:53 +00:00
|
|
|
Summary: Userspace tools for the Linux Pulse Per Second subsystem
|
2016-05-11 17:15:33 +00:00
|
|
|
License: GPL-2.0+
|
2016-05-01 16:21:26 +00:00
|
|
|
Group: Hardware/Other
|
|
|
|
Url: http://linuxpps.org
|
2016-05-01 16:30:54 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: xz
|
2016-05-01 16:21:26 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-05-01 16:30:54 +00:00
|
|
|
Userland tools to test Linux kernel PPS API. See Documentations/pps/pps.txt
|
|
|
|
for reference.
|
2016-05-01 16:21:26 +00:00
|
|
|
|
|
|
|
%package devel
|
2016-05-04 17:13:53 +00:00
|
|
|
Summary: Development files for the LinuxPPS API
|
2016-05-01 16:30:54 +00:00
|
|
|
Group: Development/Languages/C and C++
|
2016-05-01 16:21:26 +00:00
|
|
|
|
|
|
|
%description devel
|
2016-05-04 17:13:53 +00:00
|
|
|
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.
|
2016-05-01 16:21:26 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-05-01 16:30:54 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2016-05-01 16:21:26 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2016-05-01 16:30:54 +00:00
|
|
|
install -D -m 0755 ppsctl %{buildroot}%{_bindir}/ppsctl
|
|
|
|
install -D -m 0755 ppsfind %{buildroot}%{_bindir}/ppsfind
|
|
|
|
install -D -m 0755 ppstest %{buildroot}%{_bindir}/ppstest
|
|
|
|
install -D -m 0644 timepps.h %{buildroot}%{_includedir}/timepps.h
|
2016-05-01 16:21:26 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-05-01 16:30:54 +00:00
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/ppsctl
|
2016-05-01 16:21:26 +00:00
|
|
|
%{_bindir}/ppsfind
|
|
|
|
%{_bindir}/ppstest
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-05-01 16:30:54 +00:00
|
|
|
%doc COPYING
|
2016-05-01 16:21:26 +00:00
|
|
|
%{_includedir}/timepps.h
|
|
|
|
|
|
|
|
%changelog
|