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