Blame contrib/kpatch.spec

Packit Service ac8aad
Name: kpatch
Packit Service ac8aad
Summary: Dynamic kernel patching
Packit Service ac8aad
Version: 0.6.1
Packit Service ac8aad
License: GPLv2
Packit Service ac8aad
Group: System Environment/Kernel
Packit Service ac8aad
URL: http://github.com/dynup/kpatch
Packit Service ac8aad
Release: 1%{?dist}
Packit Service ac8aad
Source0: %{name}-%{version}.tar.gz
Packit Service ac8aad
Packit Service ac8aad
Requires: kmod bash
Packit Service ac8aad
BuildRequires: gcc kernel-devel elfutils elfutils-devel
Packit Service ac8aad
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Packit Service ac8aad
Packit Service ac8aad
# needed for the kernel specific module
Packit Service ac8aad
%define KVER %(uname -r)
Packit Service ac8aad
Packit Service ac8aad
%description
Packit Service ac8aad
kpatch is a Linux dynamic kernel patching tool which allows you to patch a
Packit Service ac8aad
running kernel without rebooting or restarting any processes.  It enables
Packit Service ac8aad
sysadmins to apply critical security patches to the kernel immediately, without
Packit Service ac8aad
having to wait for long-running tasks to complete, users to log off, or
Packit Service ac8aad
for scheduled reboot windows.  It gives more control over up-time without
Packit Service ac8aad
sacrificing security or stability.
Packit Service ac8aad
Packit Service ac8aad
Packit Service ac8aad
%package runtime
Packit Service ac8aad
Summary: Dynamic kernel patching
Packit Service ac8aad
Buildarch: noarch
Packit Service ac8aad
Provides: %{name} = %{version}
Packit Service ac8aad
%description runtime
Packit Service ac8aad
kpatch is a Linux dynamic kernel patching tool which allows you to patch a
Packit Service ac8aad
running kernel without rebooting or restarting any processes.  It enables
Packit Service ac8aad
sysadmins to apply critical security patches to the kernel immediately, without
Packit Service ac8aad
having to wait for long-running tasks to complete, users to log off, or
Packit Service ac8aad
for scheduled reboot windows.  It gives more control over up-time without
Packit Service ac8aad
sacrificing security or stability.
Packit Service ac8aad
Packit Service ac8aad
Packit Service ac8aad
%package build
Packit Service ac8aad
Requires: %{name}
Packit Service ac8aad
Summary: Dynamic kernel patching
Packit Service ac8aad
%description build
Packit Service ac8aad
kpatch is a Linux dynamic kernel patching tool which allows you to patch a
Packit Service ac8aad
running kernel without rebooting or restarting any processes.  It enables
Packit Service ac8aad
sysadmins to apply critical security patches to the kernel immediately, without
Packit Service ac8aad
having to wait for long-running tasks to complete, users to log off, or
Packit Service ac8aad
for scheduled reboot windows.  It gives more control over up-time without
Packit Service ac8aad
sacrificing security or stability.
Packit Service ac8aad
Packit Service ac8aad
%package %{KVER}
Packit Service ac8aad
Requires: %{name}
Packit Service ac8aad
Summary: Dynamic kernel patching
Packit Service ac8aad
%description %{KVER}
Packit Service ac8aad
kpatch is a Linux dynamic kernel patching tool which allows you to patch a
Packit Service ac8aad
running kernel without rebooting or restarting any processes.  It enables
Packit Service ac8aad
sysadmins to apply critical security patches to the kernel immediately, without
Packit Service ac8aad
having to wait for long-running tasks to complete, users to log off, or
Packit Service ac8aad
for scheduled reboot windows.  It gives more control over up-time without
Packit Service ac8aad
sacrificing security or stability.
Packit Service ac8aad
Packit Service ac8aad
Packit Service ac8aad
%prep
Packit Service ac8aad
%setup -q
Packit Service ac8aad
Packit Service ac8aad
%build
Packit Service ac8aad
make %{_smp_mflags}
Packit Service ac8aad
Packit Service ac8aad
%install
Packit Service ac8aad
rm -rf %{buildroot}
Packit Service ac8aad
Packit Service ac8aad
make install PREFIX=/%{_usr} DESTDIR=%{buildroot}
Packit Service ac8aad
Packit Service ac8aad
%clean
Packit Service ac8aad
rm -rf %{buildroot}
Packit Service ac8aad
Packit Service ac8aad
%files runtime
Packit Service ac8aad
%defattr(-,root,root,-)
Packit Service ac8aad
%doc COPYING README.md
Packit Service ac8aad
%{_sbindir}/kpatch
Packit Service ac8aad
%{_mandir}/man1/kpatch.1*
Packit Service ac8aad
%{_usr}/lib/systemd/system/*
Packit Service ac8aad
%{_sysconfdir}/init/kpatch.conf
Packit Service ac8aad
Packit Service ac8aad
%files %{KVER}
Packit Service ac8aad
%defattr(-,root,root,-)
Packit Service ac8aad
%{_usr}/lib/kpatch/%{KVER}
Packit Service ac8aad
Packit Service ac8aad
%files build
Packit Service ac8aad
%defattr(-,root,root,-)
Packit Service ac8aad
%{_bindir}/*
Packit Service ac8aad
%{_libexecdir}/*
Packit Service ac8aad
%{_datadir}/%{name}
Packit Service ac8aad
%{_mandir}/man1/kpatch-build.1*
Packit Service ac8aad
Packit Service ac8aad
%changelog
Packit Service ac8aad
* Tue May 29 2018 Joe Lawrence <joe.lawrence@redhat.com> - 0.6.1
Packit Service ac8aad
- Increase the transition timeout, helpful for large CPU count systems
Packit Service ac8aad
- Miscellaneous unit testing, ppc64, etc. fixes
Packit Service ac8aad
Packit Service ac8aad
* Mon Apr 22 2018 Josh Poimboeuf <jpoimboe@redhat.com> - 0.6.0
Packit Service ac8aad
- Support and converted to livepatch-style hooks.
Packit Service ac8aad
- Lots of misc bugfixes and cleanups
Packit Service ac8aad
- Manpage, README.md fixups
Packit Service ac8aad
- More PPC64 work
Packit Service ac8aad
- "Undefined reference" build failure rework
Packit Service ac8aad
- Livepatch disable retries
Packit Service ac8aad
- New unit testing framework
Packit Service ac8aad
Packit Service ac8aad
* Thu Dec 21 2017 Josh Poimboeuf <jpoimboe@redhat.com> - 0.5.0
Packit Service ac8aad
- Basic ppc64le support
Packit Service ac8aad
- kpatch: load automatically signals stalled processes after a timeout
Packit Service ac8aad
- kpatch: list shows stalled processes
Packit Service ac8aad
- kpatch: signal signals stalled processes
Packit Service ac8aad
- kpatch-build: multiple source patches can be combined into a single binary patch module
Packit Service ac8aad
- kpatch-build: -n|--name option for giving a custom name to the patch module
Packit Service ac8aad
- kpatch-build: additional -d options for more verbose debug modes
Packit Service ac8aad
- The module prefix is now either livepatch- or kpatch- depending on the underlying patching technology
Packit Service ac8aad
Packit Service ac8aad
* Mon Mar 13 2017 Josh Poimboeuf <jpoimboe@redhat.com> - 0.4.0
Packit Service ac8aad
- The tools underlying kpatch-build have been made more modular, in preparation for making create-diff-object more generally useful to other use cases (kernel livepatch, Xen live patching, user space patching).
Packit Service ac8aad
- Support for all new upstream kernels up to 4.10.
Packit Service ac8aad
- KASLR support.
Packit Service ac8aad
- Many other bug fixes and improvements.
Packit Service ac8aad
Packit Service ac8aad
* Thu Oct 11 2016 Jessica Yu - 0.3.4
Packit Service ac8aad
- bump version to 0.3.4
Packit Service ac8aad
Packit Service ac8aad
* Fri Aug 19 2016 Josh Poimboeuf <jpoimboe@redhat.com> - 0.3.3
Packit Service ac8aad
- bump version to 0.3.3
Packit Service ac8aad
Packit Service ac8aad
* Thu Feb 18 2016 Josh Poimboeuf <jpoimboe@redhat.com> - 0.3.2
Packit Service ac8aad
- bump version to 0.3.2
Packit Service ac8aad
Packit Service ac8aad
* Thu Nov 19 2015 Josh Poimboeuf <jpoimboe@redhat.com> - 0.3.1
Packit Service ac8aad
- Get kernel version from vmlinux if the kernel source tree is used
Packit Service ac8aad
Packit Service ac8aad
* Wed Nov 18 2015 Josh Poimboeuf <jpoimboe@redhat.com> - 0.3.0
Packit Service ac8aad
- kpatch-build: fix gcc_version_check: both "GNU" and "GCC" are possible
Packit Service ac8aad
Packit Service ac8aad
* Wed Dec 3 2014 Josh Poimboeuf <jpoimboe@redhat.com> - 0.2.2-1
Packit Service ac8aad
- rebased to current version
Packit Service ac8aad
Packit Service ac8aad
* Tue Sep 2 2014 Josh Poimboeuf <jpoimboe@redhat.com> - 0.2.1-1
Packit Service ac8aad
- rebased to current version
Packit Service ac8aad
Packit Service ac8aad
* Mon Jul 28 2014 Josh Poimboeuf <jpoimboe@redhat.com> - 0.1.9-1
Packit Service ac8aad
- moved core module to /usr/lib/kpatch
Packit Service ac8aad
- rebased to current version
Packit Service ac8aad
Packit Service ac8aad
* Mon Jul 07 2014 Udo Seidel <udoseidel@gmx.de> - 0.1.7-1
Packit Service ac8aad
- rebased to current version
Packit Service ac8aad
Packit Service ac8aad
* Sat May 24 2014 Udo Seidel <udoseidel@gmx.de> - 0.1.1-1
Packit Service ac8aad
- rebased to current version
Packit Service ac8aad
Packit Service ac8aad
* Thu Apr 10 2014 Udo Seidel <udoseidel@gmx.de> - 0.0.1-3
Packit Service ac8aad
- added dracut module
Packit Service ac8aad
Packit Service ac8aad
* Tue Mar 25 2014 Udo Seidel <udoseidel@gmx.de> - 0.0.1-2
Packit Service ac8aad
- added man pages
Packit Service ac8aad
Packit Service ac8aad
* Sat Mar 22 2014 Udo Seidel <udoseidel@gmx.de> - 0.0.1-1
Packit Service ac8aad
- initial release