diff --git a/SOURCES/background-alias.conf b/SOURCES/background-alias.conf new file mode 100644 index 0000000..0df3a35 --- /dev/null +++ b/SOURCES/background-alias.conf @@ -0,0 +1 @@ +Alias /test-page-background.png /usr/share/httpd/noindex/test-page-background.png diff --git a/SPECS/sphere-logos.spec b/SPECS/sphere-logos.spec index d7d86df..3cc25d3 100644 --- a/SPECS/sphere-logos.spec +++ b/SPECS/sphere-logos.spec @@ -15,6 +15,8 @@ Group: System Environment/Base URL: https://msvsphere-os.ru Source0: %{url}/archive/%{version}/%{name}-%{version}-%{release_version}.tar.xz Source1: org.fedoraproject.AnacondaInstaller.svg +# Fix background for apache +Source2: background-alias.conf License: Licensed only for approved usage, see COPYING for details. @@ -133,6 +135,15 @@ cp -a ipa/*.jpg $RPM_BUILD_ROOT%{_datadir}/ipa/ui/images mkdir -p $RPM_BUILD_ROOT%{_datadir}/testpage install -p -m 644 testpage/index.html $RPM_BUILD_ROOT%{_datadir}/testpage +# Fix backgorund for apache +mkdir -p $RPM_BUILD_ROOT%{_datadir}/httpd/noindex +pushd $RPM_BUILD_ROOT%{_datadir}/httpd/noindex +ln -s ../../pixmaps/test-page-background.png +popd + +mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/conf.d/ + # save some dup'd icons # Except in /boot. Because some people think it is fun to use VFAT for /boot. hardlink -v %{buildroot}/usr @@ -206,11 +217,13 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files httpd %license COPYING +%config(noreplace) %{_sysconfdir}/httpd/conf.d/background-alias.conf %{_datadir}/pixmaps/poweredby.png %{_datadir}/pixmaps/system-noindex-logo.png %{_datadir}/pixmaps/test-page-background.png %{_datadir}/testpage %{_datadir}/testpage/index.html +%{_datadir}/httpd/noindex/*.png %files ipa %license COPYING @@ -231,6 +244,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : * Fri Aug 16 2024 Arkady L. Shane - 84.5-5 - Fix httpd test page logo - Drop obsolete backgrounds +- Fix background for Apahe * Wed May 22 2024 Arkady L. Shane - 84.5-4 - Added new backgrounds