]> git.pld-linux.org Git - packages/kexec-tools.git/blame - kexec-tools.spec
- updated to 2.0.8
[packages/kexec-tools.git] / kexec-tools.spec
CommitLineData
7bed061b
JB
1#
2# Conditional build:
3%bcond_without xen # Xen support
4%bcond_with booke # [PPC] build for BookE
5%bcond_with gamecube # [PPC] build for GameCube
14b4ad98 6
c7aaca66 7Summary: Tool for starting new kernel without reboot
f7a90ea7 8Summary(pl.UTF-8): Narzędzie pozwalające załadować nowe jądro bez konieczności restartu
83378ddf 9Name: kexec-tools
423cbcda 10Version: 2.0.8
da5ba346 11Release: 1
63ec433a 12License: GPL v2
83378ddf 13Group: Applications/System
da5ba346 14Source0: https://www.kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
423cbcda 15# Source0-md5: 2c4dec4e857e84ca530478bac0ec114b
27c9cb5d
ER
16Source1: kexec.init
17Source2: kexec.sysconfig
da5ba346 18Patch0: %{name}-format.patch
da5ba346 19URL: https://www.kernel.org/pub/linux/utils/kernel/kexec/
7bed061b 20BuildRequires: autoconf >= 2.50
27c9cb5d 21BuildRequires: rpmbuild(macros) >= 1.228
c8949128 22BuildRequires: tar >= 1:1.22
423cbcda 23%{?with_xen:BuildRequires: xen-devel >= 4.4}
c8949128 24BuildRequires: xz
aedec1f2 25BuildRequires: xz-devel
0bc7fbdb 26BuildRequires: zlib-devel
27c9cb5d 27Requires(post,preun): /sbin/chkconfig
fa53ca76 28Requires: rc-scripts >= 0.4.0.9
aedec1f2 29ExclusiveArch: %{ix86} %{x8664} alpha arm ia64 mips ppc ppc64 s390 s390x sh
83378ddf
RJ
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
22fc615a
AM
32%define _sbindir /sbin
33
83378ddf 34%description
c7aaca66
JB
35kexec is a set of system calls that allows you to load another kernel
36from the currently executing Linux kernel. The current implementation
37has only been tested, and had the kinks worked out on x86, but the
38generic code should work on any architecture.
83378ddf 39
6f4306fd
JR
40%description -l pl.UTF-8
41kexec to zestaw wywołań systemowych pozwalających załadować następne
42jądro z poziomu aktualnie działającego jądra Linuksa. Aktualna
43implementacja była testowana tylko na x86, ale ogólny kod powinien
44działać na każdej architekturze.
83378ddf
RJ
45
46%prep
24f59696 47%setup -q
da5ba346 48%patch0 -p1
83378ddf
RJ
49
50%build
1b2823ad 51%{__autoconf}
7bed061b
JB
52%configure \
53 %{?with_booke:--with-booke} \
54 %{?with_gamecube:--with-gamecube} \
55 %{!?with_xen:--without-xen}
1b2823ad 56%{__make}
83378ddf
RJ
57
58%install
59rm -rf $RPM_BUILD_ROOT
27c9cb5d 60install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
22fc615a
AM
61
62%{__make} install \
63 DESTDIR=$RPM_BUILD_ROOT
64
27c9cb5d
ER
65install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/kexec
66cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/kexec
67
83378ddf
RJ
68%clean
69rm -rf $RPM_BUILD_ROOT
70
27c9cb5d
ER
71%post
72/sbin/chkconfig --add kexec
73%service kexec restart
74
75%preun
76if [ "$1" = "0" ]; then
77 %service -q kexec stop
78 /sbin/chkconfig --del kexec
79fi
80
83378ddf
RJ
81%files
82%defattr(644,root,root,755)
24f59696 83%doc AUTHORS News TODO
27c9cb5d
ER
84%attr(754,root,root) /etc/rc.d/init.d/kexec
85%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/kexec
24f59696
ER
86%attr(755,root,root) %{_sbindir}/kdump
87%attr(755,root,root) %{_sbindir}/kexec
c8949128
JB
88%attr(755,root,root) %{_sbindir}/vmcore-dmesg
89%{_mandir}/man8/kdump.8*
90%{_mandir}/man8/kexec.8*
91%{_mandir}/man8/vmcore-dmesg.8*
c819c1a5 92%ifarch %{ix86}
24f59696 93%dir %{_libdir}/kexec-tools
5360ef18 94# what is this anyway, is it needed on other arches?
24f59696 95%attr(755,root,root) %{_libdir}/kexec-tools/kexec_test
5360ef18 96%endif
This page took 0.11102 seconds and 4 git commands to generate.