File master-boot-code.spec of Package master-boot-code
#
# spec file for package master-boot-code
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: master-boot-code
Version: 1.22
Release: 0
Summary: i386 Master Boot Record Code
License: BSD-3-Clause
Group: System/Boot
Source0: %{name}-%{version}.tar.bz2
Patch0: master-boot-code-objcopy.patch
ExclusiveArch: %ix86 x86_64
%description
The i386 master boot code is code that, after copied to the MBR of the
boot disk, loads and starts the boot sector of the active partition.
Authors:
--------
Wolfgang Solfrank, TooLs GmbH
The Regents of the University of California
%prep
%setup -q
%patch0 -p1
%build
make
%install
test -d %{buildroot}%{_prefix}/lib/boot || mkdir -p %{buildroot}%{_prefix}/lib/boot
test -d %{buildroot}%{_sbindir} || mkdir -p %{buildroot}%{_sbindir}
install -c -p -m 644 mbr512 %{buildroot}%{_prefix}/lib/boot/master-boot-code
install -c -p -m 644 mbr %{buildroot}%{_prefix}/lib/boot/MBR
install -c -p -m 755 fixmbr %{buildroot}%{_sbindir}/.
%files
%defattr(-,root,root)
%dir %{_prefix}/lib/boot
%attr(644,root,root) %{_prefix}/lib/boot/master-boot-code
%attr(644,root,root) %{_prefix}/lib/boot/MBR
%attr(755,root,root) %{_sbindir}/fixmbr
%license COPYING
%changelog