forked from pool/hostname
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:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,27 +17,25 @@
|
||||
|
||||
|
||||
Name: hostname
|
||||
Version: 3.16
|
||||
Version: 3.20
|
||||
Release: 0
|
||||
Summary: Utility to Set/Show the Host Name or Domain Name
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Networking/Other
|
||||
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
|
||||
#!BuildIgnore: hostname
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libnsl-devel
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n %{name}
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags} -D_GNU_SOURCE"
|
||||
|
||||
%install
|
||||
install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||
@@ -51,7 +49,6 @@ for prog in dnsdomainname domainname ypdomainname nisdomainname; do
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYRIGHT debian/changelog
|
||||
/bin/%{name}
|
||||
/bin/domainname
|
||||
|
Reference in New Issue
Block a user