diff --git a/SPECS/centos-logos.spec b/SPECS/centos-logos.spec index 2a77f2f..6caed47 100644 --- a/SPECS/centos-logos.spec +++ b/SPECS/centos-logos.spec @@ -66,70 +66,70 @@ Licensed only for approved usage, see COPYING for details. %build %install -mkdir -p $RPM_BUILD_ROOT%{_datadir}/backgrounds/ -cp -r backgrounds/c8 $RPM_BUILD_ROOT%{_datadir}/backgrounds/ +mkdir -p %{buildroot}%{_datadir}/backgrounds/ +cp -r backgrounds/c8 %{buildroot}%{_datadir}/backgrounds/ -mkdir -p $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas -install -p -m 644 backgrounds/10_org.gnome.desktop.background.default.gschema.override $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas -install -p -m 644 backgrounds/10_org.gnome.desktop.screensaver.default.gschema.override $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas +mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas +install -p -m 644 backgrounds/10_org.gnome.desktop.background.default.gschema.override %{buildroot}%{_datadir}/glib-2.0/schemas +install -p -m 644 backgrounds/10_org.gnome.desktop.screensaver.default.gschema.override %{buildroot}%{_datadir}/glib-2.0/schemas -mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties/ -install -p -m 644 backgrounds/desktop-backgrounds-default.xml $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties/ +mkdir -p %{buildroot}%{_datadir}/gnome-background-properties/ +install -p -m 644 backgrounds/desktop-backgrounds-default.xml %{buildroot}%{_datadir}/gnome-background-properties/ -mkdir -p $RPM_BUILD_ROOT%{_datadir}/firstboot/themes/fedora-%{codename}/ +mkdir -p %{buildroot}%{_datadir}/firstboot/themes/fedora-%{codename}/ for i in firstboot/* ; do - install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/firstboot/themes/fedora-%{codename}/ + install -p -m 644 $i %{buildroot}%{_datadir}/firstboot/themes/fedora-%{codename}/ done -mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps +mkdir -p %{buildroot}%{_datadir}/pixmaps for i in pixmaps/* ; do - install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/pixmaps + install -p -m 644 $i %{buildroot}%{_datadir}/pixmaps done -mkdir -p $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge +mkdir -p %{buildroot}%{_datadir}/plymouth/themes/charge for i in plymouth/charge/* ; do - install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge + install -p -m 644 $i %{buildroot}%{_datadir}/plymouth/themes/charge done for size in 16x16 22x22 24x24 32x32 36x36 48x48 96x96 256x256 ; do - mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$size/apps + mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$size/apps for i in icons/hicolor/$size/apps/* ; do - install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$size/apps + install -p -m 644 $i %{buildroot}%{_datadir}/icons/hicolor/$size/apps done done -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} -pushd $RPM_BUILD_ROOT%{_sysconfdir} +mkdir -p %{buildroot}%{_sysconfdir} +pushd %{buildroot}%{_sysconfdir} ln -s %{_datadir}/icons/hicolor/16x16/apps/fedora-logo-icon.png favicon.png popd -mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps -install -p -m 644 icons/hicolor/scalable/apps/xfce4_xicon1.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps -install -p -m 644 icons/hicolor/scalable/apps/fedora-logo-icon.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/start-here.svg +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps +install -p -m 644 icons/hicolor/scalable/apps/xfce4_xicon1.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps +install -p -m 644 icons/hicolor/scalable/apps/fedora-logo-icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/start-here.svg -mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/places/ -pushd $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/places/ +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/places/ +pushd %{buildroot}%{_datadir}/icons/hicolor/scalable/places/ ln -s ../apps/start-here.svg . popd -(cd anaconda; make DESTDIR=$RPM_BUILD_ROOT install) +(cd anaconda; make DESTDIR=%{buildroot} install) -mkdir -p $RPM_BUILD_ROOT%{_datadir}/redhat-logos -cp -a fedora/*.svg $RPM_BUILD_ROOT%{_datadir}/redhat-logos +mkdir -p %{buildroot}%{_datadir}/redhat-logos +cp -a fedora/*.svg %{buildroot}%{_datadir}/redhat-logos -mkdir -p $RPM_BUILD_ROOT%{_datadir}/ipa/ui/images -cp -a ipa/*.png $RPM_BUILD_ROOT%{_datadir}/ipa/ui/images -cp -a ipa/*.jpg $RPM_BUILD_ROOT%{_datadir}/ipa/ui/images +mkdir -p %{buildroot}%{_datadir}/ipa/ui/images +cp -a ipa/*.png %{buildroot}%{_datadir}/ipa/ui/images +cp -a ipa/*.jpg %{buildroot}%{_datadir}/ipa/ui/images -mkdir -p $RPM_BUILD_ROOT%{_datadir}/testpage -install -p -m 644 testpage/index.html $RPM_BUILD_ROOT%{_datadir}/testpage +mkdir -p %{buildroot}%{_datadir}/testpage +install -p -m 644 testpage/index.html %{buildroot}%{_datadir}/testpage # save some dup'd icons # Except in /boot. Because some people think it is fun to use VFAT for /boot. hardlink -v %{buildroot}/usr %ifnarch x86_64 i686 -rm -f $RPM_BUILD_ROOT%{_datadir}/anaconda/boot/splash.lss +rm -f %{buildroot}%{_datadir}/anaconda/boot/splash.lss %endif %post