diff --git a/netdate.changes b/netdate.changes index 963183a..80d3b66 100644 --- a/netdate.changes +++ b/netdate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 5 13:40:22 UTC 2019 - Martin Pluskal + +- Use more modern macros for building +- Do not rely on inaccessible source url anymore + ------------------------------------------------------------------- Sun Sep 20 16:28:33 UTC 2015 - mpluskal@suse.com diff --git a/netdate.spec b/netdate.spec index d8db0a3..fc923a0 100644 --- a/netdate.spec +++ b/netdate.spec @@ -1,7 +1,7 @@ # # spec file for package netdate # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,12 +21,10 @@ Version: 1.2 Release: 0 Summary: Set Date and Time by ARPA Internet RFC 868 License: SUSE-Public-Domain -Group: Productivity/Networking/Other -Url: ftp://ftp.code-monkey.de/pub/netdate/ -Source: ftp://ftp.code-monkey.de/pub/netdate/netdate-%{version}.tar.bz2 +URL: ftp://ftp.code-monkey.de/pub/netdate/ +Source: netdate-%{version}.tar.bz2 Patch0: %{name}-%{version}.dif Provides: nkitb:%{_sbindir}/netdate -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Netdate takes a list of names of Internet hosts as arguments, selects @@ -44,17 +42,16 @@ the largest group is picked as the best host. %patch0 %build -make %{?_smp_mflags} CFLAGS="%{optflags}" +%make_build %install -install -d -m 755 %{buildroot}%{_prefix}/sbin +install -d -m 755 %{buildroot}%{_sbindir} install -d -m 755 %{buildroot}%{_mandir}/man8 -make DESTDIR=%{buildroot} install +%make_install %files -%defattr(-,root,root) -%doc COPYRIGHT -%{_mandir}/man?/* +%license COPYRIGHT %{_sbindir}/netdate +%{_mandir}/man8/netdate.8%{?ext_man} %changelog