Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1af058e32f | ||
|
|
6e2e136a06 | ||
|
|
6b9840e4cb | ||
|
|
4b3dba68e8 | ||
|
|
a2453a1952 | ||
|
|
72be62cfea |
2 changed files with 9 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
Name: kernel-srpm-macros
|
||||
Version: 1.0
|
||||
# when bumping version and resetting release, don't forget to bump version of kernel-rpm-macros as well
|
||||
Release: 25%{?dist}
|
||||
Release: 27%{?dist}
|
||||
Summary: RPM macros that list arches the full kernel is built on
|
||||
# This package only exist in Fedora repositories
|
||||
# The license is the standard (MIT) specified in
|
||||
|
|
@ -94,7 +94,7 @@ cp -p %{sources} .
|
|||
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d
|
||||
install -p -m 0644 -t %{buildroot}/%{_rpmconfigdir}/macros.d macros.kernel-srpm
|
||||
%if 0%{?rhel} >= 8
|
||||
sed -i 's/^%%kernel_arches.*/%%kernel_arches x86_64 s390x ppc64le aarch64/' \
|
||||
sed -i 's/^%%kernel_arches.*/%%kernel_arches x86_64 s390x ppc64le aarch64 riscv64/' \
|
||||
%{buildroot}/%{_rpmconfigdir}/macros.d/macros.kernel-srpm
|
||||
%endif
|
||||
|
||||
|
|
@ -136,6 +136,12 @@ install -p -m 644 -t "%{buildroot}%{_fileattrsdir}" modalias.attr
|
|||
%{rrcdir}/rpmsort
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Tue Apr 01 2025 Andrea Bolognani <abologna@redhat.com> - 1.0-26
|
||||
- Finish adding riscv64 (thanks Zhengyu He)
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ redhat_kmp_has_post_hooks 1
|
|||
%global kmodtool %{-s*}%{!-s:/usr/lib/rpm/redhat/kmodtool} \
|
||||
%global kmod_version %{-v*}%{!-v:%{version}} \
|
||||
%global kmod_release %{-r*}%{!-r:%{release}} \
|
||||
%global latest_kernel %({ rpm -q --qf '%%{VERSION}-%%{RELEASE}.%%{ARCH}\\\\n' `rpm -qa | egrep "^kernel(-rt|-aarch64)?-devel" | /usr/lib/rpm/redhat/rpmsort -r | head -n 1`; echo '%%%%{nil}'; } | head -n 1) \
|
||||
%global latest_kernel %({ rpm -q --qf '%%{VERSION}-%%{RELEASE}.%%{ARCH}\\\\n' kernel-rt-devel kernel-aarch64-devel kernel-devel | grep -v 'is not installed' | /usr/lib/rpm/redhat/rpmsort -r | head -n 1; echo '%%%%{nil}'; } | head -n 1) \
|
||||
%{!?kernel_version:%{expand:%%global kernel_version %{latest_kernel}}} \
|
||||
%global kverrel %(%{kmodtool} verrel %{?kernel_version} 2>/dev/null) \
|
||||
flavors="default" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue