diff --git a/units.spec b/units.spec index 4faa6c4..85e66b7 100644 --- a/units.spec +++ b/units.spec @@ -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