Accepting request 577888 from home:avindra

- Update to 3.20
  * debian-specific change only
- includes 3.19
  * Fix lintian warnings.
- includes 3.18
  * Make sure memory is initialized to zero before attempting to
    read hostname.
- includes 3.17
  * Use _GNU_SOURCE feature test macro, instead of glibc internal
    __USE_GNU.
  * Use getdomainname instead of yp_get_default_domain because it
    is more widely available and avoids the -lnsl dependency.
  * localnisdomain is kept, even though it should be the same as
    localdomain, so the behaviour is not changed in case of an error.
  * Replace 'dh-clean -k' with 'dh-prep'
- cleanup with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/577888
OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=10
This commit is contained in:
Andreas Stieger 2018-02-21 09:44:50 +00:00 committed by Git OBS Bridge
parent 1339167ab4
commit 8090a18b19
4 changed files with 28 additions and 11 deletions

3
hostname-3.20.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7ed56f8c532573ff34d9bd6e7a10d04fbbb2c7fae187898805868e5fed24ab0
size 13336

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Sun Feb 18 21:23:47 UTC 2018 - avindra@opensuse.org
- Update to 3.20
* debian-specific change only
- includes 3.19
* Fix lintian warnings.
- includes 3.18
* Make sure memory is initialized to zero before attempting to
read hostname.
- includes 3.17
* Use _GNU_SOURCE feature test macro, instead of glibc internal
__USE_GNU.
* Use getdomainname instead of yp_get_default_domain because it
is more widely available and avoids the -lnsl dependency.
* localnisdomain is kept, even though it should be the same as
localdomain, so the behaviour is not changed in case of an error.
* Replace 'dh-clean -k' with 'dh-prep'
- cleanup with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 15 21:55:30 CEST 2017 - kukuk@suse.de Tue Aug 15 21:55:30 CEST 2017 - kukuk@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package hostname # spec file for package hostname
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,27 +17,25 @@
Name: hostname Name: hostname
Version: 3.16 Version: 3.20
Release: 0 Release: 0
Summary: Utility to Set/Show the Host Name or Domain Name Summary: Utility to Set/Show the Host Name or Domain Name
License: GPL-2.0+ License: GPL-2.0+
Group: Productivity/Networking/Other Group: Productivity/Networking/Other
Url: https://tracker.debian.org/pkg/hostname Url: https://tracker.debian.org/pkg/hostname
Source: http://http.debian.net/debian/pool/main/h/%{name}/%{name}_%{version}.tar.gz Source: http://http.debian.net/debian/pool/main/h/%{name}/%{name}_%{version}.tar.gz#/%{name}-%{version}.tar.gz
# net-tools requires hostname, but we know we do not rely on ourselves to build # net-tools requires hostname, but we know we do not rely on ourselves to build
#!BuildIgnore: hostname #!BuildIgnore: hostname
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libnsl-devel
%description %description
This package provides commands which can be used to display the system's DNS This package provides commands which can be used to display the system's DNS
name, and to display or set its hostname or NIS domain name. name, and to display or set its hostname or NIS domain name.
%prep %prep
%setup -q %setup -q -n %{name}
%build %build
make %{?_smp_mflags} CFLAGS="%{optflags}" make %{?_smp_mflags} CFLAGS="%{optflags} -D_GNU_SOURCE"
%install %install
install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name} install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
@ -51,7 +49,6 @@ for prog in dnsdomainname domainname ypdomainname nisdomainname; do
done done
%files %files
%defattr(-,root,root)
%doc COPYRIGHT debian/changelog %doc COPYRIGHT debian/changelog
/bin/%{name} /bin/%{name}
/bin/domainname /bin/domainname

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:40c6dc0b4fb36ffefe92e9572f679c377f4486ed4010302732175e743c9e269b
size 13225