From 2f3e86f81d1d2b15da133e8309eb3afe35491100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 14:42:20 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/kernel-srpm-macros#0df5882174b44ba3960458811fa82e36c2636f5b --- README.md | 3 +++ kernel-srpm-macros.spec | 49 +++++++++++++++++++++++++++++++++++++++++ macros.kernel-srpm | 3 +++ sources | 0 4 files changed, 55 insertions(+) create mode 100644 README.md create mode 100644 kernel-srpm-macros.spec create mode 100644 macros.kernel-srpm create mode 100644 sources diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8faece --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# kernel-srpm-macros + +The kernel-srpm-macros package \ No newline at end of file diff --git a/kernel-srpm-macros.spec b/kernel-srpm-macros.spec new file mode 100644 index 0000000..99527f5 --- /dev/null +++ b/kernel-srpm-macros.spec @@ -0,0 +1,49 @@ +Name: kernel-srpm-macros +Version: 1.0 +Release: 3%{?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 +# Fedora Project Contribution Agreement +# and as URL we provide dist-git URL +License: MIT +URL: https://src.fedoraproject.org/rpms/kernel-srpm-macros +Source0: macros.kernel-srpm +BuildArch: noarch + + +%description +This packages contains the rpm macro that list what arches +the full kernel is built on. +The variable to use is kernel_arches. + +%prep +# nothing to do + + +%build +# nothing to do + + +%install +mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d +install -p -m 0644 -t %{buildroot}/%{_rpmconfigdir}/macros.d %{SOURCE0} +%if 0%{?rhel} >= 8 + sed -i 's/^%%kernel_arches.*/%%kernel_arches x86_64 s390x ppc64le aarch64/' \ + %{buildroot}/%{_rpmconfigdir}/macros.d/macros.kernel-srpm +%endif + + +%files +%{_rpmconfigdir}/macros.d/* + +%changelog +* Tue Aug 04 2020 Merlin Mathesius - 1.0-3 +- Escape percent for %%kernel_arches macro + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 21 2020 Troy Dawson - 1.0-1 +- Initial build + diff --git a/macros.kernel-srpm b/macros.kernel-srpm new file mode 100644 index 0000000..c7110f6 --- /dev/null +++ b/macros.kernel-srpm @@ -0,0 +1,3 @@ +# kernel_arches lists what arches the full kernel is built for. + +%kernel_arches x86_64 s390x ppc64le aarch64 %{arm} diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29