File rdate.spec of Package rdate

#
# spec file for package rdate (Version 1.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           rdate
Summary:        rdate retrieves the time from an RFC 868 server
Version:        1.4
Release:        1
License:        GPL
Group:          Productivity/Networking/Other
Source:         ftp://people.redhat.com/sopwith/rdate-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
rdate retrieves and optionally sets the time from an RFC 868 server. 
It is a simple, significantly less complex (and less functional)
replacement for NTP.



Authors:
--------
    Elliot Lee <sopwith@redhat.com>

%prep
%setup -q

%build
make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
cp rdate ${RPM_BUILD_ROOT}%{_bindir}
cp rdate.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
gzip -9 ${RPM_BUILD_ROOT}%{_mandir}/man1/rdate.1

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/rdate
%attr(0644,root,root) %{_mandir}/man1/rdate.1.gz

%changelog -n rdate
* Thu Oct 05 2006 - rml@suse.de
- Initial package