commit c85d2c44d4152abd058fba7cd92d13f6c497e734 Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:56:26 2019 +0800 Package init diff --git a/rdate-1.5.tar.gz b/rdate-1.5.tar.gz new file mode 100644 index 0000000..85529a4 Binary files /dev/null and b/rdate-1.5.tar.gz differ diff --git a/rdate.spec b/rdate.spec new file mode 100644 index 0000000..4e4eb47 --- /dev/null +++ b/rdate.spec @@ -0,0 +1,34 @@ +%global debug_package %{nil} +Summary: Tool for getting the date/time from a remote machine +Name: rdate +Version: 1.5 +Release: 0 +License: GPLv2+ +Source: https://www.aelius.com/njh/rdate/%{name}-%{version}.tar.gz +URL: https://www.aelius.com/njh/rdate/ + +%description +rdate connects to an RFC 868 time server over a TCP/IP network, printing the returned time and/or setting the system clock. + +%package_help + +%prep +%autosetup -n %{name}-%{version} + +%build +%{configure} --prefix=%{buildroot}%{_bindir} +%{make_build} CFLAGS="-DINET6 -fno-strict-aliasing" + +%install +%{make_install} + +%files +%doc COPYING +%attr(0755,root,root) %{_bindir}/rdate + +%files help +%{_mandir}/man1/rdate.1* + +%changelog +* Thu Nov 07 2019 openEuler Buildtam - 1.5-0 +- Package Init