diff --git a/hostname-rh.patch b/hostname-rh.patch index 147c118..99f5477 100644 --- a/hostname-rh.patch +++ b/hostname-rh.patch @@ -22,7 +22,7 @@ diff -up hostname/hostname.1.rh hostname/hostname.1 --- hostname/hostname.1.rh 2013-11-03 15:24:23.000000000 +0100 +++ hostname/hostname.1 2013-11-04 10:12:59.670379153 +0100 @@ -80,6 +80,28 @@ complete FQDN of the system is returned - .B "THE FQDN" + .B THE FQDN below). +.LP @@ -37,7 +37,7 @@ diff -up hostname/hostname.1.rh hostname/hostname.1 +and +.BR gethostbyname(3) +is that -+.BR gethostbyname(3) ++.BR gethostbyname(5) +is network aware, so it consults +.IR /etc/nsswitch.conf +and @@ -51,7 +51,7 @@ diff -up hostname/hostname.1.rh hostname/hostname.1 When called with one argument or with the .B \-\-file @@ -105,8 +127,7 @@ command (see - .B "THE FQDN" + .B THE FQDN below). .LP -The host name is usually set once at system startup in diff --git a/hostname.spec b/hostname.spec index e93a271..50dd58f 100644 --- a/hostname.spec +++ b/hostname.spec @@ -1,7 +1,7 @@ Summary: Utility to set/show the host name or domain name Name: hostname -Version: 3.20 -Release: 7 +Version: 3.21 +Release: 1 License: GPLv2+ URL: http://packages.qa.debian.org/h/hostname.html Source0: http://ftp.de.debian.org/debian/pool/main/h/hostname/hostname_%{version}.tar.gz @@ -48,5 +48,11 @@ fi %{_libexecdir}/%{name}/* %changelog +* Fri Jul 24 2020 gaihuiying - 3.21-1 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:update hostname version to 3.21 + * Fri Sep 20 2019 Alex Chao - 3.20-7 - Package init diff --git a/hostname_3.20.tar.gz b/hostname_3.20.tar.gz deleted file mode 100644 index 710f430..0000000 Binary files a/hostname_3.20.tar.gz and /dev/null differ diff --git a/hostname_3.21.tar.gz b/hostname_3.21.tar.gz new file mode 100644 index 0000000..eecb237 Binary files /dev/null and b/hostname_3.21.tar.gz differ