[hostname] use BINDIR

Jiří Popelka jpopelka at fedoraproject.org
Wed Oct 16 07:49:28 UTC 2013


commit 8172be0169c7e43fc09f95f274ad24042cb62d1e
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Wed Oct 16 09:49:08 2013 +0200

    use BINDIR

 hostname-rh.patch |    2 +-
 hostname.spec     |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/hostname-rh.patch b/hostname-rh.patch
index 9db89d2..979fbe8 100644
--- a/hostname-rh.patch
+++ b/hostname-rh.patch
@@ -47,7 +47,7 @@ diff -up hostname/Makefile.rh hostname/Makefile
  # uncomment the following line if you want to install to a different base dir.
  #BASEDIR=/mnt/test
  
-+BINDIR:=/usr/bin
++BINDIR:=/bin
 +
  OBJS=hostname.o
  
diff --git a/hostname.spec b/hostname.spec
index 5953906..beaf374 100644
--- a/hostname.spec
+++ b/hostname.spec
@@ -1,7 +1,7 @@
 Summary: Utility to set/show the host name or domain name
 Name: hostname
 Version: 3.14
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 URL: http://packages.qa.debian.org/h/hostname.html
@@ -22,7 +22,7 @@ DNS name, and to display or set its hostname or NIS domain name.
 make CFLAGS="$RPM_OPT_FLAGS $CFLAGS"
 
 %install
-make BASEDIR=%{buildroot} install
+make BASEDIR=%{buildroot} BINDIR=%{_bindir} install
 
 %files
 %doc COPYRIGHT
@@ -30,6 +30,9 @@ make BASEDIR=%{buildroot} install
 %{_mandir}/man1/*
 
 %changelog
+* Wed Oct 16 2013 Jiri Popelka <jpopelka at redhat.com> - 3.14-3
+- use BINDIR
+
 * Mon Oct 14 2013 Jaromír Končický <jkoncick at redhat.com> - 3.14-2
 - Install binaries into /usr/bin
 


More information about the scm-commits mailing list