2020-07-21 21:06:48 +00:00
|
|
|
Name: kernel-srpm-macros
|
|
|
|
Version: 1.0
|
2021-07-22 09:42:29 +00:00
|
|
|
Release: 6%{?dist}
|
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
|
|
|
|
Conflicts: redhat-rpm-config <= 186
|
2020-07-21 21:06:48 +00:00
|
|
|
|
2021-06-03 15:21:41 +00:00
|
|
|
# Macros
|
|
|
|
Source0: macros.kernel-srpm
|
|
|
|
Source1: macros.kmp
|
|
|
|
|
|
|
|
# Dependency generator scripts (deprecated)
|
|
|
|
Source100: find-provides.ksyms
|
|
|
|
Source101: find-requires.ksyms
|
|
|
|
Source102: firmware.prov
|
|
|
|
Source103: modalias.prov
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
Version: 185
|
2021-07-22 09:42:29 +00:00
|
|
|
Release: %{release}%{?dist}.1
|
2021-06-03 15:21:41 +00:00
|
|
|
Summary: Macros and scripts for building kernel module packages
|
|
|
|
Requires: redhat-rpm-config >= 13
|
|
|
|
|
|
|
|
%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
|
2020-08-04 17:51:23 +00:00
|
|
|
sed -i 's/^%%kernel_arches.*/%%kernel_arches x86_64 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
|
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
|
|
|
|
|
|
|
%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
|
2013-10-03 08:42:06 +00:00
|
|
|
%{_rpmconfigdir}/kabi.sh
|
2021-06-03 15:21:41 +00:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
2013-10-03 08:42:06 +00:00
|
|
|
%{_fileattrsdir}/kabi.attr
|
2021-06-03 15:21:41 +00:00
|
|
|
%dir %{rrcdir}/find-provides.d
|
|
|
|
%{rrcdir}/kmodtool
|
|
|
|
%{rrcdir}/rpmsort
|
|
|
|
%{rrcdir}/symset-table
|
|
|
|
%{rrcdir}/find-provides.ksyms
|
|
|
|
%{rrcdir}/find-requires.ksyms
|
|
|
|
%{rrcdir}/find-provides.d/firmware.prov
|
|
|
|
%{rrcdir}/find-provides.d/modalias.prov
|
2020-07-21 21:06:48 +00:00
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|