From d4c3be7140fa69b57bcf5a9ac98b43bf919b63e5 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 6 Sep 2022 09:07:25 +0200 Subject: [PATCH] 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 ``` --- units.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/units.spec b/units.spec index 480dcfe..1240257 100644 --- a/units.spec +++ b/units.spec @@ -37,8 +37,8 @@ autoreconf -fiv %install %make_install -# remove %%{buildroot} from the target of an absolute symlink -ln -fsv %{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units +# replace an absolute symlink by a relative symlink +ln -fsv ../../..%{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units gzip %{buildroot}%{_infodir}/units.info @@ -59,6 +59,7 @@ make check %changelog * Tue Sep 06 2022 Kamil Dudka - 2.22-2 +- replace an absolute symlink by a relative symlink - use %%make_build and %%make_install RPM macros * Tue Sep 06 2022 Kamil Dudka - 2.22-1