adjust to git submodule
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[submodule "src"]
|
||||
path = src
|
||||
url = https://git.oerv.ac.cn/OERV-BSP/u-boot-menu.git
|
||||
Submodule
+1
Submodule src added at 8ce4cf411f
@@ -0,0 +1,64 @@
|
||||
Name: u-boot-menu
|
||||
Version: 4.2.4
|
||||
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.gz
|
||||
|
||||
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
|
||||
umask 022
|
||||
cd %{_builddir}
|
||||
rm -rf %{name}-%{version}
|
||||
cp -rf %{_sourcedir}/src %{name}-%{version}
|
||||
cd %{name}-%{version}
|
||||
chmod -Rf a+rX,u+w,g-w,o-w .
|
||||
|
||||
%build
|
||||
umask 022
|
||||
cd %{name}-%{version}
|
||||
|
||||
%install
|
||||
umask 022
|
||||
cd %{name}-%{version}
|
||||
|
||||
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
|
||||
* 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
|
||||
Reference in New Issue
Block a user