Blame contrib/kpatch.spec

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