58 lines
1.9 KiB
RPMSpec
58 lines
1.9 KiB
RPMSpec
Name: u-boot-menu
|
|
Version: 4.2.5
|
|
Release: 3%{?dist}
|
|
Summary: u-boot menu update
|
|
|
|
License: GPLv2
|
|
URL: https://git.oerv.ac.cn/OERV-BSP/u-boot-menu
|
|
BuildArch: noarch
|
|
Source0: u-boot-menu.tar
|
|
|
|
Requires: coreutils
|
|
|
|
%description
|
|
Automatically create extlinux-style boot menu for u-boot. Boot menu
|
|
entries are automatically created for every kernel package when they are
|
|
installed.
|
|
.
|
|
When /boot is on a separate partition, the package flash-kernel may help
|
|
ensure that device-tree (dtb) files are made available to u-boot.
|
|
|
|
%prep
|
|
%setup -n %{name}
|
|
|
|
%build
|
|
|
|
%install
|
|
install -Dm 755 u-boot-update %{buildroot}/%{_sbindir}/u-boot-update
|
|
install -Dm 755 read-config %{buildroot}/usr/share/u-boot-menu/read-config
|
|
install -Dm 644 etc/default/u-boot %{buildroot}/etc/default/u-boot
|
|
install -Dm 755 etc/kernel/postinst.d/zz-u-boot-menu %{buildroot}/etc/kernel/postinst.d/zz-u-boot-menu
|
|
install -Dm 755 etc/kernel/postrm.d/zz-u-boot-menu %{buildroot}/etc/kernel/postrm.d/zz-u-boot-menu
|
|
install -Dm 755 usr/lib/kernel/install.d/91-u-boot-menu.install %{buildroot}/usr/lib/kernel/install.d/91-u-boot-menu.install
|
|
install -Dm 644 COPYING %{buildroot}/usr/share/u-boot-menu/COPYING
|
|
install -Dm 644 u-boot-update.8 %{buildroot}/usr/share/u-boot-menu/u-boot-update.8
|
|
|
|
%files
|
|
%{_sbindir}/u-boot-update
|
|
/usr/share/u-boot-menu/read-config
|
|
%config(noreplace) /etc/default/u-boot
|
|
/etc/kernel/postinst.d/zz-u-boot-menu
|
|
/etc/kernel/postrm.d/zz-u-boot-menu
|
|
/usr/lib/kernel/install.d/91-u-boot-menu.install
|
|
%license /usr/share/u-boot-menu/COPYING
|
|
%doc /usr/share/u-boot-menu/u-boot-update.8
|
|
|
|
%changelog
|
|
* Fri Sep 5 2025 Hangfan Li <lihangfan@iscas.ac.cn>
|
|
- Support U_BOOT_SEPARATE_BOOT
|
|
|
|
* Tue Jul 22 2025 Hangfan Li <lihangfan@iscas.ac.cn>
|
|
- Migrate to git submodule
|
|
|
|
* Thu Mar 27 2025 Hangfan Li <lihangfan@iscas.ac.cn>
|
|
- fix /boot prefix under non-separate mount
|
|
|
|
* Mon Oct 28 2024 Hangfan Li <lihangfan@iscas.ac.cn>
|
|
- Initilal RPM release
|