Minor updates to provides and excludes
Add some unconditional Provides: grub2-efi on grub2-efi-${arch} grub2-efi-cdboot on grub2-efi-${arch}-cdboot grub2 on all grub2-${arch} pacakges Something is somehow adding /usr/lib/.build-id/... to all the -tools subpackages, so exclude all that. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
23767ef78d
commit
0e9ac8bcf9
@ -170,6 +170,8 @@
|
|||||||
%{expand:%%package %%{1}} \
|
%{expand:%%package %%{1}} \
|
||||||
Summary: Bootloader with support for Linux, Multiboot, and more \
|
Summary: Bootloader with support for Linux, Multiboot, and more \
|
||||||
Group: System Environment/Base \
|
Group: System Environment/Base \
|
||||||
|
Provides: %{name} = %{evr} \
|
||||||
|
Obsoletes: %{name} < 1:2.02-0 \
|
||||||
Requires: %{name}-common = %{evr} \
|
Requires: %{name}-common = %{evr} \
|
||||||
Requires: %{name}-tools-minimal = %{evr} \
|
Requires: %{name}-tools-minimal = %{evr} \
|
||||||
Requires: %{name}-%{1}-modules = %{evr} \
|
Requires: %{name}-%{1}-modules = %{evr} \
|
||||||
@ -210,7 +212,7 @@ Requires: gettext which file \
|
|||||||
This subpackage provides tools for support of %%{1} platforms. \
|
This subpackage provides tools for support of %%{1} platforms. \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
%define define_efi_variant(p) \
|
%define define_efi_variant(o) \
|
||||||
%{expand:%%package %{1}} \
|
%{expand:%%package %{1}} \
|
||||||
Summary: GRUB for EFI systems. \
|
Summary: GRUB for EFI systems. \
|
||||||
Group: System Environment/Base \
|
Group: System Environment/Base \
|
||||||
@ -218,8 +220,8 @@ Requires: %{name}-common = %{evr} \
|
|||||||
Requires: %{name}-tools-minimal >= %{evr} \
|
Requires: %{name}-tools-minimal >= %{evr} \
|
||||||
Requires: %{name}-tools-extra = %{evr} \
|
Requires: %{name}-tools-extra = %{evr} \
|
||||||
Requires: %{name}-tools = %{evr} \
|
Requires: %{name}-tools = %{evr} \
|
||||||
%{-p:Provides: %{name}-efi = %{evr}} \
|
Provides: %{name}-efi = %{evr} \
|
||||||
%{-p:Obsoletes: %{name}-efi < %{evr}} \
|
%{-o:Obsoletes: %{name}-efi < %{evr}} \
|
||||||
\
|
\
|
||||||
%{expand:%%description %{1}} \
|
%{expand:%%description %{1}} \
|
||||||
%{desc} \
|
%{desc} \
|
||||||
@ -241,6 +243,7 @@ This subpackage provides support for rebuilding your own grub.efi. \
|
|||||||
Summary: Files used to boot removeable media with EFI \
|
Summary: Files used to boot removeable media with EFI \
|
||||||
Group: System Environment/Base \
|
Group: System Environment/Base \
|
||||||
Requires: %{name}-common = %{evr} \
|
Requires: %{name}-common = %{evr} \
|
||||||
|
Provides: %{name}-efi-cdboot = %{evr} \
|
||||||
%{expand:%%description %{1}-cdboot} \
|
%{expand:%%description %{1}-cdboot} \
|
||||||
%{desc} \
|
%{desc} \
|
||||||
This subpackage provides optional components of grub used with removeable media on %{1} systems.\
|
This subpackage provides optional components of grub used with removeable media on %{1} systems.\
|
||||||
|
29
grub2.spec
29
grub2.spec
@ -7,7 +7,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.02
|
Version: 2.02
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -132,7 +132,7 @@ Obsoletes: %{name}-tools < %{evr}
|
|||||||
This subpackage provides tools for support of all platforms.
|
This subpackage provides tools for support of all platforms.
|
||||||
|
|
||||||
%if 0%{with_efi_arch}
|
%if 0%{with_efi_arch}
|
||||||
%{expand:%define_efi_variant %%{package_arch} -p}
|
%{expand:%define_efi_variant %%{package_arch} -o}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{with_alt_efi_arch}
|
%if 0%{with_alt_efi_arch}
|
||||||
%{expand:%define_efi_variant %%{alt_package_arch}}
|
%{expand:%define_efi_variant %%{alt_package_arch}}
|
||||||
@ -300,8 +300,6 @@ if [ "$1" = 0 ]; then
|
|||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/%{name}-dev.info.gz || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
|
||||||
|
|
||||||
%files common -f grub.lang
|
%files common -f grub.lang
|
||||||
%dir %{_libdir}/grub/
|
%dir %{_libdir}/grub/
|
||||||
%dir %{_datarootdir}/grub/
|
%dir %{_datarootdir}/grub/
|
||||||
@ -330,7 +328,9 @@ fi
|
|||||||
%doc docs/font_char_metrics.png
|
%doc docs/font_char_metrics.png
|
||||||
|
|
||||||
%files tools-minimal
|
%files tools-minimal
|
||||||
%defattr(-,root,root,-)
|
# I do not know why I'm getting this in the output...
|
||||||
|
%exclude /usr/lib/.build-id
|
||||||
|
|
||||||
%{_sysconfdir}/prelink.conf.d/grub2.conf
|
%{_sysconfdir}/prelink.conf.d/grub2.conf
|
||||||
%{_sbindir}/%{name}-get-kernel-settings
|
%{_sbindir}/%{name}-get-kernel-settings
|
||||||
%{_sbindir}/%{name}-set-default
|
%{_sbindir}/%{name}-set-default
|
||||||
@ -346,7 +346,9 @@ fi
|
|||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%files tools-efi
|
%files tools-efi
|
||||||
%defattr(-,root,root,-)
|
# I do not know why I'm getting this in the output...
|
||||||
|
%exclude /usr/lib/.build-id
|
||||||
|
|
||||||
%{_sbindir}/%{name}-macbless
|
%{_sbindir}/%{name}-macbless
|
||||||
%{_bindir}/%{name}-render-label
|
%{_bindir}/%{name}-render-label
|
||||||
%{_datadir}/man/man8/%{name}-macbless*
|
%{_datadir}/man/man8/%{name}-macbless*
|
||||||
@ -354,7 +356,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root,-)
|
# I do not know why I'm getting this in the output...
|
||||||
|
%exclude /usr/lib/.build-id
|
||||||
|
|
||||||
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
|
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/default/grub
|
||||||
%config %{_sysconfdir}/grub.d/??_*
|
%config %{_sysconfdir}/grub.d/??_*
|
||||||
%{_sysconfdir}/grub.d/README
|
%{_sysconfdir}/grub.d/README
|
||||||
@ -420,6 +424,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files tools-extra
|
%files tools-extra
|
||||||
|
# I do not know why I'm getting this in the output...
|
||||||
|
%exclude /usr/lib/.build-id
|
||||||
|
|
||||||
%{_sbindir}/%{name}-sparc64-setup
|
%{_sbindir}/%{name}-sparc64-setup
|
||||||
%{_sbindir}/%{name}-ofpathname
|
%{_sbindir}/%{name}-ofpathname
|
||||||
%{_bindir}/%{name}-fstest
|
%{_bindir}/%{name}-fstest
|
||||||
@ -459,6 +466,14 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 25 2017 Peter Jones <pjones@redhat.com> - 2.02-13
|
||||||
|
- Add some unconditional Provides:
|
||||||
|
grub2-efi on grub2-efi-${arch}
|
||||||
|
grub2-efi-cdboot on grub2-efi-${arch}-cdboot
|
||||||
|
grub2 on all grub2-${arch} pacakges
|
||||||
|
- Something is somehow adding /usr/lib/.build-id/... to all the -tools
|
||||||
|
subpackages, so exclude all that.
|
||||||
|
|
||||||
* Thu Aug 24 2017 Peter Jones <pjones@redhat.com> - 2.02-12
|
* Thu Aug 24 2017 Peter Jones <pjones@redhat.com> - 2.02-12
|
||||||
- Fix arm kernel command line allocation
|
- Fix arm kernel command line allocation
|
||||||
Resolves: rhbz#1484609
|
Resolves: rhbz#1484609
|
||||||
|
Loading…
Reference in New Issue
Block a user