|
Artem Savkov |
3acf83 |
%define kpatch_dnf_ver 0.4
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
Name: kpatch
|
|
Yannick Cote |
4387ac |
Version: 0.9.7
|
|
Joe Lawrence |
d106c5 |
Release: 3%{?dist}
|
|
Joe Lawrence |
083416 |
Summary: Dynamic kernel patch manager
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
Group: System Environment/Kernel
|
|
Joe Lawrence |
083416 |
License: GPLv2
|
|
Joe Lawrence |
083416 |
URL: https://github.com/dynup/kpatch
|
|
Joe Lawrence |
083416 |
Source0: https://github.com/dynup/kpatch/archive/v%{version}.tar.gz
|
|
Joe Lawrence |
083416 |
Source1: kpatch-dnf-v%{kpatch_dnf_ver}.tar.gz
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
# RHEL-only
|
|
Joe Lawrence |
083416 |
Patch0: 0001-contrib-disable-upstart-kpatch.conf-install.patch
|
|
Joe Lawrence |
083416 |
Patch1: 0002-kpatch-clarify-unload-unsupport.patch
|
|
Yannick Cote |
1fb0ce |
Patch2: 0003-do-not-rm-selinux-rpm-owned-directory.patch
|
|
Joe Lawrence |
083416 |
|
|
Joel Savitz |
36b0af |
# Upstream backports (inactive -- for future reference)
|
|
Artem Savkov |
3acf83 |
#Patch100: 0100-xxx.patch
|
|
Joe Lawrence |
083416 |
|
|
Joel Savitz |
36b0af |
# kpatch-dnf backports (inactive -- for future reference)
|
|
Joel Savitz |
36b0af |
#Patch200: 0200-foo-bar-etcetera.patch
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
c756e4 |
BuildRequires: make
|
|
Joe Lawrence |
c756e4 |
|
|
Joe Lawrence |
083416 |
Requires: bash kmod binutils
|
|
Joe Lawrence |
083416 |
Recommends: kpatch-dnf
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
BuildArch: noarch
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%description
|
|
Joe Lawrence |
083416 |
kpatch is a live kernel patch module manager. It allows the user to manage
|
|
Joe Lawrence |
083416 |
a collection of binary kernel patch modules which can be used to dynamically
|
|
Joe Lawrence |
083416 |
patch the kernel without rebooting.
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%package -n kpatch-dnf
|
|
Joe Lawrence |
083416 |
Summary: kpatch-patch manager plugin for DNF
|
|
Yannick Cote |
4e7bb1 |
Version: %{version}_%{kpatch_dnf_ver}
|
|
Joe Lawrence |
083416 |
BuildRequires: python3-devel python3-dnf
|
|
Julien Thierry |
ade4d6 |
Requires: python3-dnf python3-hawkey
|
|
Joe Lawrence |
083416 |
Provides: kpatch-dnf
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%description -n kpatch-dnf
|
|
Joe Lawrence |
56c816 |
kpatch-dnf is a DNF plugin that manages subscription to kpatch-patch updates.
|
|
Joe Lawrence |
083416 |
When enabled, kernel packages are automatically subscribed to corresponding
|
|
Joe Lawrence |
083416 |
kpatch-patch packages updates.
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%prep
|
|
Joe Lawrence |
083416 |
%setup -q
|
|
Joe Lawrence |
c51891 |
%patch -P 0 -p1
|
|
Joe Lawrence |
c51891 |
%patch -P 1 -p1
|
|
Joe Lawrence |
c51891 |
%patch -P 2 -p1
|
|
Joe Lawrence |
092547 |
# Use this to apply upstream patches to kpatch
|
|
Joe Lawrence |
c51891 |
#%patch -P 100 -p1
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%setup -D -T -a 1
|
|
Joel Savitz |
36b0af |
|
|
Joel Savitz |
36b0af |
# Use this to apply patches to kpatch-dnf (inactive)
|
|
Joel Savitz |
36b0af |
#cd kpatch-dnf-%{kpatch_dnf_ver}
|
|
Joel Savitz |
36b0af |
#%patch200 -p1
|
|
Joel Savitz |
36b0af |
#cd ..
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%build
|
|
Joe Lawrence |
083416 |
make -C man
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
make -C kpatch-dnf-%{kpatch_dnf_ver}
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%install
|
|
Joe Lawrence |
083416 |
make install PREFIX=/usr DESTDIR=%{buildroot} -C kpatch
|
|
Joe Lawrence |
083416 |
make install PREFIX=/usr DESTDIR=%{buildroot} -C man
|
|
Joe Lawrence |
083416 |
make install PREFIX=/usr DESTDIR=%{buildroot} -C contrib
|
|
Yannick Cote |
de63de |
mkdir -p %{buildroot}/%{_sharedstatedir}/kpatch
|
|
Joe Lawrence |
083416 |
rm -f %{buildroot}/usr/share/man/man1/kpatch-build.1.gz
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
make install PREFIX=/usr DESTDIR=%{buildroot} PYTHONSITES=%{python3_sitelib} -C kpatch-dnf-%{kpatch_dnf_ver}
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%files
|
|
Joe Lawrence |
083416 |
%{_sbindir}/kpatch
|
|
Joe Lawrence |
083416 |
%{_usr}/lib/systemd/system/kpatch.service
|
|
Yannick Cote |
de63de |
%{_sharedstatedir}/kpatch
|
|
Joe Lawrence |
083416 |
%doc %{_mandir}/man1/kpatch.1.gz
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%files -n kpatch-dnf
|
|
Joe Lawrence |
083416 |
%{python3_sitelib}/dnf-plugins/kpatch.py
|
|
Joe Lawrence |
083416 |
%{python3_sitelib}/dnf-plugins/__pycache__
|
|
Joe Lawrence |
083416 |
%config(noreplace) %{_sysconfdir}/dnf/plugins/kpatch.conf
|
|
Joe Lawrence |
083416 |
%doc %{_mandir}/man8/dnf.kpatch.8.gz
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%post -n kpatch-dnf
|
|
Joe Lawrence |
083416 |
echo "To enable automatic kpatch-patch subscription, run:"
|
|
Joe Lawrence |
083416 |
echo -e "\t$ dnf kpatch auto"
|
|
Joe Lawrence |
083416 |
|
|
Joe Lawrence |
083416 |
%changelog
|
|
Joe Lawrence |
d106c5 |
* Fri May 3 2024 Joe Lawrence <joe.lawrence@redhat.com> 0.9.7-3
|
|
Joe Lawrence |
d106c5 |
- Fix cs10 build error on missing `make` command
|
|
Joe Lawrence |
d106c5 |
- Fix "warning: %%patchN is deprecated"
|
|
Joe Lawrence |
d106c5 |
|
|
Yannick Cote |
4e7bb1 |
* Wed Nov 16 2022 Yannick Cote <ycote@redhat.com> 0.9.7-2
|
|
Yannick Cote |
4e7bb1 |
- augment kpatch-dnf package versioning to satisfy build (rhbz#2121212)
|
|
Yannick Cote |
4e7bb1 |
|
|
Yannick Cote |
4387ac |
* Wed Nov 09 2022 Yannick Cote <ycote@redhat.com> 0.9.7-1
|
|
Yannick Cote |
4387ac |
- rebase kpatch user utility code to v0.9.7 (rhbz#2121212)
|
|
Yannick Cote |
4387ac |
|
|
Yannick Cote |
1fb0ce |
* Fri Jun 10 2022 Yannick Cote <ycote@redhat.com> 0.9.4-3
|
|
Yannick Cote |
1fb0ce |
- Do not rm selinux rpm owned directory (rhbz#2053413)
|
|
Yannick Cote |
1fb0ce |
|
|
Yannick Cote |
de63de |
* Thu Jan 27 2022 Yannick Cote <ycote@redhat.com> 0.9.4-2
|
|
Yannick Cote |
de63de |
- Add /usr/lib/kpatch to install and files list to appease SELinux (rhbz#2030004)
|
|
Yannick Cote |
de63de |
|
|
Artem Savkov |
3acf83 |
* Wed Sep 29 2021 Artem Savkov <asavkov@redhat.com> - 0.9.4-1
|
|
Artem Savkov |
3acf83 |
- Rebase to 0.9.4
|
|
Artem Savkov |
3acf83 |
|
|
Mohan Boddu |
aa24af |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.3-3
|
|
Mohan Boddu |
aa24af |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
Mohan Boddu |
aa24af |
Related: rhbz#1991688
|
|
Mohan Boddu |
aa24af |
|
|
Joe Lawrence |
092547 |
* Thu Jun 10 2021 Joe Lawrence <joe.lawrence@redhat.com> - 0.9.3-2
|
|
Joe Lawrence |
092547 |
- Rebase to latest upstream (via backport patch)
|
|
Joe Lawrence |
092547 |
|
|
Joel Savitz |
36b0af |
* Tue May 18 2021 Joel Savitz <jsavitz@redhat.com> - 0.9.3-1
|
|
Joel Savitz |
36b0af |
- Rebase to latest upstream
|
|
Joel Savitz |
36b0af |
|
|
Mohan Boddu |
8f7988 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.2-5
|
|
Mohan Boddu |
8f7988 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
Mohan Boddu |
8f7988 |
|
|
Joe Lawrence |
30ae57 |
* Fri Mar 05 2021 Joe Lawrence <joe.lawrence@redhat.com> 0.9.2-4
|
|
Joe Lawrence |
e3c824 |
- Fix kpatch-dnf package description typos (rhbz#1934292)
|
|
Joe Lawrence |
e3c824 |
|
|
Julien Thierry |
ade4d6 |
* Mon Jan 04 2021 Julien Thierry <jthierry@redhat.com> 0.9.2-2
|
|
Julien Thierry |
ade4d6 |
- Remove kpatch-dnf dependency on python3 (rhbz#1912457)
|
|
Julien Thierry |
ade4d6 |
|
|
Joe Lawrence |
083416 |
* Wed Dec 2 2020 Joe Lawrence <joe.lawrence@redhat.com> 0.9.2-1
|
|
Joe Lawrence |
083416 |
- initial kpatch utility build for rhel-9.0.0 (rhbz#1901593)
|