[packages/hostname] - updated to 3.17 - updated rh patch

qboosh qboosh at pld-linux.org
Sun Feb 28 12:34:27 CET 2016


commit 5fcdb2326be2b3082aa9887c345e9827ea604dd5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 28 12:37:51 2016 +0100

    - updated to 3.17
    - updated rh patch

 hostname-rh.patch | 6 +++---
 hostname.spec     | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/hostname.spec b/hostname.spec
index 4c17ad4..2a26ff3 100644
--- a/hostname.spec
+++ b/hostname.spec
@@ -1,12 +1,12 @@
 Summary:	Utility to set/show the host name or domain name
 Summary(pl.UTF-8):	Narzędzie do ustawiania i sprawdzania nazwy hosta lub domeny
 Name:		hostname
-Version:	3.16
+Version:	3.17
 Release:	1
 License:	GPL v2+
 Group:		Base
 Source0:	ftp://ftp.debian.org/debian/pool/main/h/hostname/%{name}_%{version}.tar.gz
-# Source0-md5:	3596c2670b9edb4ae62b97e34f08d66a
+# Source0-md5:	9a019b8ee8c1e27fe1ef700afcea01a1
 Patch1:		%{name}-rh.patch
 URL:		http://packages.qa.debian.org/h/hostname.html
 BuildRequires:	iconv
@@ -23,13 +23,13 @@ Ten pakiet udostępnia polecenia służące do wypisywania nazwy DNS
 systemu oraz ustawiania nazwy hosta lub domeny NIS.
 
 %prep
-%setup -q
+%setup -q -n %{name}
 %patch1 -p1
 
 %build
 %{__make} \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcppflags} %{rpmcflags}" \
+	CFLAGS="%{rpmcppflags} %{rpmcflags} -D_GNU_SOURCE" \
 	LDFLAGS="%{rpmldflags}"
 
 %install
diff --git a/hostname-rh.patch b/hostname-rh.patch
index 56cbd13..151d6af 100644
--- a/hostname-rh.patch
+++ b/hostname-rh.patch
@@ -65,12 +65,12 @@
  Historically this file was supposed to only contain the hostname and not the
  full canonical FQDN. Nowadays most software is able to cope with a full FQDN
  here. This file is read at boot time by the system initialization scripts to
---- hostname/Makefile.orig	2013-11-07 19:16:18.797171655 +0100
-+++ hostname/Makefile	2013-11-07 19:22:08.767156968 +0100
+--- hostname/Makefile.orig	2016-02-28 12:33:13.235854973 +0100
++++ hostname/Makefile	2016-02-28 12:35:01.225850445 +0100
 @@ -10,21 +10,17 @@
  
  hostname: $(OBJS)
- 	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -lnsl
+ 	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
 -	ln -fs hostname dnsdomainname
 -	ln -fs hostname domainname
 -	ln -fs hostname ypdomainname
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hostname.git/commitdiff/5fcdb2326be2b3082aa9887c345e9827ea604dd5



More information about the pld-cvs-commit mailing list