190f5a
Name:		kpatch
190f5a
Version:	0.6.1
190f5a
Release:	6%{?dist}
190f5a
Summary:	Dynamic kernel patch manager
190f5a
190f5a
Group:		System Environment/Kernel
190f5a
License:	GPLv2
190f5a
URL:		https://github.com/dynup/kpatch
190f5a
Source0:	https://github.com/dynup/kpatch/archive/v%{version}.tar.gz
190f5a
Patch0:		0001-contrib-disable-upstart-kpatch.conf-install.patch
190f5a
Patch1:		0002-contrib-service-don-t-unload-modules-on-stop.patch
190f5a
Patch2:		0003-kpatch-script-don-t-fail-if-module-already-loaded-en.patch
190f5a
Patch3:		0004-kpatch-clarify-unload-unsupport.patch
190f5a
Patch4:		0005-Fix-livepatch-enabled-kernel-detection-in-kpatch-scr.patch
190f5a
190f5a
Requires:	bash kmod binutils
190f5a
190f5a
BuildArch:	noarch
190f5a
190f5a
190f5a
%description
190f5a
kpatch is a live kernel patch module manager.  It allows the user to manage
190f5a
a collection of binary kernel patch modules which can be used to dynamically
190f5a
patch the kernel without rebooting.
190f5a
190f5a
190f5a
%prep
190f5a
%setup -q
190f5a
%patch0 -p1
190f5a
%patch1 -p1
190f5a
%patch2 -p1
190f5a
%patch3 -p1
190f5a
%patch4 -p1
190f5a
190f5a
190f5a
%build
190f5a
make -C man
190f5a
190f5a
190f5a
%install
190f5a
make install PREFIX=/usr DESTDIR=%{buildroot} -C kpatch
190f5a
make install PREFIX=/usr DESTDIR=%{buildroot} -C man
190f5a
make install PREFIX=/usr DESTDIR=%{buildroot} -C contrib
190f5a
rm -f %{buildroot}/usr/share/man/man1/kpatch-build.1.gz
190f5a
190f5a
190f5a
%files
190f5a
%{_sbindir}/kpatch
190f5a
%{_usr}/lib/systemd/system/kpatch.service
190f5a
%doc %{_mandir}/man1/kpatch.1.gz
190f5a
190f5a
190f5a
%changelog
190f5a
* Tue Sep 17 2019 Artem Savkov <asavkov@redhat.com> 0.6.1-6
190f5a
- fix patch loading issue caused by recent kernel rebase (rhbz#1752698)
190f5a
190f5a
* Wed Aug 28 2019 Joe Lawrence <joe.lawrence@redhat.com> 0.6.1-5
190f5a
- kpatch: clarify that "kpatch unload" isn't supported (rhbz#1746461)
190f5a
190f5a
* Sun Jun 23 2019 Joe Lawrence <joe.lawrence@redhat.com> 0.6.1-3
190f5a
- Rebuild with correct RHEL-7.7 bugzilla number (rhbz#1719309)
190f5a
190f5a
* Sun Jun 23 2019 Joe Lawrence <joe.lawrence@redhat.com> 0.6.1-3
190f5a
- kpatch script: don't fail if module already loaded+enabled (rhbz#1719309)
190f5a
190f5a
* Wed Jun 12 2019 Joe Lawrence <joe.lawrence@redhat.com> 0.6.1-2
190f5a
- kpatch: patches shouldn't be unloaded on system shutdown (rhbz#1719309)
190f5a
190f5a
* Thu Jun 21 2018 Joe Lawrence <joe.lawrence@redhat.com> 0.6.1-1
190f5a
- update to 0.6.1 (rhbz#1562976)
190f5a
190f5a
* Thu Nov 16 2017 Joe Lawrence <joe.lawrence@redhat.com> 0.4.0-3
190f5a
- kpatch: better livepatch module support (rhbz#1504066)
190f5a
190f5a
* Wed Oct 18 2017 Josh Poimboeuf <jpoimboe@redhat.com> 0.4.0-2
190f5a
- fix backwards compatibility with RHEL 7.3 patches (rhbz#1497735)
190f5a
190f5a
* Mon Mar 13 2017 Josh Poimboeuf <jpoimboe@redhat.com> 0.4.0-1
190f5a
- update to 0.4.0 (rhbz#1427642)
190f5a
190f5a
* Wed Jun 15 2016 Josh Poimboeuf <jpoimboe@redhat.com> 0.3.2-1
190f5a
- update to 0.3.2 (rhbz#1282508)
190f5a
190f5a
* Wed Nov 18 2015 Josh Poimboeuf <jpoimboe@redhat.com> 0.3.1-1
190f5a
- update to 0.3.1 (rhbz#1282508)
190f5a
190f5a
* Tue Sep 16 2014 Seth Jennings <sjenning@redhat.com> 0.1.10-4
190f5a
- fix dracut dependencies (rhbz#1170369)
190f5a
190f5a
* Tue Sep 16 2014 Seth Jennings <sjenning@redhat.com> 0.1.10-3
190f5a
- support re-enabling forced modules (rhbz#1140268)
190f5a
190f5a
* Thu Sep 11 2014 Seth Jennings <sjenning@redhat.com> 0.1.10-2
190f5a
- support modprobe format names (rhbz#1133045)
190f5a
190f5a
* Thu Jul 31 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.10-1
190f5a
- update to kpatch 0.1.10
190f5a
190f5a
* Wed Jul 23 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.9-1
190f5a
- update to kpatch 0.1.9
190f5a
190f5a
* Tue Jul 15 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.8-1
190f5a
- update to kpatch 0.1.8
190f5a
190f5a
* Wed May 21 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.2-1
190f5a
- update to kpatch 0.1.2
190f5a
190f5a
* Mon May 19 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.1-2
190f5a
- fix initramfs core module path
190f5a
190f5a
* Mon May 19 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.1-1
190f5a
- rebase to kpatch 0.1.1
190f5a
190f5a
* Fri May 9 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.0-2
190f5a
- modprobe core module
190f5a
190f5a
* Tue May 6 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.1.0-1
190f5a
- Initial kpatch release 0.1.0
190f5a
190f5a
* Thu Jan 30 2014 Josh Poimboeuf <jpoimboe@redhat.com> 0.0-1
190f5a
- Initial build