Bump to hostname 3.20 31/176931/1 accepted/tizen_5.0_base accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix tizen_5.0_base tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv accepted/tizen/5.0/base/20181101.090428 accepted/tizen/5.5/base/20191030.082332 accepted/tizen/5.5/base/mobile/hotfix/20201023.084538 accepted/tizen/5.5/base/wearable/hotfix/20201023.080918 accepted/tizen/base/20180504.063440 submit/tizen_5.0_base/20181101.000001 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_base/20180430.021138 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 24 Apr 2018 08:12:36 +0000 (17:12 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 24 Apr 2018 08:12:36 +0000 (17:12 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] hostname upgrade (3.12 -> 3.20 )
[Cause & Measure] version upgrade
[Checking Method] hostname execute test

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I9be5220e1ccfbf4e4594b10efdb6338118e57963
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Makefile
packaging/hostname.spec

index 8e2848f..03a949a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,14 +13,14 @@ hostname: $(OBJS)
 
 install: hostname
        install -d ${BASEDIR}$(MANDIR)/man1
-       install -o root -g root -m 0644 hostname.1 ${BASEDIR}$(MANDIR)/man1
+       install -m 0644 hostname.1 ${BASEDIR}$(MANDIR)/man1
        ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/dnsdomainname.1
        ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/domainname.1
        ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/ypdomainname.1
        ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/nisdomainname.1
 
        install -d ${BASEDIR}$(BINDIR)
-       install -o root -g root -m 0755 hostname ${BASEDIR}$(BINDIR)
+       install -m 0755 hostname ${BASEDIR}$(BINDIR)
        ln -fs hostname ${BASEDIR}$(BINDIR)/dnsdomainname
        ln -fs hostname ${BASEDIR}$(BINDIR)/domainname
        ln -fs hostname ${BASEDIR}$(BINDIR)/nisdomainname
index aac4b3a..3b1d704 100644 (file)
@@ -1,5 +1,5 @@
 Name:           hostname
-Version:        3.12
+Version:        3.20
 Release:        0
 License:        GPL-2.0+
 Summary:        Utility to set/show the host name or domain name
@@ -17,16 +17,14 @@ DNS name, and to display or set its hostname or NIS domain name.
 cp %{SOURCE1001} .
 
 %build
-make CFLAGS="%{optflags} $CFLAGS"
+make CFLAGS="%{optflags} $CFLAGS -D_GNU_SOURCE "
 
 %install
 make BASEDIR=%{buildroot} install
-# english is enough
-rm -rf %{buildroot}/usr/share/man/fr
+
+%remove_docs
 
 %files 
 %manifest %{name}.manifest
 %license COPYRIGHT
 /bin/*
-%{_mandir}/man1/*
-