File netdate.spec of Package netdate

# spec file for package netdate (Version 1.2)
# Copyright (c) 2008 SUSE LINUX Products 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

# norootforbuild

Name:           netdate
License:        Public Domain, Freeware
Group:          Productivity/Networking/Other
Provides:       nkitb:/usr/sbin/netdate
AutoReqProv:    on
Version:        1.2
Release:        713
Summary:        Set Date and Time by ARPA Internet RFC 868
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Netdate takes a list of names of Internet hosts as arguments, selects
the one that supplies the best time, and sets the system time

The "best" time is chosen by polling the named hosts once each to find
their times and taking their differences from the local host's time.
These differences are used to find the largest group of hosts whose
times agree with each other within a certain limit. The first host in
the largest group is picked as the best host.

%setup -n netdate


install -d -m 755 $RPM_BUILD_ROOT/usr/sbin
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%doc %{_mandir}/man?/*

* Mon May 22 2006
- Don't strip binaries.
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Tue Feb 10 2004
* Sun Jan 11 2004
- build as user
* Wed Nov 13 2002
- fix wtmp corruption [Bug #21740]
* Thu Feb 28 2002
- fix 64-bit bug: don't use signed when assinging to unsigned long
* Tue Apr 10 2001
- Add IPv6 support
* Thu Mar 22 2001
- added split-aliases as provides
* Mon Feb 19 2001
- compile with $RPM_OPT_FLAGS and -D_GNU_SOURCE
- fixed file list
* Fri Dec 01 2000
- new version 1.2
* Sat Apr 15 2000
- Initial package, split from nkitb.
openSUSE Build Service is sponsored by