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
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
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/*
-