[grub2] move common files to -tools subpackage
Peter Jones
pjones at fedoraproject.org
Mon May 21 18:41:06 UTC 2012
commit 9ef0c08463fa5b14d564ca9b1edcea7ca8f7acbe
Author: Mads Kiilerich <mads at kiilerich.com>
Date: Mon May 21 17:34:06 2012 +0200
move common files to -tools subpackage
It seems like grub2 and grub2-efi (and whatever it is called on other
platforms) really should be noarch ...
grub2.spec | 87 +++++++++++++++++++++++------------------------------------
1 files changed, 34 insertions(+), 53 deletions(-)
---
diff --git a/grub2.spec b/grub2.spec
index 0794b4f..5b10929 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -58,7 +58,7 @@ BuildRequires: freetype-devel gettext-devel git
BuildRequires: texinfo
BuildRequires: dejavu-sans-fonts
-Requires: gettext os-prober which file system-logos
+Requires: %{name}-tools = %{version}-%{release}
Requires(pre): dracut
Requires(post): dracut
@@ -68,12 +68,14 @@ ExcludeArch: s390 s390x
%description
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture. It support rich varietyof kernel formats,
-file systems, computer architectures and hardware devices.
+file systems, computer architectures and hardware devices. This subpackage
+provides support for PC BIOS systems.
%ifarch %{efi}
%package efi
Summary: GRUB for EFI systems.
Group: System Environment/Base
+Requires: %{name}-tools = %{version}-%{release}
%description efi
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
@@ -82,6 +84,17 @@ file systems, computer architectures and hardware devices. This subpackage
provides support for EFI systems.
%endif
+%package tools
+Summary: Support tools for GRUB.
+Group: System Environment/Base
+Requires: gettext os-prober which file system-logos
+
+%description tools
+The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
+bootloader with modular architecture. It support rich varietyof kernel formats,
+file systems, computer architectures and hardware devices. This subpackage
+provides tools for support of all platforms.
+
%prep
%setup -T -c -n grub-%{tarversion}
%ifarch %{efi}
@@ -240,6 +253,8 @@ mv $RPM_BUILD_ROOT%{_infodir}/grub-dev.info $RPM_BUILD_ROOT%{_infodir}/%{name}-d
rm $RPM_BUILD_ROOT%{_infodir}/dir
# Defaults
+mkdir %{_sysconfdir}/default
+touch %{_sysconfdir}/default/grub
mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
ln -sf %{_sysconfdir}/default/grub \
${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/grub
@@ -294,59 +309,26 @@ if [ "$1" = 0 ]; then
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
fi
-%files -f grub.lang
+%files
%defattr(-,root,root,-)
-/etc/bash_completion.d/grub
%{_libdir}/grub/*-%{platform}/
-%{_datarootdir}/grub/
-%{_sbindir}/%{name}-mkconfig
-%{_sbindir}/%{name}-mknetdir
-%{_sbindir}/%{name}-install
-%{_sbindir}/%{name}-probe
-%{_sbindir}/%{name}-reboot
-%{_sbindir}/%{name}-set-default
-%{_sbindir}/%{name}-bios-setup
-%{_sbindir}/%{name}-ofpathname
-%{_sbindir}/%{name}-sparc64-setup
-%{_bindir}/%{name}-mkstandalone
-%{_bindir}/%{name}-editenv
-%{_bindir}/%{name}-fstest
-%{_bindir}/%{name}-kbdcomp
-%{_bindir}/%{name}-menulst2cfg
-%{_bindir}/%{name}-mkfont
-%{_bindir}/%{name}-mklayout
-%{_bindir}/%{name}-mkimage
-%{_bindir}/%{name}-mkpasswd-pbkdf2
-%{_bindir}/%{name}-mkrelpath
-%ifnarch %{sparc}
-%{_bindir}/%{name}-mkrescue
-%endif
-%{_bindir}/%{name}-script-check
-%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
-%config %{_sysconfdir}/grub.d/??_*
-%{_sysconfdir}/grub.d/README
%config(noreplace) %{_sysconfdir}/%{name}.cfg
-%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
-%{_sysconfdir}/sysconfig/grub
-%dir /boot/%{name}
%ghost %config(noreplace) /boot/%{name}/grub.cfg
-%doc grub-%{tarversion}/COPYING grub-%{tarversion}/INSTALL
-%doc grub-%{tarversion}/NEWS grub-%{tarversion}/README
-%doc grub-%{tarversion}/THANKS grub-%{tarversion}/TODO
-%doc grub-%{tarversion}/ChangeLog grub-%{tarversion}/README.Fedora
-%doc grub-%{tarversion}/grub.html
-%doc grub-%{tarversion}/grub-dev.html grub-%{tarversion}/docs/font_char_metrics.png
-%doc grub-%{tarversion}/themes/starfield/COPYING.CC-BY-SA-3.0
-%exclude %{_mandir}
-%{_infodir}/%{name}*
-/boot/grub2/themes/system
+%doc grub-%{tarversion}/COPYING
%ifarch %{efi}
-%files efi -f grub.lang
+%files efi
%defattr(-,root,root,-)
-%attr(0755,root,root)/boot/efi/EFI/redhat
-/etc/bash_completion.d/grub
%{_libdir}/grub/%{grubefiarch}
+%config(noreplace) %{_sysconfdir}/%{name}-efi.cfg
+%attr(0755,root,root)/boot/efi/EFI/redhat
+%ghost %config(noreplace) /boot/efi/EFI/redhat/%{name}/grub.cfg
+%doc grub-%{tarversion}/COPYING
+%endif
+
+%files tools -f grub.lang
+%defattr(-,root,root,-)
+%dir %{_libdir}/grub/
%{_datarootdir}/grub/
%{_sbindir}/%{name}-mkconfig
%{_sbindir}/%{name}-mknetdir
@@ -371,13 +353,16 @@ fi
%{_bindir}/%{name}-mkrescue
%endif
%{_bindir}/%{name}-script-check
+%{_sysconfdir}/bash_completion.d/grub
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
%config %{_sysconfdir}/grub.d/??_*
%{_sysconfdir}/grub.d/README
-%config(noreplace) %{_sysconfdir}/%{name}-efi.cfg
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
%{_sysconfdir}/sysconfig/grub
-%ghost %config(noreplace) /boot/efi/EFI/redhat/%{name}/grub.cfg
+%dir /boot/%{name}
+/boot/%{name}/themes/
+%{_infodir}/%{name}*
+%exclude %{_mandir}
%doc grub-%{tarversion}/COPYING grub-%{tarversion}/INSTALL
%doc grub-%{tarversion}/NEWS grub-%{tarversion}/README
%doc grub-%{tarversion}/THANKS grub-%{tarversion}/TODO
@@ -385,10 +370,6 @@ fi
%doc grub-%{tarversion}/grub.html
%doc grub-%{tarversion}/grub-dev.html grub-%{tarversion}/docs/font_char_metrics.png
%doc grub-%{tarversion}/themes/starfield/COPYING.CC-BY-SA-3.0
-%exclude %{_mandir}
-%{_infodir}/%{name}*
-/boot/grub2/themes/system
-%endif
%changelog
* Mon May 14 2012 Peter Jones <pjones at redhat.com> - 2.0-0.27.beta5
More information about the scm-commits
mailing list