units.spec: replace an absolute symlink by a relative symlink

... to eliminate the following rpmbuild warning:
```
RPM build warnings:
    absolute symlink: /usr/share/units/currency.units -> /var/lib/units/currency.units
```
This commit is contained in:
Kamil Dudka 2022-09-06 09:07:25 +02:00
parent 6869b51de8
commit d4c3be7140

View File

@ -37,8 +37,8 @@ autoreconf -fiv
%install %install
%make_install %make_install
# remove %%{buildroot} from the target of an absolute symlink # replace an absolute symlink by a relative symlink
ln -fsv %{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units ln -fsv ../../..%{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units
gzip %{buildroot}%{_infodir}/units.info gzip %{buildroot}%{_infodir}/units.info
@ -59,6 +59,7 @@ make check
%changelog %changelog
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-2 * Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-2
- replace an absolute symlink by a relative symlink
- use %%make_build and %%make_install RPM macros - use %%make_build and %%make_install RPM macros
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-1 * Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-1