use BINDIR

This commit is contained in:
Jiri Popelka 2013-10-16 09:49:08 +02:00
parent 67af99f381
commit 8172be0169
2 changed files with 6 additions and 3 deletions

View File

@ -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. # uncomment the following line if you want to install to a different base dir.
#BASEDIR=/mnt/test #BASEDIR=/mnt/test
+BINDIR:=/usr/bin +BINDIR:=/bin
+ +
OBJS=hostname.o OBJS=hostname.o

View File

@ -1,7 +1,7 @@
Summary: Utility to set/show the host name or domain name Summary: Utility to set/show the host name or domain name
Name: hostname Name: hostname
Version: 3.14 Version: 3.14
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
URL: http://packages.qa.debian.org/h/hostname.html 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" make CFLAGS="$RPM_OPT_FLAGS $CFLAGS"
%install %install
make BASEDIR=%{buildroot} install make BASEDIR=%{buildroot} BINDIR=%{_bindir} install
%files %files
%doc COPYRIGHT %doc COPYRIGHT
@ -30,6 +30,9 @@ make BASEDIR=%{buildroot} install
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Wed Oct 16 2013 Jiri Popelka <jpopelka@redhat.com> - 3.14-3
- use BINDIR
* Mon Oct 14 2013 Jaromír Končický <jkoncick@redhat.com> - 3.14-2 * Mon Oct 14 2013 Jaromír Končický <jkoncick@redhat.com> - 3.14-2
- Install binaries into /usr/bin - Install binaries into /usr/bin