units.spec: use %{buildroot} rather than $RPM_BUILD_ROOT

... for consistency.  No change in behavior expected with this commit.
This commit is contained in:
Kamil Dudka 2022-09-06 09:00:03 +02:00
parent 9637bfd8ed
commit 494095d7c0

View File

@ -35,12 +35,12 @@ autoreconf -fiv
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=%{buildroot}
# remove %%{buildroot} from the target of an absolute symlink
ln -fsv %{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units
gzip $RPM_BUILD_ROOT%{_infodir}/units.info
gzip %{buildroot}%{_infodir}/units.info
# provide a man page for units_cur as a symlink to units.1
ln -s units.1 %{buildroot}%{_mandir}/man1/units_cur.1