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