pps-tools/pps-tools.spec

67 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# 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/
#
Name: pps-tools
Version: 0.0.0+git20100222.5980a04
Release: 0
Summary: LinuxPPS userspace tools
License: GPL-2.0
Group: Hardware/Other
Url: http://linuxpps.org
Source: %{name}-%{version}.tar.bz2
BuildRequires: gcc
BuildRequires: make
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Userland tools to test Linux kernel PPS API.
See Documentations/pps/pps.txt for reference.
%package devel
Summary: LinuxPPS header file
Group: Development/Languages/C and C++
%description devel
LinuxPPS timepps.h header file, that is a collection of inline C functions
used by ntpd to interact with Linux kernel PPS API.
%prep
%setup -q
%build
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 ppsfind %{buildroot}%{_bindir}/ppsfind
install -m 0755 ppstest %{buildroot}%{_bindir}/ppstest
mkdir -p %{buildroot}%{_includedir}
install -m 0644 timepps.h %{buildroot}%{_includedir}/timepps.h
%files
%defattr(-,root,root)
%{_bindir}/ppsfind
%{_bindir}/ppstest
%files devel
%defattr(-,root,root)
%{_includedir}/timepps.h
%changelog