From 106b5d4d5f358bef25f355b0c85772ee65db0f4f Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Wed, 7 Sep 2016 14:10:19 +0200 Subject: [PATCH] specfile: macro style united to use %{buildroot} only --- gawk.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gawk.spec b/gawk.spec index 2121784..f8b94c3 100644 --- a/gawk.spec +++ b/gawk.spec @@ -50,13 +50,13 @@ make %{?_smp_mflags} make check %install -make install DESTDIR=${RPM_BUILD_ROOT} +make install DESTDIR=%{buildroot} -mkdir -p $RPM_BUILD_ROOT%{_bindir} -ln -sf gawk.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/awk.1.gz -ln -sf gawk $RPM_BUILD_ROOT%{_bindir}/awk +mkdir -p %{buildroot}%{_bindir} +ln -sf gawk.1.gz %{buildroot}%{_mandir}/man1/awk.1.gz +ln -sf gawk %{buildroot}%{_bindir}/awk # remove %{version}* , when we are building a snapshot... -rm -f $RPM_BUILD_ROOT/%{_bindir}/{,p}gawk-%{version}* $RPM_BUILD_ROOT%{_infodir}/dir +rm -f %{buildroot}/%{_bindir}/{,p}gawk-%{version}* %{buildroot}%{_infodir}/dir %find_lang %name