2020-07-21 21:06:48 +00:00
|
|
|
Name: kernel-srpm-macros
|
|
|
|
Version: 1.0
|
2021-11-18 19:26:26 +00:00
|
|
|
# when bumping version and resetting release, don't forget to bump version of kernel-rpm-macros as well
|
2024-07-17 12:58:13 +00:00
|
|
|
Release: 24%{?dist}.alma.1
|
2020-07-21 21:06:48 +00:00
|
|
|
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
|
|
|
|
BuildArch: noarch
|
2021-06-03 15:25:29 +00:00
|
|
|
# We are now the ones shipping kmod.attr
|
2021-11-18 19:01:55 +00:00
|
|
|
Conflicts: redhat-rpm-config < 205
|
2021-11-18 14:32:17 +00:00
|
|
|
# macros.kmp, kmodtool and rpmsort were moved from kernel-rpm-macros
|
|
|
|
# to kernel-srpm-macros in 1.0-9/185-9
|
2021-11-18 19:26:26 +00:00
|
|
|
Conflicts: kernel-rpm-macros < 205
|
2020-07-21 21:06:48 +00:00
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
# Macros
|
|
|
|
Source0: macros.kernel-srpm
|
|
|
|
Source1: macros.kmp
|
|
|
|
|
2021-11-15 23:20:29 +00:00
|
|
|
# Dependency generator scripts
|
2021-06-03 15:21:41 +00:00
|
|
|
Source100: find-provides.ksyms
|
|
|
|
Source101: find-requires.ksyms
|
|
|
|
Source102: firmware.prov
|
|
|
|
Source103: modalias.prov
|
2021-11-15 23:20:29 +00:00
|
|
|
Source104: provided_ksyms.attr
|
|
|
|
Source105: required_ksyms.attr
|
|
|
|
Source106: modalias.attr
|
2021-06-03 15:21:41 +00:00
|
|
|
|
2021-06-03 15:25:29 +00:00
|
|
|
# Dependency generators & their rules
|
|
|
|
Source200: kmod.attr
|
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
# Misc helper scripts
|
2021-06-03 15:25:29 +00:00
|
|
|
Source300: kmodtool
|
|
|
|
Source301: rpmsort
|
|
|
|
Source302: symset-table
|
2021-06-03 15:21:41 +00:00
|
|
|
|
2013-10-03 08:42:06 +00:00
|
|
|
# kabi provides generator
|
|
|
|
Source400: kabi.attr
|
|
|
|
Source401: kabi.sh
|
|
|
|
|
2019-01-26 07:45:32 +00:00
|
|
|
# BRPs
|
|
|
|
Source500: brp-kmod-set-exec-bit
|
|
|
|
Source501: brp-kmod-restore-perms
|
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
%global rrcdir /usr/lib/rpm/redhat
|
|
|
|
|
2020-07-21 21:06:48 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This packages contains the rpm macro that list what arches
|
|
|
|
the full kernel is built on.
|
|
|
|
The variable to use is kernel_arches.
|
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
%package -n kernel-rpm-macros
|
2021-11-18 19:26:26 +00:00
|
|
|
Version: 205
|
2021-06-03 15:21:41 +00:00
|
|
|
Summary: Macros and scripts for building kernel module packages
|
2024-01-23 15:11:28 +00:00
|
|
|
# rpmsort is GPL-2.0-or-later
|
|
|
|
License: MIT AND GPL-2.0-or-later
|
2021-11-18 19:26:26 +00:00
|
|
|
Requires: redhat-rpm-config >= 205
|
2021-06-03 15:21:41 +00:00
|
|
|
|
kernel-srpm-macros.spec: update Requires: for binaries used in scripts
Add "Requies:" tags for binearies used in various scripts, namely
brp-kmod-compress, brp-kmod-set-exec-bit, find-provides.ksyms,
find-requires.ksyms, and kmodtool.
* kernel-srpm-macros.spec (%package -n kernel-rpm-macros) <Requires>:
Add %{_bindir}/xz, %{_bindir}/find, %{_bindir}/sed, %{_bindir}/awk,
%{_bindir}/grep, %{_bindir}/nm, %{_bindir}/objdump, %{_bindir}/readelf,
%{_sbindir}/modinfo, %{_sbindir}/modprobe.
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Resolves: #2135047
2023-02-05 00:26:32 +00:00
|
|
|
# for brp-kmod-compress
|
|
|
|
Requires: %{_bindir}/xz
|
|
|
|
# for brp-kmod-compress, brp-kmod-set-exec-bit
|
2019-01-26 07:45:32 +00:00
|
|
|
Requires: %{_bindir}/find
|
kernel-srpm-macros.spec: update Requires: for binaries used in scripts
Add "Requies:" tags for binearies used in various scripts, namely
brp-kmod-compress, brp-kmod-set-exec-bit, find-provides.ksyms,
find-requires.ksyms, and kmodtool.
* kernel-srpm-macros.spec (%package -n kernel-rpm-macros) <Requires>:
Add %{_bindir}/xz, %{_bindir}/find, %{_bindir}/sed, %{_bindir}/awk,
%{_bindir}/grep, %{_bindir}/nm, %{_bindir}/objdump, %{_bindir}/readelf,
%{_sbindir}/modinfo, %{_sbindir}/modprobe.
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Resolves: #2135047
2023-02-05 00:26:32 +00:00
|
|
|
# for find-provides.ksyms, find-requires.ksyms, kmodtool
|
|
|
|
Requires: %{_bindir}/sed
|
|
|
|
# for find-provides.ksyms, find-requires.ksyms
|
|
|
|
Requires: %{_bindir}/awk
|
|
|
|
Requires: %{_bindir}/grep
|
|
|
|
Requires: %{_bindir}/nm
|
|
|
|
Requires: %{_bindir}/objdump
|
|
|
|
Requires: %{_bindir}/readelf
|
|
|
|
# for find-requires.ksyms
|
|
|
|
Requires: %{_sbindir}/modinfo
|
|
|
|
Requires: %{_sbindir}/modprobe
|
2019-01-26 07:45:32 +00:00
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
%description -n kernel-rpm-macros
|
|
|
|
Macros and scripts for building kernel module packages.
|
|
|
|
|
2020-07-21 21:06:48 +00:00
|
|
|
%prep
|
2021-06-03 15:21:41 +00:00
|
|
|
# Not strictly necessary but allows working on file names instead
|
|
|
|
# of source numbers in install section
|
|
|
|
%setup -c -T
|
|
|
|
cp -p %{sources} .
|
2020-07-21 21:06:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
# nothing to do
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d
|
2021-06-03 15:21:41 +00:00
|
|
|
install -p -m 0644 -t %{buildroot}/%{_rpmconfigdir}/macros.d macros.kernel-srpm
|
2020-07-21 21:06:48 +00:00
|
|
|
%if 0%{?rhel} >= 8
|
2024-07-17 12:58:13 +00:00
|
|
|
sed -i 's/^%%kernel_arches.*/%%kernel_arches x86_64 x86_64_v2 s390x ppc64le aarch64/' \
|
2020-07-21 21:06:48 +00:00
|
|
|
%{buildroot}/%{_rpmconfigdir}/macros.d/macros.kernel-srpm
|
|
|
|
%endif
|
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
mkdir -p %{buildroot}%{rrcdir}/find-provides.d
|
|
|
|
mkdir -p %{buildroot}%{_fileattrsdir}
|
|
|
|
install -p -m 755 -t %{buildroot}%{rrcdir} kmodtool rpmsort symset-table
|
|
|
|
install -p -m 755 -t %{buildroot}%{rrcdir} find-provides.ksyms find-requires.ksyms
|
2021-07-02 16:13:09 +00:00
|
|
|
install -p -m 755 -t %{buildroot}%{rrcdir}/find-provides.d firmware.prov modalias.prov
|
2019-01-26 07:45:32 +00:00
|
|
|
install -p -m 755 -t %{buildroot}%{rrcdir} brp-kmod-restore-perms brp-kmod-set-exec-bit
|
2021-06-03 15:21:41 +00:00
|
|
|
install -p -m 644 -t %{buildroot}%{_rpmconfigdir}/macros.d macros.kmp
|
2021-06-03 15:25:29 +00:00
|
|
|
install -p -m 644 -t %{buildroot}%{_fileattrsdir} kmod.attr
|
2021-06-03 15:21:41 +00:00
|
|
|
|
2013-10-03 08:42:06 +00:00
|
|
|
install -p -m 644 -t "%{buildroot}%{_fileattrsdir}" kabi.attr
|
|
|
|
install -p -m 755 -t "%{buildroot}%{_rpmconfigdir}" kabi.sh
|
2020-07-21 21:06:48 +00:00
|
|
|
|
2021-11-15 23:20:29 +00:00
|
|
|
install -p -m 644 -t "%{buildroot}%{_fileattrsdir}" provided_ksyms.attr required_ksyms.attr
|
|
|
|
install -p -m 644 -t "%{buildroot}%{_fileattrsdir}" modalias.attr
|
|
|
|
|
2020-07-21 21:06:48 +00:00
|
|
|
%files
|
2021-06-03 15:21:41 +00:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.kernel-srpm
|
2021-06-03 15:25:29 +00:00
|
|
|
%{_fileattrsdir}/kmod.attr
|
2021-06-03 15:21:41 +00:00
|
|
|
|
|
|
|
%files -n kernel-rpm-macros
|
2021-11-18 19:14:57 +00:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
2013-10-03 08:42:06 +00:00
|
|
|
%{_rpmconfigdir}/kabi.sh
|
|
|
|
%{_fileattrsdir}/kabi.attr
|
2021-11-15 23:20:29 +00:00
|
|
|
%{_fileattrsdir}/modalias.attr
|
|
|
|
%{_fileattrsdir}/provided_ksyms.attr
|
|
|
|
%{_fileattrsdir}/required_ksyms.attr
|
2021-06-03 15:21:41 +00:00
|
|
|
%dir %{rrcdir}/find-provides.d
|
2019-01-26 07:45:32 +00:00
|
|
|
%{rrcdir}/brp-kmod-restore-perms
|
|
|
|
%{rrcdir}/brp-kmod-set-exec-bit
|
2021-06-03 15:21:41 +00:00
|
|
|
%{rrcdir}/symset-table
|
|
|
|
%{rrcdir}/find-provides.ksyms
|
|
|
|
%{rrcdir}/find-requires.ksyms
|
|
|
|
%{rrcdir}/find-provides.d/firmware.prov
|
|
|
|
%{rrcdir}/find-provides.d/modalias.prov
|
2021-11-18 19:14:57 +00:00
|
|
|
%{rrcdir}/kmodtool
|
|
|
|
%{rrcdir}/rpmsort
|
2020-07-21 21:06:48 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-07-17 12:58:13 +00:00
|
|
|
* Wed Jul 17 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.0-24.alma.1
|
|
|
|
- Add x86_64_v2 to kernel_arches
|
|
|
|
|
2024-06-24 15:53:35 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0-24
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2023-06-23 10:01:54 +00:00
|
|
|
* Wed Mar 06 2024 David Abdurachmanov <davidlt@rivosinc.com> - 1.0-23
|
|
|
|
- Add riscv64
|
|
|
|
|
2024-01-24 23:55:28 +00:00
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-21 00:15:22 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-20 08:42:13 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-05-16 06:30:33 +00:00
|
|
|
* Tue May 09 2023 Eugene Syromiatnikov <esyr@redhat.com> - 1.0-19
|
|
|
|
- Capture local __crc_* symbols for "Provides: kernel()".
|
|
|
|
- Add support for XZ compression for the symvers file.
|
|
|
|
- Fix "Provides: kernel()" generation when both __kcrctab and __kcrctab_gpl
|
|
|
|
are present.
|
|
|
|
- Fix regression for "Provides:" generation in cases when modversions are stored
|
|
|
|
in a section that is over 64K in size.
|
|
|
|
- Speedup and cleanup changes in find-provides.ksyms and find-requires.ksyms.
|
|
|
|
- Fix regex usage in kmod.attr. (Denys Vlasenko)
|
|
|
|
- Implement modalias "Provides:" grouping. (Denys Vlasenko)
|
|
|
|
- Speedup and cleanup changes in modalias.prov and kmod.attr. (Denys Vlasenko)
|
|
|
|
|
2023-03-30 13:01:59 +00:00
|
|
|
* Tue Mar 30 2023 Eugene Syromiatnikov <esyr@redhat.com> - 1.0-18
|
|
|
|
- Avoid triggering debuginfod during elfutils tools usage.
|
|
|
|
|
2023-02-08 17:11:55 +00:00
|
|
|
* Tue Jan 31 2023 Eugene Syromiatnikov <esyr@redhat.com> - 1.0-17
|
|
|
|
- Support storing of __crc_* symbols in sections other than .rodata.
|
|
|
|
- Work around a change in type of __crc_* symbols for some kmods printed by nm
|
|
|
|
on ppc64le and s390x.
|
|
|
|
|
2023-01-19 14:22:32 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-21 15:52:52 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-20 14:26:11 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-18 19:26:26 +00:00
|
|
|
* Thu Nov 18 2021 Miro Hrončok <mhroncok@redhat.com> - 1.0-13
|
|
|
|
- Bump kernel-rpm-macros to 205 to provide clear upgrade path
|
|
|
|
|
2021-11-18 19:01:55 +00:00
|
|
|
* Thu Nov 18 2021 Miro Hrončok <mhroncok@redhat.com> - 1.0-12
|
|
|
|
- Correct conflicts to redhat-rpm-macros < 205
|
2021-11-18 19:14:57 +00:00
|
|
|
- Move Perl scripts back to kernel-rpm-macros to avoid Perl in the default buildroot
|
2021-11-18 19:01:55 +00:00
|
|
|
|
2021-11-18 16:58:15 +00:00
|
|
|
* Thu Nov 18 2021 Eugene Syromiatnikov <esyr@redhat.com> - 1.0-11
|
|
|
|
- Add conflicts of redhat-rpm-macros < 204 as macros.kmp, kmodtool,
|
|
|
|
and rpmsort were moved from the latter to the former.
|
|
|
|
- Remove RHEL-specific kABI bits from find-requires.ksyms and macros.kmp.
|
|
|
|
|
2021-11-18 14:32:17 +00:00
|
|
|
* Thu Nov 18 2021 Eugene Syromiatnikov <esyr@redhat.com> - 1.0-10
|
|
|
|
- Add conflicts of kernel-srpm-macros with kernel-rpm-macros < 185-9
|
|
|
|
as macros.kmp, kmodtool, and rpmsort were moved from the latter
|
|
|
|
to the former.
|
|
|
|
|
2021-11-17 12:22:52 +00:00
|
|
|
* Thu Nov 18 2021 Eugene Syromiatnikov <esyr@redhat.com> - 1.0-9
|
|
|
|
- Update scripts with RHEL-specific changes.
|
|
|
|
|
2021-07-22 09:42:29 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
* Thu Jun 03 2021 Michal Domonkos <mdomonko@redhat.com> - 1.0-5
|
2021-06-03 15:25:29 +00:00
|
|
|
- Adopt kernel-rpm-macros & kmod.attr subpackage from redhat-rpm-config
|
2021-06-03 15:21:41 +00:00
|
|
|
|
2021-01-26 15:28:09 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-08-04 17:51:23 +00:00
|
|
|
* Tue Aug 04 2020 Merlin Mathesius <mmathesi@redhat.com> - 1.0-3
|
|
|
|
- Escape percent for %%kernel_arches macro
|
|
|
|
|
2020-07-28 03:00:38 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-21 21:06:48 +00:00
|
|
|
* Tue Jul 21 2020 Troy Dawson <tdawson@redhat.com> - 1.0-1
|
|
|
|
- Initial build
|