forked from pool/grub2
Accepting request 1046402 from home:gary_lin:branches:Base:System
- Move unsupported zfs modules into 'extras' packages (bsc#1205554) (PED-2947) OBS-URL: https://build.opensuse.org/request/show/1046402 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=435
This commit is contained in:
parent
ef0ef13ff0
commit
cb476353d0
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 02:48:05 UTC 2023 - Gary Ching-Pang Lin <glin@suse.com>
|
||||||
|
|
||||||
|
- Move unsupported zfs modules into 'extras' packages
|
||||||
|
(bsc#1205554) (PED-2947)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 30 07:58:54 UTC 2022 - Michael Chang <mchang@suse.com>
|
Fri Dec 30 07:58:54 UTC 2022 - Michael Chang <mchang@suse.com>
|
||||||
|
|
||||||
|
79
grub2.spec
79
grub2.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package grub2
|
# spec file for package grub2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -550,6 +550,18 @@ bootloader with modular architecture. It supports rich variety of kernel format
|
|||||||
file systems, computer architectures and hardware devices. This subpackage
|
file systems, computer architectures and hardware devices. This subpackage
|
||||||
provides support for %{platform} systems.
|
provides support for %{platform} systems.
|
||||||
|
|
||||||
|
%package %{grubarch}-extras
|
||||||
|
Summary: Unsupported modules for %{grubarch}
|
||||||
|
Group: System/Boot
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: %{name}-%{grubarch} = %{version}
|
||||||
|
Provides: %{name}-%{grubarch}:%{_datadir}/%{name}/%{grubarch}/zfs.mod
|
||||||
|
Provides: %{name}-%{grubarch}:%{_datadir}/%{name}/%{grubarch}/zfscrypt.mod
|
||||||
|
Provides: %{name}-%{grubarch}:%{_datadir}/%{name}/%{grubarch}/zfsinfo.mod
|
||||||
|
|
||||||
|
%description %{grubarch}-extras
|
||||||
|
Unsupported modules for %{name}-%{grubarch}
|
||||||
|
|
||||||
%package %{grubarch}-debug
|
%package %{grubarch}-debug
|
||||||
Summary: Debug symbols for %{grubarch}
|
Summary: Debug symbols for %{grubarch}
|
||||||
Group: System/Boot
|
Group: System/Boot
|
||||||
@ -594,6 +606,19 @@ bootloader with modular architecture. It supports rich variety of kernel format
|
|||||||
file systems, computer architectures and hardware devices. This subpackage
|
file systems, computer architectures and hardware devices. This subpackage
|
||||||
provides support for EFI systems.
|
provides support for EFI systems.
|
||||||
|
|
||||||
|
%package %{grubefiarch}-extras
|
||||||
|
|
||||||
|
Summary: Unsupported modules for %{grubefiarch}
|
||||||
|
Group: System/Boot
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: %{name}-%{grubefiarch} = %{version}
|
||||||
|
Provides: %{name}-%{grubefiarch}:%{_datadir}/%{name}/%{grubefiarch}/zfs.mod
|
||||||
|
Provides: %{name}-%{grubefiarch}:%{_datadir}/%{name}/%{grubefiarch}/zfscrypt.mod
|
||||||
|
Provides: %{name}-%{grubefiarch}:%{_datadir}/%{name}/%{grubefiarch}/zfsinfo.mod
|
||||||
|
|
||||||
|
%description %{grubefiarch}-extras
|
||||||
|
Unsupported modules for %{name}-%{grubefiarch}
|
||||||
|
|
||||||
%package %{grubefiarch}-debug
|
%package %{grubefiarch}-debug
|
||||||
Summary: Debug symbols for %{grubefiarch}
|
Summary: Debug symbols for %{grubefiarch}
|
||||||
Group: System/Boot
|
Group: System/Boot
|
||||||
@ -626,6 +651,18 @@ bootloader with modular architecture. It supports rich variety of kernel format
|
|||||||
file systems, computer architectures and hardware devices. This subpackage
|
file systems, computer architectures and hardware devices. This subpackage
|
||||||
provides support for XEN systems.
|
provides support for XEN systems.
|
||||||
|
|
||||||
|
%package %{grubxenarch}-extras
|
||||||
|
Summary: Unsupported modules for %{grubxenarch}
|
||||||
|
Group: System/Boot
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: %{name}-%{grubxenarch} = %{version}
|
||||||
|
Provides: %{name}-%{grubxenarch}:%{_datadir}/%{name}/%{grubxenarch}/zfs.mod
|
||||||
|
Provides: %{name}-%{grubxenarch}:%{_datadir}/%{name}/%{grubxenarch}/zfscrypt.mod
|
||||||
|
Provides: %{name}-%{grubxenarch}:%{_datadir}/%{name}/%{grubxenarch}/zfsinfo.mod
|
||||||
|
|
||||||
|
%description %{grubxenarch}-extras
|
||||||
|
Unsupported modules for %{name}-%{grubxenarch}
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package snapper-plugin
|
%package snapper-plugin
|
||||||
@ -1102,6 +1139,25 @@ perl -ni -e '
|
|||||||
%else
|
%else
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# bsc#1205554 move the zfs modules into extras packages
|
||||||
|
# EXTRA_PATTERN='pattern1|pattern2|pattern3|...'
|
||||||
|
EXTRA_PATTERN="zfs"
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
|
find %{buildroot}/%{_datadir}/%{name}/%{grubxenarch}/ -type f | sed 's,%{buildroot},,' > %{grubxenarch}-all.lst
|
||||||
|
grep -v -E ${EXTRA_PATTERN} %{grubxenarch}-all.lst > %{grubxenarch}.lst
|
||||||
|
grep -E ${EXTRA_PATTERN} %{grubxenarch}-all.lst > %{grubxenarch}-extras.lst
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch %{efi}
|
||||||
|
find %{buildroot}/%{_datadir}/%{name}/%{grubefiarch}/ -name '*.mod' | sed 's,%{buildroot},,' > %{grubefiarch}-mod-all.lst
|
||||||
|
grep -v -E ${EXTRA_PATTERN} %{grubefiarch}-mod-all.lst > %{grubefiarch}-mod.lst
|
||||||
|
grep -E ${EXTRA_PATTERN} %{grubefiarch}-mod-all.lst > %{grubefiarch}-mod-extras.lst
|
||||||
|
%endif
|
||||||
|
|
||||||
|
find %{buildroot}/%{_datadir}/%{name}/%{grubarch}/ -name '*.mod' | sed 's,%{buildroot},,' > %{grubarch}-mod-all.lst
|
||||||
|
grep -v -E ${EXTRA_PATTERN} %{grubarch}-mod-all.lst > %{grubarch}-mod.lst
|
||||||
|
grep -E ${EXTRA_PATTERN} %{grubarch}-mod-all.lst > %{grubarch}-mod-extras.lst
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
%fdupes %buildroot%{_bindir}
|
%fdupes %buildroot%{_bindir}
|
||||||
%fdupes %buildroot%{_libdir}
|
%fdupes %buildroot%{_libdir}
|
||||||
@ -1373,7 +1429,7 @@ fi
|
|||||||
|
|
||||||
%if ! 0%{?only_efi:1}
|
%if ! 0%{?only_efi:1}
|
||||||
|
|
||||||
%files %{grubarch}
|
%files %{grubarch} -f %{grubarch}-mod.lst
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_datadir}/%{name}/%{grubarch}
|
%dir %{_datadir}/%{name}/%{grubarch}
|
||||||
%ifarch ppc ppc64 ppc64le
|
%ifarch ppc ppc64 ppc64le
|
||||||
@ -1388,7 +1444,6 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
%{_datadir}/%{name}/%{grubarch}/*.img
|
%{_datadir}/%{name}/%{grubarch}/*.img
|
||||||
%{_datadir}/%{name}/%{grubarch}/*.lst
|
%{_datadir}/%{name}/%{grubarch}/*.lst
|
||||||
%{_datadir}/%{name}/%{grubarch}/*.mod
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%{_datadir}/%{name}/%{grubarch}/efiemu*.o
|
%{_datadir}/%{name}/%{grubarch}/efiemu*.o
|
||||||
%endif
|
%endif
|
||||||
@ -1398,6 +1453,10 @@ fi
|
|||||||
%{_libexecdir}/%{name}-instdev-fixup.pl
|
%{_libexecdir}/%{name}-instdev-fixup.pl
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files %{grubarch}-extras -f %{grubarch}-mod-extras.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_datadir}/%{name}/%{grubarch}
|
||||||
|
|
||||||
%files %{grubarch}-debug
|
%files %{grubarch}-debug
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_datadir}/%{name}/%{grubarch}/gdb_grub
|
%{_datadir}/%{name}/%{grubarch}/gdb_grub
|
||||||
@ -1408,7 +1467,7 @@ fi
|
|||||||
|
|
||||||
%ifarch %{efi}
|
%ifarch %{efi}
|
||||||
|
|
||||||
%files %{grubefiarch}
|
%files %{grubefiarch} -f %{grubefiarch}-mod.lst
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_datadir}/%{name}/%{grubefiarch}
|
%dir %{_datadir}/%{name}/%{grubefiarch}
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/grub.efi
|
%{_datadir}/%{name}/%{grubefiarch}/grub.efi
|
||||||
@ -1417,7 +1476,6 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/*.img
|
%{_datadir}/%{name}/%{grubefiarch}/*.img
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/*.lst
|
%{_datadir}/%{name}/%{grubefiarch}/*.lst
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/*.mod
|
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/kernel.exec
|
%{_datadir}/%{name}/%{grubefiarch}/kernel.exec
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/modinfo.sh
|
%{_datadir}/%{name}/%{grubefiarch}/modinfo.sh
|
||||||
%dir %{sysefibasedir}
|
%dir %{sysefibasedir}
|
||||||
@ -1436,6 +1494,10 @@ fi
|
|||||||
%{sysefidir}/grub.der
|
%{sysefidir}/grub.der
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files %{grubefiarch}-extras -f %{grubefiarch}-mod-extras.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_datadir}/%{name}/%{grubefiarch}
|
||||||
|
|
||||||
%files %{grubefiarch}-debug
|
%files %{grubefiarch}-debug
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_datadir}/%{name}/%{grubefiarch}/gdb_grub
|
%{_datadir}/%{name}/%{grubefiarch}/gdb_grub
|
||||||
@ -1452,13 +1514,16 @@ fi
|
|||||||
%{_libdir}/snapper/plugins/grub
|
%{_libdir}/snapper/plugins/grub
|
||||||
|
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%files %{grubxenarch}
|
%files %{grubxenarch} -f %{grubxenarch}.lst
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_datadir}/%{name}/%{grubxenarch}
|
%dir %{_datadir}/%{name}/%{grubxenarch}
|
||||||
%{_datadir}/%{name}/%{grubxenarch}/*
|
|
||||||
# provide compatibility sym-link for VM definitions pointing to old location
|
# provide compatibility sym-link for VM definitions pointing to old location
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
%{_libdir}/%{name}/%{grubxenarch}
|
%{_libdir}/%{name}/%{grubxenarch}
|
||||||
|
|
||||||
|
%files %{grubxenarch}-extras -f %{grubxenarch}-extras.lst
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_datadir}/%{name}/%{grubxenarch}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?has_systemd:1}
|
%if 0%{?has_systemd:1}
|
||||||
|
Loading…
Reference in New Issue
Block a user