fix: make sure wallpapers dir exists before symlinking

that should make the new modular system in startingpoint accept the wallpapers rpm!
This commit is contained in:
Tulili 2023-09-10 19:04:35 -03:00 committed by GitHub
parent dcde5b16be
commit 911ed35367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,8 @@ Collection of wallpapers for the Universal Blue operating systems
mkdir -p -m0755 \
%{buildroot}%{_datadir}/backgrounds/%{VENDOR} \
%{buildroot}/tmp \
%{buildroot}%{_datadir}/gnome-background-properties
%{buildroot}%{_datadir}/gnome-background-properties \
%{buildroot}%{_datadir}/wallpapers/${VENDOR}
tar xzf %{SOURCE0} -C %{buildroot}/tmp --directory . --strip-components=1
mv %{buildroot}/tmp/src/* %{buildroot}%{_datadir}/backgrounds/%{VENDOR}
mv %{buildroot}/tmp/xml/* %{buildroot}%{_datadir}/gnome-background-properties
@ -35,6 +36,7 @@ rm -rf %{buildroot}/tmp
%exclude %{_datadir}/background/%{VENDOR}/LICENSE
%post
mkdir -p %{_datadir}/wallpapers/${VENDOR}
ln -sf %{_datadir}/backgrounds/%{VENDOR} %{_datadir}/wallpapers/%{VENDOR}
%changelog