Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
ti:omap3:n950-n9
>
kexec-tools
> kexec-tools.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File kexec-tools.spec of Package kexec-tools
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.25 # Name: kexec-tools # >> macros %bcond_without static # << macros Summary: Load one kernel from another Version: 2.0.3 Release: 0 Group: Applications/System License: GPL URL: http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools Source0: %{name}-%{version}.tar.bz2 Source100: kexec-tools.yaml BuildRequires: glibc-static %description /sbin/kexec is a user space utility for loading another kernel and asking the currently running kernel to do something with it. A currently running kernel may be asked to start the loaded kernel on reboot, or to start the loaded kernel after it panics. The panic case is useful for having an intact kernel for writing crash dumps. But other uses may be imagined. %package static Summary: Statically linked version of kexec-tools Group: Applications/System Requires: %{name} = %{version}-%{release} %description static /sbin/kexec is a user space utility for loading another kernel and asking the currently running kernel to do something with it. A currently running kernel may be asked to start the loaded kernel on reboot, or to start the loaded kernel after it panics. This package provides a statically linked version of kexec-tools. %package doc Summary: %{name} documentation Group: Applications/System Requires: %{name} = %{version}-%{release} %description doc /sbin/kexec is a user space utility for loading another kernel and asking the currently running kernel to do something with it. A currently running kernel may be asked to start the loaded kernel on reboot, or to start the loaded kernel after it panics. This package provides the documentation for kexec-tools. %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre %if %{with static} export LDFLAGS=-static %configure make mv build build-static export LDFLAGS="" %endif # << build pre %configure --disable-static make %{?jobs:-j%jobs} # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %make_install # >> install post %if %{with static} install -m 775 build-static/sbin/kexec $RPM_BUILD_ROOT/usr/sbin/kexec.static # kdump doesn't build static, fixable but not needed now %endif # << install post %files %defattr(-,root,root,-) # >> files %{_sbindir}/kexec %{_sbindir}/kdump %{_sbindir}/vmcore-dmesg %doc News %doc COPYING %doc TODO %if %{with static} # << files %files static %defattr(-,root,root,-) # >> files static %{_sbindir}/kexec.static %doc News %doc COPYING %doc TODO %endif # << files static %files doc %defattr(-,root,root,-) # >> files doc %{_mandir}/man8/* # << files doc