# TODO:
# - %desc en and pl are out of sync
-# - rc.shutdown checks for [ -x /sbin/kexec ] so should put the files to /sbin (at least the kexec itself)
+# - kernel version needs to reviewed.
%define kernel_version 2.5.73
Summary: Tool for starting new kernel without reboot
Summary(pl): Narzêdzie pozwalaj±ce za³adowaæ nowe j±dro bez konieczno¶ci restartu
Name: kexec-tools
-Version: 1.8
-Release: 0.3
+Version: 1.98
+Release: 0.5
License: GPL
Group: Applications/System
-Source0: http://www.osdl.org/archive/andyp/kexec/%{kernel_version}/%{name}-%{version}-%{kernel_version}.tgz
-# Source0-md5: 1fb70ca3ab2075a4da1acc79917fd084
+Source0: http://www.xmission.com/~ebiederm/files/kexec/%{name}-%{version}.tgz
+# Source0-md5: 834823637153e07a85d4544b02944080
Source1: do-kexec.sh
Source2: http://www.xmission.com/~ebiederm/files/kexec/README
# Source2-md5: b80e99096ec4ef37b09ecb5707233fb3
powinien dzia³aæ na ka¿dej architekturze.
%prep
-%setup -q -n %{name}-%{version}-%{kernel_version}
+%setup -q
%patch -p1
%build
-find ./objdir -type f | xargs rm -f
+# why is this here?
+%{?debug:find ./objdir -type f | xargs rm -f}
+
%{__make} \
CC="%{__cc}" \
OPTFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sbindir}
-install objdir/build/sbin/kexec $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT{%{_sbindir},/sbin}
+install objdir/build/sbin/kexec $RPM_BUILD_ROOT/sbin
install objdir/build/bin/kexec_test $RPM_BUILD_ROOT%{_sbindir}
install %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}
install %{SOURCE2} README
%files
%defattr(644,root,root,755)
%doc TODO News README
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/do-kexec.sh
+%attr(755,root,root) %{_sbindir}/kexec_test
+%attr(755,root,root) /sbin/kexec